zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Failed to execute LQI for '0x...'

Open arnold-maderthaner opened this issue 6 years ago β€’ 116 comments

Hi !

I'm running on zigbee2mqtt 1.9.0 and latest CC2531 firmware. If I try to check my network to see if everything is connected I always get the above error from different routers like: AC10691 - OSRAM Smart+ plug (Router) and ZNCZ02LM - Xiaomi Mi power plug ZigBee (Router)

If I restart the ZigBee router it sometimes works to clear the error. What does the error exactly mean and how can I fix it permanently ?

arnold-maderthaner avatar Jan 22 '20 10:01 arnold-maderthaner

I also noticed these log messages (4-8 times a day). But they only appear since the CC2531 firmware update from 20190425 to 20190608. Today I had no new data from all routers in my network (CC2530, Ikea Tradfri Repeater, Innr SP120) and had to restart Zigbee2MQTT and power cycle all routers with allow join enabled. Before the update I didn't have such errors.

kennymc-c avatar Jan 22 '20 18:01 kennymc-c

If you get this often, you might want to try the source routing firmware (20190425 was also using source routing): https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/source_routing

Koenkk avatar Jan 22 '20 20:01 Koenkk

I noticed that after restarting all routers 3 days ago, the LQI error messages no longer appear. I think switching to the source routing firmware doesn't make much sense anymore.

kennymc-c avatar Jan 25 '20 15:01 kennymc-c

I have a hint I got the same LQI messages AND can't control the failed devices

CC2530 with commit | 287f843 | 2020-02-05 21:00:40 coordinator_meta_maintrel | 3 | 2020-02-05 21:00:40 coordinator_meta_majorrel | 2 | 2020-02-05 21:00:40 coordinator_meta_minorrel | 6 | 2020-02-05 21:00:40 coordinator_meta_product | 0 | 2020-02-05 21:00:40 coordinator_meta_revision | 20190608 | 2020-02-05 21:00:40 coordinator_meta_transportrev | 2 | 2020-02-05 21:00:40 coordinator_type | zStack12

Ikea Repeater Ikea Bulbs RGB and WW (bad network connection from repeater and coordinator) using mesh from other bulbs

my solution - just tested - restart the bulb to rejoin the mesh

why this happens I have no clue ;-)

If you need further informations, contact me ;-)

Wuppi68 avatar Feb 05 '20 20:02 Wuppi68

Hello! I've the same issue, in that way I'm not able to create correctly the network map. It happens to my two fresh installed CC2531 with firmware router-cc2531-diag-usb.hex. Any idea?

xefil avatar Feb 23 '20 18:02 xefil

I have encountered this issue migrating to the docker variant of this otherwise fine software. What to do?

gimlichael avatar Feb 24 '20 23:02 gimlichael

I have encountered this issue migrating to the docker variant of this otherwise fine software. What to do?

I migrated back to the starting point; same error. This is quite troubling :-(

gimlichael avatar Feb 24 '20 23:02 gimlichael

The weird part is, that i can see the link quality eventually in the log .. but the routers all fail with the Failed to execute LQI. Everything worked earlier .. until i migrated to linux and docker .. when that failed big time, i went back to my origin .. just to see the error emerge here as well .. now, that is very strange .. sorry to spam this thread .. just frustrated .. and tired :-(

If i try to switch on one of my repeaters:

Publish 'set' 'state' to '2-Toilet-Ventilation' failed: 'Error: Command 0x00124b001f668eed/1 genOnOff.on({}, {"timeout":10000,"defaultResponseTimeout":15000,"manufacturerCode":null,"disableDefaultResponse":false}) failed (Error: Data request failed with error: 'No network route' (205))'

gimlichael avatar Feb 24 '20 23:02 gimlichael

OK .. latest update .. i went back to my original purchased sniffer (without external antenna) .. now "only" 2 of 3 of the repeaters/routers is having the LQI error .. the last one is working.

Maybe the sniffer with the external is semi-friend? It failed on all 3 of the repeaters .. BUT everything else was working .. time for bed ..

Just to state the obvious: if it a'int broken, don't fix it! Everything was working fine before my adventure to docker and linux .. and back to windows .. haha :-/

gimlichael avatar Feb 24 '20 23:02 gimlichael

I'm facing the same problem with IKEA E1603 Tradfri Control Outlet Zigbee

Gromina avatar Feb 25 '20 13:02 Gromina

Okay, for me the solution was far from optimal; i had to delete the database.db and start over by re-joining all Zigbee devices.

The good thing is, that it seems to be working now .. i have a suspicion that the database.db might have been corrupted or need tweaking otherwise; maybe it would be a good idea to open up for this, @Koenkk ?

Anyway, keep up the excellent work of this zigbee2mqtt tool - I have really come to love it - even with the faced obstacles once in a while :-)

gimlichael avatar Feb 25 '20 21:02 gimlichael

Could someone sniff the traffic of the failed LQI scans? https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

Koenkk avatar Feb 26 '20 20:02 Koenkk

Sorry can’t sniff :-( Only one adapter avail

On 26. Feb 2020, at 21:54, Koen Kanters <[email protected]mailto:[email protected]> wrote:

Could someone sniff the traffic of the failed LQI scans? https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/2802?email_source=notifications&email_token=ALGB7DCYTIBWI3ISXGDHEMLRE3JHNA5CNFSM4KKDTH2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENB26SQ#issuecomment-591638346, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALGB7DEE4JNSGECK53AMMHLRE3JHNANCNFSM4KKDTH2A.

Wuppi68 avatar Feb 26 '20 21:02 Wuppi68

Same here ... Multiple devices. I have about 15 devices now in the house, 2 floors, mix of Ikea bulb/switches/sockets/PIR and Xiaomi temp/humidity sensors.

Coordinator : CC26X2R1 with the Nov 2019 Firmware

I'm on latest version of Z2M 11.0, I can't sniff as I'm only seldom home. Most of my work is remote.

(Potentially) related error logs: zigbee2mqtt:error 2020-02-28 07:19:55: Publish 'set' 'state' to 'IKEA_Bulb_hall1' failed: 'Error: Command 0x680ae2fffe3cebef/1 genOnOff.off({}, {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":false}) failed (Error: Data request failed with error: 'MAC channel access failure' (225))' zigbee2mqtt:error 2020-02-28 08:00:11: Failed to execute LQI for 'IKEA_Router_d22' zigbee2mqtt:error 2020-02-28 08:00:21: Failed to execute LQI for 'IKEA_Bulb_nighthall_781' zigbee2mqtt:error 2020-02-28 08:00:39: Failed to execute LQI for 'IKEA_Bulb_hall2' zigbee2mqtt:error 2020-02-28 08:00:49: Failed to execute LQI for 'IKEA_Bulb_hall1' zigbee2mqtt:error 2020-02-28 08:00:59: Failed to execute LQI for 'IKEA Color 600lm BF' zigbee2mqtt:error 2020-02-28 08:01:09: Failed to execute LQI for 'IKEA_Bulb_800lm_41' zigbee2mqtt:error 2020-02-28 08:01:19: Failed to execute LQI for 'IKEA_Router_547' zigbee2mqtt:error 2020-02-28 08:01:29: Failed to execute LQI for 'IKEA_Socket_e15'

The 2 below bulbs are not powered on right now so it's kind of normal they don't 'behave'. zigbee2mqtt:error 2020-02-28 08:00:59: Failed to execute LQI for 'IKEA Color 600lm BF'. zigbee2mqtt:error 2020-02-28 08:01:09: Failed to execute LQI for 'IKEA_Bulb_800lm_41'

But all other devices are powered ! The Xiaomi devices are all ok, just the IKEA stuff is acting up.

Seems to be happening more often.

Also my network map seems to have dropped the texts/labels/colors recently but that might be a Z2M Assistant issue. Just mentioning it here to give extra context.

networkmap

Keep up the good work, the product is getting better and better every release.

Thanks.

netweaver1970 avatar Feb 28 '20 11:02 netweaver1970

I also have the issue.

I use HomeAssitant in a docker Environment. My coordinator ist CC2231. I switched from CC2531_DEFAULT_20190608 to CC2531_SOURCE_ROUTING_20190619 to solve the issue. But not luck with it.

Also I updated Zigbee2mqtt to the Version 1.11.0. The Error ist the same.

zigbee2mqtt:info 2020-02-29 00:40:00: Starting network scan (includeRoutes 'false') zigbee2mqtt:error 2020-02-29 00:40:10: Failed to execute LQI for 'zahnbuersten' zigbee2mqtt:error 2020-02-29 00:40:20: Failed to execute LQI for 'zigbee_innr_temp' zigbee2mqtt:error 2020-02-29 00:40:30: Failed to execute LQI for 'wz_virtine_rgbw' zigbee2mqtt:error 2020-02-29 00:40:40: Failed to execute LQI for 'temp_rgbw' zigbee2mqtt:error 2020-02-29 00:40:50: Failed to execute LQI for 'tabletswitch_eg'

The affected devices are not usable anymore.

I hope someone find the root cause for the issue soon.

I also have only one coordinator. So I'm not able to create the Wireshark logs... :-(

Thanks

hormic77 avatar Feb 28 '20 23:02 hormic77

Hi, I have the same issue. After I restart the bulbs and router everything works fine for a while and then I am back to the problem: Failed to execute LQI for ....

slashbv avatar Feb 29 '20 12:02 slashbv

I have CC2231 as coordinator and CC2530 + CC2591 as router. I have updated Z2M, updated osram bulbs firmware and changed CC2530 + CC2591 from coordinator to router. It worked fine before but becasue of many changes I don't know what exactly causes the problem

slashbv avatar Feb 29 '20 12:02 slashbv

For those having this issue, first update to zigbee2mqtt 1.11.0 and please replace the contents of /opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js with the contents of https://gist.github.com/Koenkk/10f5febae43f9f5151979279cb60f6ef.

The scan will take longer now, but we'll fix this later. Let me know if it improves things.

Koenkk avatar Feb 29 '20 14:02 Koenkk

Hello @Koenkk , Is there something for Docker already available? In case in devel branch would be good as well! Thanks! Simon

xefil avatar Feb 29 '20 16:02 xefil

for me it doesn't seem to work, after I restart everything all is fine for about 30 minutes

slashbv avatar Feb 29 '20 16:02 slashbv