zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Networkmap error (Failed to execute LQI for router)

Open mabusdogma opened this issue 5 years ago β€’ 15 comments

What happened

There’s an error when I try to get the networkmap in the zigbee2mqtt API in Home Assistant. Before I could visualize all the devices and the mesh.

9aca5049079b6ff66d98efad6fb759e168690c25_2_500x1000 (1)

But now I see a message when its refreshing:

Failed to execute LQI for Router

8d8376b5723fd9826bac16b9eb976d22e3b5fcb3

And I get a map with some devices apparently out of the network, and no mesh at all And even if they appear to be offline, all devices are working just fine! So I guess they are connected in some other way, or it’s just a visualization problem.

What did you expect to happen

Get the whole networkmap with coordinator, router and devices.

How to reproduce it (minimal and precise)

Home Assistant -> zigbee2mqtt -> Map

Debug info

Zigbee2MQTT version: 1.17.1 Adapter hardware: CC2531 (coordinator and router) Adapter firmware version: 3.0

mabusdogma avatar Feb 05 '21 14:02 mabusdogma

I have the same, LQI cannot be read for a CC2531 (+ Ampflifier) device, running ptvo.info firmware.

m0wlheld avatar Feb 06 '21 15:02 m0wlheld

Same here

leranp avatar Feb 06 '21 15:02 leranp

I can confirm this is an issue with the TI Launchxl-CC1352P-2 as well. The map fails to load the LQI of any devices. Home Assistant: 2021.2.1 zigbeetomqtt: 1.17.1 Adapter: TI LAUNCHXL-CC1352P-2 Adapter firmware: CC1352P2_CC2652P_launchpad_coordinator_20210120.hex

Only addition to this is that Uniflash updated the firmware of the board before flashing it with the adapter firmware. Unfortunately I didn't grab the version and now I'm struggling to figure out what version it's on. If it is needed, please let me know and I'll hunt some more.

image

image

andyshilton avatar Feb 06 '21 15:02 andyshilton

Failed to execute LQI can happen for 2 reasons

  1. The network is congested and therefore no responses are send. Try increasing the sleep between network scans, change e.g. https://github.com/Koenkk/zigbee2mqtt/blob/99274c72c26ba21347908af8238fa8dfdb4fb99d/lib/extension/networkMap.js#L215 to await utils.sleep(5);
  2. The device doesn't support an LQI request (I know this is the case for e.g. non-pro Gledopto devices). Cannot be solved from z2m side

Koenkk avatar Feb 06 '21 17:02 Koenkk

@Koenkk Thanks for the information. Having left it overnight to settle, mine is responding a lot better. It does seem to be to be with network congestion.

andyshilton avatar Feb 07 '21 13:02 andyshilton

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 Mar 10 '21 00:03 github-actions[bot]

I have the same problem. I

Zigbee2mqtt version: 1.18.1-1

I tried 2 CC2531-sticks, one with antenna and one without. And i tried both new firmares default and source routing from https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/default https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/source_routing

this error message appears even if no end device is in the network, as you can see below zigbee2mqtt-error

DieNummerEins avatar Apr 27 '21 11:04 DieNummerEins

I uninstalled and reinstalled z2m and now it works with default and sorce-routing firmware, i don't see the error message anymore. But i found out, that not every tradfri device works perfectly with the sorce-routing fw, dimmer and motion sensor don't. i have 2 cc2531-sticks, one with default and the other with source-routing fw. i only can join them to my network with the default fw. i get the button-events but the map function works only with the stick, with which i joined the device with my network. reconfiguring the device with the other stick shows me the error below. error-dimmer-motionsensor

DieNummerEins avatar Apr 27 '21 13:04 DieNummerEins

after the error message above i cannot join any other device. after the initial pairing message nothing happens. nothing is helping (restart z2m, unplug the stick from usb). i think, i should flash the fw and start from beginning.

DieNummerEins avatar Apr 27 '21 13:04 DieNummerEins

the problem seems to be the source routing fw. with the default fw i am able to get all my devices correctly mapped (with lqi). some devices (ikea tradfri) i can reconfigure, i get the error message above too, but after this reconfiguring try they are all shown correctly in the map. the other devices i can delete and rejoin again.

the default fw seems to be more stable.

now i will join all my devices (22x) and maybe it will work.

DieNummerEins avatar Apr 27 '21 13:04 DieNummerEins

@DieNummerEins

the problem seems to be the source routing fw. with the default fw i am able to get all my devices correctly mapped (with lqi). some devices (ikea tradfri) i can reconfigure, i get the error message above too, but after this reconfiguring try they are all shown correctly in the map. the other devices i can delete and rejoin again.

the default fw seems to be more stable.

now i will join all my devices (22x) and maybe it will work.

I am experiencing the same issues reported here when using the source routing firmware.

Did reverting back to the default firmware prove to be more stable?

SpitFireRSA avatar Jun 05 '21 18:06 SpitFireRSA

yes, it did.

DieNummerEins avatar Jun 21 '21 14:06 DieNummerEins

Thanks. I reverted and stable now.

SpitFireRSA avatar Jun 21 '21 15:06 SpitFireRSA

Failed to execute LQI can happen for 2 reasons

  1. The network is congested and therefore no responses are send. Try increasing the sleep between network scans, change e.g. https://github.com/Koenkk/zigbee2mqtt/blob/99274c72c26ba21347908af8238fa8dfdb4fb99d/lib/extension/networkMap.js#L215 to await utils.sleep(5);
  2. The device doesn't support an LQI request (I know this is the case for e.g. non-pro Gledopto devices). Cannot be solved from z2m side

Hi, Is it possible to solve this in HA add-on mode for z2m? I can't reach networkMap.js on my installation ( Can it be put to settings?

slemik99 avatar Sep 12 '22 16:09 slemik99

Failed to execute LQI can happen for 2 reasons

  1. The network is congested and therefore no responses are send. Try increasing the sleep between network scans, change e.g. https://github.com/Koenkk/zigbee2mqtt/blob/99274c72c26ba21347908af8238fa8dfdb4fb99d/lib/extension/networkMap.js#L215

    to await utils.sleep(5);

  2. The device doesn't support an LQI request (I know this is the case for e.g. non-pro Gledopto devices). Cannot be solved from z2m side

Hi, Is it possible to solve this in HA add-on mode for z2m? I can't reach networkMap.js on my installation ( Can it be put to settings?

My question would be exactly the same... How can I do this modification under HAOS installation?!

eoryb avatar Oct 26 '22 18:10 eoryb