For some time now, when I restart Home Assistant, I have to restart Zigbee2MQTT (installed on another server) for the devices to work again in Home Assistant.
When I restart Home Assistant, I can leave it for a long time without doing anything, and the devices will still be “unavailable” even though they are functional and usable in the Zigbee2MQTT UI.
This only seems to affect Zigbee2MQTT devices and not the other MQTT devices I have.
Does anyone have any idea where this is coming from?
I haven’t seen anything in the Zigbee2MQTT logs or in Home Assistant either:
2025-10-30 08:45:01.786 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2025-10-30 08:45:01.786 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.00 seconds
2025-10-30 08:45:02.076 INFO (MainThread) [homeassistant.components.number] Setting up mqtt.number
2025-10-30 08:45:02.079 INFO (MainThread) [homeassistant.components.light] Setting up mqtt.light
2025-10-30 08:45:02.080 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up mqtt.binary_sensor
2025-10-30 08:45:02.080 INFO (MainThread) [homeassistant.components.sensor] Setting up mqtt.sensor
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.button] Setting up mqtt.button
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.select] Setting up mqtt.select
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.text] Setting up mqtt.text
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.update] Setting up mqtt.update
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.lock] Setting up mqtt.lock
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.event] Setting up mqtt.event
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.image] Setting up mqtt.image
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.climate] Setting up mqtt.climate
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.alarm_control_panel] Setting up mqtt.alarm_control_panel
2025-10-30 08:45:02.081 INFO (MainThread) [homeassistant.components.switch] Setting up mqtt.switch
2025-10-30 08:45:02.083 INFO (MainThread) [homeassistant.components.sensor] Setting up mqtt_room.sensor
2025-10-30 08:46:23.300 INFO (MainThread) [homeassistant.components.mqtt.client]
MQTT client initialized, birth message sent
Apparently so.
If you look at the screenshot I sent, I updated around 11:20 and the z2m was disconnected for a while until I manually restarted it.
Around 23:00 I manually restarted HA and the z2m remained connected.
Yes, absolutely! Could that cause a problem?
I should point out that Home Assistant is running in a VM, so when it restarts, it doesn’t restart the USB ports.
Yes that definitely could be the source of your problem. You can test the theory by changing the MR1 to Ethernet mode although that will need some tweaks to your Z2M config.