stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 99 forks source link

Sonoff SNZB-01 button isn't a switch #815

Closed marillat closed 1 year ago

marillat commented 2 years ago

Zigbee2MQTT version: 1.27.0 Python version: 3.9.13 Domoticz version: 2022.1 build 14360 Plugin version: 3.1.0-beta

As I'm saying this device is a button and not a switch. The state should return to off after be pressed, otherwise it's manageable as the button always return the latest status.

mmikee02 commented 1 year ago

Hello, it's normal, button stay in last state when pushed . To compensate it, in your favourite domotic program (mine is domoticz) just create a blockly or a script which re-put the button to the "off " state when pushed, after, per example 1 second.

marillat commented 1 year ago

I'm also working with domoticz. I don't know why my previous script was not working, but today a new blockly script do what I want. The previous script also included a set to off state.