This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Description
I've got a Zooz ZEN15 power switch for a high-wattage device. When I turn the device off via homeassistant, the device's state flicks back to on.. and only some seconds later goes back off. If I look at the zwave2mqtt logs I see this:
z2m:Mqtt Message received on zwave2mqtt/5/37/1/0/set +1m
z2m:Zwave zwave node 5: changed: 50-1-2:Electric - W:4.692 -> 0 +2s
z2m:Zwave zwave node 5: changed: 50-1-256:Exporting:false -> false +1ms
z2m:Zwave zwave node 5: changed: 50-1-2:Electric - W:0 -> 0 +23ms
z2m:Zwave zwave node 5: changed: 50-1-256:Exporting:false -> false +4ms
z2m:Zwave Notification from node 5: Notification - TimeOut (1) +9s
z2m:Zwave zwave node 5: changed: 37-1-0:Switch:true -> false +692ms
z2m:Zwave zwave node 5: changed: 37-1-0:Switch:false -> false +23ms
I'm guessing what's happening is hass sends the mqtt message to set the device to off. Homeassistant then refreshes the state of the device, and sees that it's still on -- or that the persistent state is still on (I need to go actually look at the physical switch to see how quickly the device responds). Some seconds later, there's a zwave timeout, and then the switch finally responds with the new state. Note that the power draw went to 0 watts within 2 seconds, so I think the switch actually responds fairly quickly; just the state doesn't get communicated.
I'm fairly new to doing zwave through mqtt -- I'm not even quite sure where to begin here. Any suggestions would be appreciated. Thanks!