#ZHA - Pairing Problems Related to Zigbee.db Corruption?

1 messages · Page 1 of 1 (latest)

dawn pond
#

Hi, I have suddenly encountered a strange issue when trying to pair Ikea Styrbar remotes to my Zigbee network. These are fresh never-before-paired devices, but they would repeatedly go through the pairing process even if they successfully pair.

  1. From fresh, ZHA shows the blue "Device Found, Starting Interview" box
  2. ZHA shows the blue "Interview Complete, Configuring" box
  3. Green "Initialisation Complete" box appears, device can send events to HA
  4. After a few seconds, ZHA re-enters step 2-3 with the device. It stops being able to communicate with HA.
    Basically it gets stuck in steps 2-4 repeatedly, until the pairing window times out and it ends up in a state that can't communicate with HA (perhaps because at this point it happens not to be in Step 3?). Does anyone know what is going on here?

A couple of weeks ago, I also found that a Sonoff E14 Zigbee bulb couldn't be re-paired with my Zigbee network. I chalked it up to Sonoff flakiness but not sure if it is related to the same issue.

Just to add that ~130 devices that were previously paired to the network all seem to be working fine. I just can't seem to add new devices to the network.

vivid crest
#

What coordinator are you using

dawn pond
#

TubesZB cc2652 based coordinator

dawn pond
dawn pond
#

Huh even more bizarre...after a HA restart, ZHA refuses to set up because of ZigBee database corruption. A backup restore of HA seems to get the ZigBee network back to working order though. What is going on?

vivid crest
#

you can download your working zigbee settings as a backup and restore them on your current version of HA

#

i dont rly know enough to know whats causing your issue but if its a problem with your zigbee settings that should fix it

dawn pond
#

Yup I'm wondering if somehow the pairing process can corrupt the ZigBee db and thus lead to that pairing loop behaviour. What causes this and how can it be prevented?

dawn pond
#

I think there is something more deeply wrong with my ZigBee network. Trying to re-pair a Kadrilj blind that dropped off the network after the backup restore, and got even more weird behaviour:

  • The blind gets detected but it keeps switching it's NWK during pairing.
  • Errors in the log during the pairing process
  • After failed pairing, the device does show up as "last seen" at the time of failed pairing, under the ZigBee Info. But it is not controllable.

Anyone have any advice? I don't even know where to begin to troubleshoot. And if I cannot re-pair devices to the network, it will be a matter of time before the whole network degenerates and I need to start from scratch.

Error logs from joining:

[0x1265:1:0x1000]: Couldn't get list of groups: Device has re-joined the network
Cancelling previous initialization task for device 84:2e:14:ff:fe:77:a1:27
[0x1265:1:0x1000]: Couldn't get list of groups: Device has re-joined the network
[0x1265:1:0x1000]: Couldn't get list of groups: Device has re-joined the network
Cancelling previous initialization task for device 84:2e:14:ff:fe:77:a1:27
[0x4E19:1:0x1000]: Couldn't get list of groups: Device has re-joined the network
[0x1265:1:0x1000]: Couldn't get list of groups: Device has re-joined the network