logo elektroda
logo elektroda
X
logo elektroda

OpenBK Socket: Set Last Known State or Always ON After Power Break

vitya123 366 6
ADVERTISEMENT
  • #1 21352231
    vitya123
    Level 6  
    Dear All,
    I just converted a WL2H based socket to OpenBK. All features work great. I only have last thing to set up on it: I need to make sure that after a power break, it should switch to the old state. If not possible, then the next best solution for my application is to always switch on at boot. How do I go about this?
    I think the "start with ON" is easier to solve, just a line in autoexec.bat (although I'm not sure yet how) But how can I make sure it follows the last state?
    Thanks for any pointers!
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 21352274
    vitya123
    Level 6  
    Awesome, thanks - I feel ashamed that I didn't see that....
  • ADVERTISEMENT
  • #4 21514931
    kantora98
    Level 4  
    >>21352243

    Given the situation when 2 channels are used and configuration of pins as shown below, which channel should I set to -1 for the relay to remember its last state after power restored?

    - BL0937 VI on P6
    - BL0937 ELE on P7
    - WiFi LED on P8
    - Button (channel 1) on P10
    - BL0937 SEL on P24
    - Relay (channel 1) on P26

    Screenshot of a configuration interface for various pins of an electronic circuit.
  • #5 21515225
    p.kaczmarek2
    Moderator Smart Home
    You have a menu for that:
    Screenshot of the BK7231T_LSPA9_BL0937 module pin start settings.
    You don't set channel to -1, you set start value to -1.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 21517203
    kantora98
    Level 4  
    >>21515225 but relay in my config is on channel 1.
  • #7 21517434
    p.kaczmarek2
    Moderator Smart Home
    Well, if your relay is on channel 1, then you want to retain channel 1 value, right? The UI should update itself to contain channel 1, it checks which channels are used. And if you don't want to use UI, you can always use command SetStartValue - https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around configuring an OpenBK socket, specifically a WL2H model, to restore its last known state after a power interruption. The user seeks guidance on ensuring the socket returns to its previous state upon reboot or, alternatively, to always power on at startup. A response suggests accessing the startup menu for configuration, providing links to relevant images for visual assistance. The user expresses gratitude for the help and acknowledges their oversight in finding the solution.
Summary generated by the language model.
ADVERTISEMENT