zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Device Stuck in pair loop

Open drannou opened this issue 2 years ago • 7 comments

What happened?

During a full re-pair of my 40+ devices (due to instability), I discover that I cannot repair some devices. Most of my devices can re-pair with the coordinator, but some are stuck in pair process, with led blinking

For example: Legrand cable outlet can pair successfully, I can start to get information, but the device led does not stop blinking, and the device disconnect after seconds. I have the same with ewelink relay (led never stop blinking) It's like if devices were waiting for a final ACK from coordinator and never get it.

Informations: Z2m: [1.35.3](commit: [fe0742a]) Coordinator: EZSP v12 (7.3.1.0 build 176)

Test done : delete coordinator_backup.json database.db database.db.backup, repair the strict minimum to be able to pair the Legrand device, same issue

What did you expect to happen?

Device should stop blinking at the end of the pair process, and should not disconnect

How to reproduce it (minimal and precise)

repair devices

Zigbee2MQTT version

1.35.3

Adapter firmware version

7.3.1.0 build 176

Adapter

EZSP v12

Setup

HA with Z2m on orangepi Zero 3

Debug log

I attach the debug trace, finishing in a crash of z2m

Uploading debug.log…

drannou avatar Feb 20 '24 13:02 drannou

I think this is the same issue as I have. I have problems with IKEA bulbs and LEDVANCE outlets, which keeps resetting after pairing. For the IKEA lights, it was possible to stop the reset by cutting power immediately after successful interview, but that doesn't work for the ledvance outlets. We are running different zigbee adapters (I have an old conbee) which I guess suggests that the problem is not related to the adapter but further up the stack.

#21363

gbroll avatar Feb 23 '24 16:02 gbroll

I also have issues to pair legrand devices. I went back to 1.34.0 to pair them...

Xavinooo avatar Feb 25 '24 22:02 Xavinooo

Find a way to make it pair, I saw it in another thread where you need to stop Z2M when the device has been discovered. It's a little bit pita, but it works. May be we should fix the documentation (at least, or fix the bug :p )

drannou avatar Feb 26 '24 20:02 drannou

Could have been fixed by https://github.com/Koenkk/zigbee-herdsman/pull/938 which is available in the dev branch

If not, I suggest to try the new driver

Koenkk avatar Feb 27 '24 19:02 Koenkk

Could have been fixed by Koenkk/zigbee-herdsman#938 which is available in the dev branch

If not, I suggest to try the new driver

Seeing similar issues with a z-stack coordinator, but I'm just blaming it on legrand being very picky. As it never really worked well before anyway. I am able to pair it with the september z2m release though. But it just breaks when upgrading again and I gave up.

Because the device is very hard to debug as I essentially have to cut the entire power to the house to reset mine (which euhm, well doesn't do well for the server running z2m). So I can't do a git bisect on this sadly.

sjorge avatar Feb 27 '24 21:02 sjorge

This is related to https://github.com/Koenkk/zigbee-herdsman/issues/979, until this is fixed you can theoretically manually comment the readResponse coming from inside zh. I've tried this and then the device pairs again.

sjorge avatar Mar 16 '24 15:03 sjorge

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

github-actions[bot] avatar Sep 13 '24 00:09 github-actions[bot]