Crashes after hardware migration
What happened?
I have migrated my home assistant installation from a docker setup to Home Assistant OS and from an old laptop to somewhat more up-to-date desktop computer (HP Prodesk G400). Zigbee2mqtt manages roughly 150 devices.
The first issue is that all (almost all) my battery powered devices were dropped from the network. But I can live with that as that are ~20 devices and I could re-pair them. Only a few radiator thermostats survived the migration 4 of the 20. The lost devices are mainly Hue switches and Hue motion detectors.
The main problem for me is that the Zigbee2MQTT regularly crashes and is restarted by the Home Assistant Watchdog. When watchdog enabled, most of the time I don't see the cause of the crash. Only a note in the supervisors log that a crash is detected. But no stack trace in the Zigbee2MQTT log.
With watchdog disabled, I see a stack trace or multiple and sometimes an info log there after. So I'm not sure if that stack trace is the cause of the crash.
I started with the firmware I was using before (20230507). Then updated to the 2024 version as I hoped that it fixed the issue. But I went back when I noticed that it was not the cause. Furthermore, used other USB extension cable, other USB ports tests, removed all other USB devices, USB auto-suspend is not enabled.
My network uses channel 25.
What did you expect to happen?
Without errors
How to reproduce it (minimal and precise)
Now known how to reproduce
Zigbee2MQTT version
1.40.1
Adapter firmware version
20230507
Adapter
Sonoff P
Setup
Addon on Home Assistant
Debug log
[2024-10-01 13:59:40] error: z2m: Publish 'set' 'brightness' to '<redacted_a>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))' [2024-10-01 13:59:40] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'brightness' to '<redacted_b>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))'","meta":{"friendly_name":"<redacted_b>"},"type":"zigbee_publish_error"}' [2024-10-01 13:59:40] error: z2m: Publish 'set' 'brightness' to '<redacted_a>' failed: 'Error: ZCL command 0x000d6ffffe12f8d2/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))' [2024-10-01 13:59:40] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'brightness' to '<redacted_a>' failed: 'Error: ZCL command 0x000d6ffffe12f8d2/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))'","meta":{"friendly_name":"<redacted_a>"},"type":"zigbee_publish_error"}' [2024-10-01 13:59:40] error: zh:controller:device: Read response to 0x5c0272fffeede51e failed (ZCL command 0x5c0272fffeede51e/1 genTime.readRsp({"localTime":781106379}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"srcEndpoint":1,"reservedBits":0,"transactionSequenceNumber":1,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))) [2024-10-01 13:59:40] error: z2m: Publish 'set' 'brightness' to '<redacted_b>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))' [2024-10-01 13:59:40] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'brightness' to '<redacted_b>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))'","meta":{"friendly_name":"<redacted_b>"},"type":"zigbee_publish_error"}' [2024-10-01 13:59:40] error: z2m: Publish 'set' 'brightness' to '<redacted_a>' failed: 'Error: ZCL command 0x000d6ffffe12f8d2/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))' [2024-10-01 13:59:40] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'brightness' to '<redacted_a>' failed: 'Error: ZCL command 0x000d6ffffe12f8d2/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))'","meta":{"friendly_name":"<redacted_a>"},"type":"zigbee_publish_error"}' [2024-10-01 13:59:40] error: z2m: Publish 'set' 'color_temp' to '<redacted_b>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 lightingColorCtrl.moveToColorTemp({"colortemp":250,"transtime":20}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))' [2024-10-01 13:59:40] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'color_temp' to '<redacted_b>' failed: 'Error: ZCL command 0x000d6ffffe1a3501/1 lightingColorCtrl.moveToColorTemp({"colortemp":250,"transtime":20}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))'","meta":{"friendly_name":"<redacted_b>"},"type":"zigbee_publish_error"}' [2024-10-01 13:59:41] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/<redacted_a>', payload '{"brightness":254,"color_mode":"color_temp","color_options":null,"color_temp":250,"level_config":{"on_level":"previous"},"linkquality":14,"power_on_behavior":null,"state":"OFF","update":{"installed_version":587531825,"latest_version":587531825,"state":"idle"},"update_available":false}' [2024-10-01 13:59:42] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/<redacted_b>', payload '{"brightness":254,"color_mode":"color_temp","color_options":null,"color_temp":250,"linkquality":21,"power_on_behavior":null,"state":"OFF","update":{"installed_version":587531825,"latest_version":587531825,"state":"idle"},"update_available":false}' [2024-10-01 13:59:42] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/<redacted_a>', payload '{"brightness":254,"color_mode":"color_temp","color_options":null,"color_temp":250,"level_config":{"on_level":"previous"},"linkquality":0,"power_on_behavior":null,"state":"OFF","update":{"installed_version":587531825,"latest_version":587531825,"state":"idle"},"update_available":false}' [2024-10-01 13:59:42] error: zh:controller:device: Read response to 0x5c0272fffeede80b failed (ZCL command 0x5c0272fffeede80b/1 genTime.readRsp({"localTime":781106382}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"srcEndpoint":1,"reservedBits":0,"transactionSequenceNumber":1,"writeUndiv":false}) failed (Data request failed with error: 'undefined' (25))) [2024-10-01 13:59:43] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"woonkamer_radiator_achter_zijkant"},"type":"device_announced"}'