logo elektroda
logo elektroda
X
logo elektroda

[Solved] MQTT Message Issue with Aubess Mini Smart Switch on OpenBeken v1.17.797

taggbricka 282 2
ADVERTISEMENT
  • #1 21342614
    taggbricka
    Level 7  
    Using a Aubess mini smart switch. Openbeken Version: 1.17.797

    I am trying to send a MQTT message from the switch on pins S1 and S2
    Pin 14 is declared "Btn"

    This is my autoexec.bat

    addEventHandler OnClick 14 publish Sw 1
    addEventHandler OnRelease 14 publish Sw 0

    I get only one message for each on-off cycle of the switch.
    {"topic":"obk5/Sw/get","payload":"0","qos":1,"retain":false,"_msgid":"66d0389d6cd3a815"}

    What have I done wrong?
  • ADVERTISEMENT
  • #2 21343269
    taggbricka
    Level 7  
    Seems that declaring the pin as "dinput" works.
  • #3 21343272
    taggbricka
    Level 7  
    Redeclaring the pin from "btn" to "dinput"

    addEventHandler OnHold 14 publish Sw 1
    addEventHandler OnRelease 14 publish Sw 0
ADVERTISEMENT