Over the last few days I have been migrating from ZHA to Zigbee2MQTT (I just added a new Connect ZBT-2 for Z2M).
I run both HA and Z2M in docker containers and for the moment I don’t set them to auto-restart (just so that I know when a crash occurs).
So far my best guess for the “trigger” condition is when I spam updating an attribute of a battery powered IR sensor - I didn’t understand that I needed to trigger the device in order for Z2M to register the change (so I would come back and see old attribute value in the UI and so the spamming started).
Note: Z2M seems pretty stable as long as I don’t mess with attributes in the UI.
- Does my conclusion make sense / have I missed something ?
- Is this a known issue with Z2M / has anyone else encountered it?
- Are there any other solutions other than just setting Z2M to auto restart if it crashes?
Here is the end of the log, from the first error to when Z2M crashes (A few superfluous updates from sensors edited out):
[2026-01-27 11:17:35] error: z2m: Publish 'set' 'motion_timeout' to 'Living Entry IR' failed: 'Error: ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '19072'.))))'
[2026-01-27 11:17:35] error: z2m: Publish 'set' 'motion_timeout' to 'Living Entry IR' failed: 'Error: ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '19072'.))))'
[2026-01-27 11:17:35] error: z2m: Publish 'set' 'motion_timeout' to 'Living Entry IR' failed: 'Error: ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '19072'.))))'
[2026-01-27 11:17:35] error: z2m: Publish 'set' 'motion_timeout' to 'Living Entry IR' failed: 'Error: ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (ZCL command 0x8c65a3fffef7f350/1 msOccupancySensing.write({"32":{"value":15,"type":33}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '19072'.))))'
[2026-01-27 11:17:59] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Work Desk Scene', payload '{"action":"1_single","battery":3,"linkquality":132,"voltage":2500}'
[2026-01-27 11:17:59] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Work Desk Scene/action', payload '1_single'
[2026-01-27 11:17:59] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Dining Ceiling 1', payload '{"brightness":253,"color":{"x":0.4674,"y":0.4121},"color_mode":"color_temp","color_temp":383,"energy":2.85,"linkquality":188,"power":8.7,"state":"ON","update":{"installed_version":36,"latest_version":36,"state":"idle"}}'
[2026-01-27 11:18:13] error: zh:ember:ezsp: ERROR Transaction failure; status=ASH_ERROR_TIMEOUTS. Last Frame: [FRAME: ID=52:"SEND_UNICAST" Seq=51 Len=7].
[2026-01-27 11:18:13] info: zh:ember:uart:ash: ASH COUNTERS since last clear:
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Total frames: RX=988, TX=1178
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: DATA frames : RX=975, TX=196
[2026-01-27 11:18:13] info: zh:ember:uart:ash: DATA bytes : RX=23130, TX=5246
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Retry frames: RX=0, TX=9
[2026-01-27 11:18:13] info: zh:ember:uart:ash: ACK frames : RX=6, TX=973
[2026-01-27 11:18:13] info: zh:ember:uart:ash: NAK frames : RX=7, TX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: CRC errors : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Comm errors : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Length < minimum: RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Length > maximum: RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Bad controls : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Bad lengths : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Bad ACK numbers : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Out of buffers : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Retry dupes : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Out of sequence : RX=0
[2026-01-27 11:18:13] info: zh:ember:uart:ash: ACK timeouts : RX=2
[2026-01-27 11:18:13] error: zh:ember:ezsp: ERROR Transaction failure; status=NOT_CONNECTED. Last Frame: [FRAME: ID=52:"SEND_UNICAST" Seq=51 Len=7].
[2026-01-27 11:18:13] error: z2m: Publish 'set' 'color' to 'Dining Ceiling 3' failed: 'Error: ZCL command 0xb0ce181400174341/1 lightingColorCtrl.moveToColor({"transtime":0,"colorx":38076,"colory":24838,"optionsMask":0,"optionsOverride":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (~x~> [ZCL to=0xb0ce181400174341:56129 apsFrame={"profileId":260,"clusterId":768,"sourceEndpoint":1,"destinationEndpoint":1,"options":4416,"groupId":0,"sequence":0}] Failed to send request with status=FAIL.)'
[2026-01-27 11:18:13] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Dining Ceiling 3', payload '{"brightness":253,"color":{"x":0.3451,"y":0.3516},"color_mode":"color_temp","color_temp":200,"energy":109951162.78,"linkquality":140,"power":8.9,"state":"ON","update":{"installed_version":38,"latest_version":38,"state":"idle"}}'
[2026-01-27 11:18:13] info: zh:ember:uart:ash: Port closed, error=null
[2026-01-27 11:18:13] info: zh:ember:uart:ash: ======== ASH stopped ========
[2026-01-27 11:18:13] info: zh:ember:ezsp: ======== EZSP stopped ========
[2026-01-27 11:18:13] info: zh:ember: ======== Ember Adapter Stopped ========
[2026-01-27 11:18:13] error: z2m: Adapter disconnected, stopping
[2026-01-27 11:18:13] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}'
[2026-01-27 11:18:13] info: z2m: Disconnecting from MQTT server
[2026-01-27 11:18:13] info: z2m: Stopping zigbee-herdsman...
[2026-01-27 11:18:13] info: z2m: Stopped zigbee-herdsman
[2026-01-27 11:18:13] info: z2m: Stopped Zigbee2MQTT