Hi there,
I’ve come across a weird issue - without any changes (maybe an HASS update?) on my side and after this worked for months.
I have multiple Nous A1Z controlled/metered power switches installed, and I am controlling / reading them via Zigbee2MQTT.
For my washing machine I have an automation to switch the machine on at a programmed time and this is where I noticed the issue, cause I got home and the machine hadn’t started.
Turns out the switch cannot change state from HASS interface anymore, it always resets after ~2s, it still reports the power draw without any issues and can be controlled manually with the button on the hardware.
I have compared its settings with an identical device, and everything is the same (except the name, and some values like link quality (but within 8%)). The only difference I see is the above script.
I’m not even sure how to troubleshoot this.
In the Zigbee2MQTT logs I can see those messages when I switch another one on
2024-03-20 06:54:18MQTT publish: topic 'zigbee2mqtt/Küchengeräte', payload '{"child_lock":"UNLOCK","current":0.04,"energy":44.99,"indicator_mode":"off/on","linkquality":152,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":229}'
2024-03-20 06:54:18MQTT publish: topic 'zigbee2mqtt/Küchengeräte', payload '{"child_lock":"UNLOCK","current":0.04,"energy":44.99,"indicator_mode":"off/on","linkquality":152,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage": 229}'
And they don’t happen when I flick the switch for the “buggy” one.
I’ve checked in the HASS dev tools for the status of the ‘switch.WaMa’ and I can set it from there for the interface - but it doesn’t reflect the actual state and does not affect it.
So somehow this entity got “disconnected” from its MQTT entity?
Any idea how to proceed?
Edit: Further things I tried:
- Turning the switch(switched socket) on and off (unplugging - wait 10s - replugging)
- Restarting Homeassistant