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?
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?