zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Getting error "Failed to execute LQI for 'Coordinator'" and not reachable devices - multiple add-on restarts fixed it

Open mdzhigarov opened this issue 3 years ago • 5 comments

What happened?

I'm using HomeAssistant with z2m add-on and have created several automations to control the heating of my home. I noticed that temperature has dropped and realized that my automations have been stuck for more than 10h because all of my zigbee devices are unreachable.

Scanning the zigbee network ("Map" button) is reporting error "Failed to execute LQI for 'Coordinator'". I checked the Coordinator USB - it was plugged all in (because sometimes it tends to disconnect although it's plugged in a usb2 hub). Then restarted the Add-on - the issue still persisted. Then restarted the add on a second and a third time - then it worked!

Now the network is fine as usual but I'm worried it might happen again. I'm not comfortable with having to check the zigbee network manually every day to see if the network is stable.

Is there a health check endpoint that I can use to ensure reachability to all of my devices?

What did you expect to happen?

Stable network and coordinator

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.30.2

Adapter firmware version

6.10.3.0 build 297

Adapter

ZBDongle-E

Debug log

log (2).txt

mdzhigarov avatar Mar 24 '23 19:03 mdzhigarov

Hello,

got same issue. Looking into Z2M Log I cna observe that it will not start:

[10:38:46] INFO: Preparing to start... [10:38:47] INFO: Socat not enabled [10:38:48] INFO: Starting Zigbee2MQTT... Zigbee2MQTT:info 2023-03-25 10:38:53: Logging to console and directory: '/config/zigbee2mqtt/log/2023-03-25.10-38-53' filename: log.txt Zigbee2MQTT:info 2023-03-25 10:38:53: Starting Zigbee2MQTT version 1.30.2 (commit #unknown) Zigbee2MQTT:info 2023-03-25 10:38:53: Starting zigbee-herdsman (0.14.96) Zigbee2MQTT:error 2023-03-25 10:39:14: Error while starting zigbee-herdsman Zigbee2MQTT:error 2023-03-25 10:39:14: Failed to start zigbee Zigbee2MQTT:error 2023-03-25 10:39:14: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2023-03-25 10:39:14: Exiting... Zigbee2MQTT:error 2023-03-25 10:39:14: Error: Connection not initialized at Ezsp.execCommand (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:540:19) at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:338:35) at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:141:25) at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:165:16) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29) at Zigbee.start (/app/lib/zigbee.ts:58:27) at Controller.start (/app/lib/controller.ts:101:27) at start (/app/index.js:107:5)

Seems to be related with #15959

Unfortunately for me, multiple restarts of Z2M does not work, neither complete reboot of whole HA system.

Current version: 1.30.2-1 Adapter ZBDongle-E with Coordinator FW

Whole Zigbee network is now down since last update.

Hopefully this will get fixed soon :)

FredyReady avatar Mar 25 '23 09:03 FredyReady

I think I solved my issue.

Yesterday I ran the AI WIFI Optimizer on my TP-Link Omada OC200 Controller. Z2M is set for ch23. Omada changed my 2.4ghz networks from ch1 on both APs to ch6 on one and ch11 on the other. I reverted both back to 1, rebooted everything in sight and all of the sudden my Zigbee devices were back and functioning.

I also had a ZBDongle-E that was flashed to a Router but not connected at all to Z2M, but still plugged in (couldn't remember how to get it to join, so I ignored it). It was also running on ch11. I unplugged it while everything was rebooting too, not sure if that made a difference.

Really odd as I have had much messier wifi and zigbee configs (running a ST hub at the same time as Z2M) and never had so much interference it just shut down like that.

Sorry for the add here, hope you both are able to figure out your issues. Perhaps your neighbor just set up a new router/AP that's interfering.

~~Same issue in Home Assistant v1.30.2-1. This morning I suddenly had a bunch of devices drop out and report Offline. Then I realized that none of my devices are working, regardless if they are Online or Offline Availability. It is pinging devices as it's updating the Last Seen, but they aren't able to be controlled either. I removed a device and tried to readd it but it's not even recognized when Permit Join is active.~~

~~I'm not getting the herdsman error.~~

~~I updated to 1.30.2 a month ago.~~

~~Rebooted the system several times. Turned it off, unplugged the dongle for a bit, and turned it back on. Replaced the usb extension cable. I'll try reflashing next I guess.~~

~~Version: 1.30.2-1~~ ~~Adapter: ZBDongle-P~~

~~EDIT: Reflashing did not solve the issue.~~

~~When I try to control an "Online" device, I eventually get this message: Publish 'set' 'state' to 'J LED 2' failed: 'Error: Command 0xa4c138b1137d1b5e/1 genOnOff.on({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))'~~

unrly avatar Mar 29 '23 20:03 unrly

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

github-actions[bot] avatar Apr 29 '23 00:04 github-actions[bot]

I have the same issue but with a SLZB-06, connected via LAN. Is there any way to fix it ?

K3v-68 avatar May 18 '24 15:05 K3v-68

I have a slzb-06p7, when i connected the sonoff router, i obtained a default lsi on coordinatrice. Need to restor a last image without sonoff router

bricololo44 avatar Jul 19 '24 09:07 bricololo44