logo elektroda
logo elektroda
X
logo elektroda

[OpenBeken] Just checking to know what im doing worng

jbrande 651 1
ADVERTISEMENT
  • #1 20442430
    jbrande
    Level 3  
    I have a beken 1 relay switch that really is on pin 7 and button is in pin 8

    I want to handle a second function on hold

    What I did (so I can configure it as a second relay in Home Assistant is to create a false relay on pin 14)
    and changed pin 8 to Btn_ScriptOnly

    and create the autoexec.bat with this code but is not working

    SetButtonTimes 10 3 5
    addEventHandler OnClick 8 POWER0 toggle
    addEventHandler OnHold 8 POWER1 toggle
  • ADVERTISEMENT
  • #2 20442996
    p.kaczmarek2
    Moderator Smart Home
    Hello, have you restarted your device?

    POWER indexes starts at 1, like in Tasmota, so why not POWER1 toggle and POWER2 toggle? What are your channel indexes?

    Maybe, just to be sure, change POWER1 toggle to toggleChannel 1 and POWER2 to toggleChannel 2
    Or toggleChannel 0 and toggleChannel 1, depending on your convention of settings.

    Btw, do you know that one click for first channel and dbl click for second channel works by default on Button - this is what the second column is for?
    [OpenBeken] Just checking to know what im doing worng
    Helpful post? Buy me a coffee.
ADVERTISEMENT