Hi
I don’t know if I’m a nooby with that but today, I got a power failure at (3:00 AM) and power come back just after.
My NUC had restart directly after the power come back . 3 minutes later, it was operational (so MQTT broker, Z2M and HA was started)
I set Z2M with retain: true
attribute, so it send the last state that it known.
When Z2M restarted, I saw this line for each device:
`zigbee2mqtt | Zigbee2MQTT:info 2020-11-20 23:36:15: MQTT publish: topic 'zigbee2mqtt/switch_spots_kitchen', payload '{"state":"OFF"}'`
zigbee2mqtt | Zigbee2MQTT:info 2020-11-20 23:36:15: MQTT publish: topic 'zigbee2mqtt/gledopto_2_bathroom', payload '{"brightness":132,"color":{"x":0.453,"y":0.432},"color_temp":375,"state":"OFF"}'
So it send the last state, perfect.
However, HA doesn’t seems to care about it (no new state in the historic view) and HA said that each bulbs are still “OFF” but it’s not true. Each light in my house are on “ON” after the power come back again …
It’s a little bit a problem ( specially in the middle of the night). I would have HA send the last state on the bulbs when he stars again.
Is it possible ? I hope so because where I live, it happens one time by week sometimes more (the power failure is often only 3 seconds)
Thank you in advance