It seems like whenever I restart Home Assistant all my devices are marked as Unavailable. I can still see them being pinged, but /availability topics are not updated. I also have birth/will messages set in home-assistant and can even trigger them from my handy desktop client - those don’t seem to make zigbee2mqtt publish updates to availability either.
I don’t have blacklist/whitelist specified in the config.
Running 1.13.1 and also tried today’s latest-dev docker image, whatever version this is representing. Should I submit a ticket or am I doing something wrong?
I do have that in my config. I see state of those devices being announced (with debug mode on), but what is missing is their availability topics are not posted.
And that is why you need to add these lines to your HA configuration.yaml. So zigbee2mqtt gets notified that HA is restarting and can send the availability topics when HA is ready.
Yes, yes, as I have said in my original message I have had those lines in my HA config since the very beginning. I can see those topics being updated correctly in MQTTfx desktop client and I even see zigbee2mqtt react to it - problem is HOW it reacts: it sends state updates (is the light on/off etc) but not updating the availability topics. This makes all MQTT devices greyed out in Home Assistant until I manually restart zigbee2mqtt - upon restart it correctly updates the availability topics.
I don’t know why, but after some time, all my zigbee devices are shown unavailable in Home Assistant.
Only way to fix it (until it happens again) is to restart zigbee2mqtt add-on. And I can see the zigbee devices discussing with the zigbee2mqtt add-on in the logs…
I am using Mosquitto MQTT broker.
Any clue ?
I saw that this issue happens when the system loose the WIFI completly. I did some tests restarting my Router. Once the WIFI is back, the Home Assistant continues working well, but the Entities from ZigBee2MQTT stop to work with the “UNAVAILABLE” status.
The ZigBee network is OK. The ZigBee devices is writing the messages in the MQTT Server OK.
But, the ZigBee entities in HASS is not working anymore. I have to restart just the ZigBee2MQTT service and the entities come back working fine.