Zigbee stops working after restart

Unfortunately I get problems with zigbee2mqtt when I have to stop the addon to get a battery for example. Unfortunately, zigbee will no longer start with the following log:


[10:01:31] INFO: Preparing to start…

[10:01:31] INFO: Socat not enabled

[10:01:31] INFO: Starting Zigbee2MQTT…

Starting Zigbee2MQTT without watchdog.

[2025-04-21 10:01:32] info: z2m: Logging to console, file (filename: log.log)

[2025-04-21 10:01:32] info: z2m: Starting Zigbee2MQTT version 2.2.1 (commit #unknown)

[2025-04-21 10:01:32] info: z2m: Starting zigbee-herdsman (3.4.11)

[2025-04-21 10:02:02] info: zh:zstack:znp: Opening SerialPort with {“path”:“/dev/ttyACM0”,“baudRate”:115200,“rtscts”:false,“autoOpen”:false}

[2025-04-21 10:02:02] info: zh:zstack:znp: Serialport opened

[2025-04-21 10:02:03] info: z2m: zigbee-herdsman started (resumed)

[2025-04-21 10:02:03] info: z2m: Coordinator firmware version: ‘{“meta”:{“maintrel”:3,“majorrel”:2,“minorrel”:6,“product”:0,“revision”:20211115,“transportrev”:2},“type”:“zStack12”}’

[2025-04-21 10:02:03] info: z2m: kelder (0xa4c138886545e705): TH02Z - Tuya Temperature and humidity sensor (EndDevice)

[2025-04-21 10:02:03] info: z2m: tuin (0xa4c1387289d33d14): TS0201 - Tuya Temperature & humidity sensor with display (EndDevice)

[2025-04-21 10:02:03] info: z2m: kas (0xa4c13875c3b1f023): TS0201 - Tuya Temperature & humidity sensor with display (EndDevice)

[2025-04-21 10:02:03] info: z2m: Currently 3 devices are joined.

[2025-04-21 10:02:03] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883

[2025-04-21 10:02:03] info: z2m: Connected to MQTT server

[2025-04-21 10:02:03] info: z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘{“state”:“online”}’

[2025-04-21 10:02:03] info: z2m: Started frontend on port 8099

[2025-04-21 10:02:03] info: z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/kelder’, payload ‘{“battery”:100,“humidity”:56.56,“linkquality”:26,“temperature”:20.32,“voltage”:3000}’

[2025-04-21 10:02:03] info: z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/tuin’, payload ‘{“battery”:79,“humidity”:55.5,“linkquality”:60,“temperature”:20,“update”:{“installed_version”:-1,“latest_version”:-1,“state”:null},“voltage”:2900}’

[2025-04-21 10:02:03] info: z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/kas’, payload ‘{“battery”:86,“humidity”:52.2,“linkquality”:0,“temperature”:20,“update”:{“installed_version”:-1,“latest_version”:-1,“state”:null},“voltage”:2900}’

[2025-04-21 10:02:03] info: z2m: Zigbee2MQTT started!

[2025-04-21 10:02:05] info: zh:zstack:znp: Port closed

[2025-04-21 10:02:05] info: zh:zstack:znp: closing

[2025-04-21 10:02:05] error: z2m: Adapter disconnected, stopping

[2025-04-21 10:02:05] info: z2m:mqtt: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘{“state”:“offline”}’

[2025-04-21 10:02:05] info: z2m: Disconnecting from MQTT server

[2025-04-21 10:02:05] info: z2m: Stopping zigbee-herdsman…

[2025-04-21 10:02:05] info: z2m: Stopped zigbee-herdsman

[2025-04-21 10:02:05] info: z2m: Stopped Zigbee2MQTT

The only way I found to get it working again is to remove the addon along with Mosquitto and the

folder “/var/lib/homeassistant/homeassistant/zigbee2mqtt”. Unfortunately, I have to reset all the devices.

There must be another way, but how? Hopefully you have a solution?

I don’t understand what this means. What do you mean by “get a battery”?

Everything in that log looks normal right up to here:

[2025-04-21 10:02:05] info: zh:zstack:znp: Port closed

Tell us about your hardware and Home Assistant system. Could this be a power issue due to you trying to power too may things on a Raspberry Pi USB port for example?

I have been working on this problem for some time. It was necessary to insert a new battery into a sensor. After that, it all stopped working. Even when the sensor went out of range, it went wrong.

Hardware is a Raspberry PI5 with Bookworm (uptodate)

HA OS: 2025.4.3 running in docker

addon: Mosquito Broker, Zigbee v2.2.1-1

First time I’ve ever heard that happen. Worst case you may need to re-pair the sensor.

Is this using an SD card or SSD?

Is your zigbee adaptor on a USB extension lead?

You dont need to stop the addon to replace the battery of a sensor.
Only thing maybe (in some cases) you have to repair the sensor.

I thought they were implying that replacing the battery caused z2m to halt. Which I find hard to believe, so maybe you’re right. Maybe they (needlessly) stopped z2m to replace the battery.

I use an SSD and a USB extension cable.

The SSD and Zigbee dongle maybe drawing too much power. Try a powered USB hub.

Thank you. I used Domoticz with the same hardware and everything just worked there.

Problem solved. I bought a Sonoff 3.0 Plus and everything is working properly now.