zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.21k stars 439 forks source link

Add-On Crashes Often #561

Closed darthrater78 closed 9 months ago

darthrater78 commented 10 months ago

Description of the issue

I'm rapidly approaching complete failure of the SAF (spousal approval factor) for Z2M. I switched from ZHA about two months ago, and for the first month everything was fantastic. Lately though the add-on has been hard crashing, the watchdog doesn't restart it and when it goes down it turns on every light in the house at 100% brightness.

When this happens at 2am, it's not a good scene when the bedroom turns into the face of the sun.

After I restart the app, every light is offline, and I have to turn on inclusion and cycle the light switches on and off and the majority hop back on. One or two have to be completely re-paired.

I don't know how to troubleshoot this or check logs since it seems that history is lost when the app crashes.

I am using UZG-01 as a LAN coordinator. The ESP firmware was 1.5, so I upgraded to 2.0 and the coordinator is at the latest firmware of 20230507.

I have a combo of cree and GE lights.

My non-light devices seem to come up fine without any intervention.

Addon version

1.35.1-1

Platform

Core: 2024.1.5 Supervisor 2023.12.1 Operating System 11.4 Frontend 20240104.0

Logs of the issue (if applicable)

No response

NicoBenndorf commented 10 months ago

I have a similar issue where all zigbee devices stop working and I have to restart the zigbee integration. Watchdog solves nothing but it also seems like the integration does not crash but just stops working properly.. At least they don’t all turn on when this happens 😅 but still it is very unusable - this happend multiple times per day recently.

I recently added two zigbee mmWave sensors that publish a lot of updates and I also worry that they spam the network and create/worsen this problem.

When i look at the logs it is hard to see anything since the mmWave sensor send so many updates. any advice how to debug this?

EDIT: The problem just occured again and I was able to capture logs (log tab in integrations UI) filtered for warning and they disappear a few seconds afterwards again. Is this expected (maybe the crowded info logs are spamming the log to much)?? First time for me to look at logs in homeassistant (still quite new to it)..

This was one of the multiple same errors: 2024-01-23 15:37:22Publish 'set' 'brightness' to 'Wohnzimmer Esstisch LED 1' failed: 'Error: Command 0x385cfbfffe960519/1 genLevelCtrl.moveToLevelWithOnOff({"level":254,"transtime":0}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (**sendZclFrameToEndpointInternal error**)'

cropse commented 10 months ago

Same here, I have to restart add on every several hours.

darthrater78 commented 10 months ago

When I turned the Availability to simple from advanced things calmed down and I’ve been very stable for the last week or so.

image

jpguyon52 commented 10 months ago

Got the same error since 2 weeks. Found out the first log that seem to start the crash a few minutes after restart.

Zigbee2MQTT:error 2024-02-07 17:38:44: Failed to configure 'OfficeMotionSensor1', attempt 1 (Error: Read 0x54ef44100049068a/1 manuSpecificLumi([338], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 60229 - 1 - 201 - 64704 - 1 after 10000ms) at Object.start (/app/node_modules/zigbee-herdsman/src/utils/waitress.ts:63:23) at ZStackAdapter.sendZclFrameToEndpointInternal (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:502:47) at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20) at Request.send (/app/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:79:20) at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:466:28) at configure (/app/node_modules/zigbee-herdsman-converters/src/devices/lumi.ts:1781:13) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:141:25) at Configure.configure (/app/lib/extension/configure.ts:120:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17))

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days