logo elektroda
logo elektroda
X
logo elektroda

[Solved] OpenBeken Light Switch: Cannot Temporarily Disable Physical Switches with Flag 41 (Child Lock)

zakdma 492 13
ADVERTISEMENT
  • #1 21852790
    zakdma
    Level 3  
    Posts: 27
    Hi there!

    OpenBeken light switch, latest firmware OpenBK7231N_1.18.268.rbl.
    All switches are configured as dinput_n, so the relay follows the physical switch.
    I sometimes need to lock the physical switch to prevent children from switching on the light.
    I tried to use:
    Flag 41 - [BTN] Ignore all button events (aka child lock).
    But, looks like it does not work. Relay still follows the physical switch.
    Is there any fast flag to disable physical switches temporarily without unbinding them in the module configuration?

    Thanks!
  • ADVERTISEMENT
  • #2 21853787
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14416
    Help: 650
    Rate: 12371
    Well... this is by design. I think you should rather use "Toggle channel on toggle" role, so you have remote control as well, and can toggle relay via WiFi. I am somewhat suprised, why are you using dInput? dInput + Relay effectively makes OBK act like old style switch with no remote control.

    If you want, I can make child lock also work for dinput, I see nothing against that, but still, it's suprising.
    Helpful post? Buy me a coffee.
  • #3 21853795
    zakdma
    Level 3  
    Posts: 27
    >>21853787

    Hi! Thank you for the reply.
    I need that config with dinput_n because I need the relay to follow the physical switch. So, if the switch is on, then the relay is on, and if the switch is off, then the relay is also off. But the same time I can switch the light on/off by automation (HA).
    In case I used a toggle, then after the light is off by automation, the light will be off when the switch is on, and vice versa. It's very inconvenient for me.
    It would be great if you implemented a child lock for dinput_n.

    Thank you!

    P.S. It would be useful also if this flag could be set by an MQTT message, so HA could lock the switch, let's say, by the time trigger.
  • ADVERTISEMENT
  • #4 21859476
    zakdma
    Level 3  
    Posts: 27
    p.kaczmarek2 wrote:
    If you want, I can make child lock also work for dinput, I see nothing against that, but still, it's suprising.


    Hi! Are there any updates about that?
  • #5 21866932
    zakdma
    Level 3  
    Posts: 27
    Hi @p.kaczmarek2
    Are there any updates about that?
  • #6 21866967
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14416
    Help: 650
    Rate: 12371
    Flags can be already set with MQTT message if you need it.

    I tried to add childlock for dinput in this PR, can you check, get binary and flash?
    https://github.com/openshwprojects/OpenBK7231T_App/pull/2037
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 21866988
    zakdma
    Level 3  
    Posts: 27
    >>21866967

    @p.kaczmarek2 how can I get binary?
  • #8 21867000
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14416
    Help: 650
    Rate: 12371
    Check this out tutorial to learn how to get online binaries for OBK pull requests:
    https://www.elektroda.com/rtvforum/topic4033833.html
    Helpful post? Buy me a coffee.
  • #9 21867013
    zakdma
    Level 3  
    Posts: 27
    Thank you, @p.kaczmarek2 !

    It's working fine for me now.
  • ADVERTISEMENT
  • #10 21867080
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14416
    Help: 650
    Rate: 12371
    So do you think we can merge it?
    Helpful post? Buy me a coffee.
  • #11 21867465
    zakdma
    Level 3  
    Posts: 27
    @p.kaczmarek2 yes, it's working fine for me. Flag 41 now blocks dInput_n as expected. If flag 41 is removed, it starts to follow the switch again, also as expected. I assume we are good to merge.
  • Helpful post
    #12 21867486
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14416
    Help: 650
    Rate: 12371
    Very well, I'll merge it now. Is there anything else we may add for you?
    Helpful post? Buy me a coffee.
  • #13 21867495
    zakdma
    Level 3  
    Posts: 27
    @p.kaczmarek2 thank you, that's all for now. Very much appreciate your help!

Topic summary

✨ The OpenBeken light switch running firmware OpenBK7231N_1.18.268.rbl is configured with all switches as dinput_n, causing the relay to follow the physical switch state. The user seeks a method to temporarily disable the physical switches to prevent unintended operation, such as child interference. The attempt to use Flag 41, which is intended to ignore all button events (child lock), does not prevent the relay from following the physical switch input. The user inquires if there is a faster or alternative flag or method to temporarily disable physical switch inputs without unbinding them in the module configuration.
Generated by the language model.
ADVERTISEMENT