logo elektroda
logo elektroda
X
logo elektroda

[Solved] Programming a Switch for Momentary On: Auto-Off Feature for Garage Door Control

Piorun2002 312 4
ADVERTISEMENT
  • #1 21062958
    Piorun2002
    Level 15  
    Is it possible to program the output in the switch so that after pressing 'toggle' On, it automatically switches to the Off state after a few seconds?
    This switch controls the garage door and I would like to emulate turning On the switch only for a moment.

    Screenshot of a configuration interface with fields labeled A0 and A1 and dropdown menus with values.
  • ADVERTISEMENT
  • #2 21063363
    p.kaczmarek2
    Moderator Smart Home
    Please check the following examples:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    Is this what you need?
    Screenshot of example code for automatic relay turn-off.
    EDIT: but if you have dInput (not button) on the same channel, then it will require some futher adjustements
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21063370
    Piorun2002
    Level 15  
    Perfect example - this is what I need... but there is one challenge: I have an LN882H, so the filesystem (autoexec.bat) is not supported right now (or I'm wrong)
  • ADVERTISEMENT
  • Helpful post
    #4 21070739
    p.kaczmarek2
    Moderator Smart Home
    I think that @max4elektroda has almost fully working LittleFS for LN882H here:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1191
    hopefully it will be merged soon.
    Helpful post? Buy me a coffee.
  • #5 21070785
    Piorun2002
    Level 15  
    >I think that @max4elektroda has almost fully working LittleFS for LN882H
    Yes, solved
ADVERTISEMENT