zigpy / zigpy-znp

TI CC2531, CC13x2, CC26x2 radio support for Zigpy and ZHA
GNU General Public License v3.0
145 stars 40 forks source link

[Bug] Devices are not rediscovered after Zigbee Coordinator Power Outage #96

Open aleck011mi opened 2 years ago

aleck011mi commented 2 years ago

I have a network based Zigbee Coordinator (tubes Ethernet Coordinator https://www.tubeszb.com/product/cc2652_coordinator/1). Which works great with ZHA on Home Assistant. I can reboot or turn off Home Assistant for as long as I need and all devices will be there when it is turned back on. However, if power is lost to the coordinator for any significant period of time (over 5 minutes or so), almost certainly at least one of my 20 devices will drop offline. The problem is when I attempt to re-pair the device and ZHA seems to completely ignore the device despite being very close to the coordinator and in pairing mode. The only way I seem to be able to pair the device again is by factory resetting the coordinator, losing all my devices and causing me to need to repair them. After taking to tube, he recommended I open a bug report here: https://community.home-assistant.io/t/tubes-zb-coordinators-and-routers-was-zigbee-router-on-steroids/280896/445?u=aleck011mi

Thanks!

MattWestb commented 2 years ago

This is the right place for the issue but it tricky one.

If looking on Z2M issues they is more that is having more or less the same problem: Problem pairing devices after some time or after restart of the TI coordinator but i dont have one (only CC-2531 for testing and sniffing) so i cant testing how is working but many user have doing it in Z2M.

I hope some devs can triggering the behavior and also finding one was fixing it but i think its in the firmware of the TI coodinator.

aleck011mi commented 2 years ago

Thanks for the confirmation Matt. If there is any logs or other information I can provide you or anyone else, let me know which and how to get them and I'll be happy to do so.

puddly commented 2 years ago

Hmm. I've had power outages last more than 48 hours and my network was fully usable within a few minutes of the coordinator and all other routers coming back online.

What exact devices do you have on your network? Any routers?

For the most part, rebooting the coordinator does nothing to its knowledge of devices on the network (since it only keeps track of children). It'll lose in-memory route caches but those are rebuilt. The duration of time the coordinator is offline can only impact the functionality of other devices on the network by causing them to search for new parents after some period of time, so the bad behavior is likely with your end devices.

MattWestb commented 2 years ago

New firmware for new TI coordinator is in dev https://github.com/Koenkk/Z-Stack-firmware/tree/develop/coordinator/Z-Stack_3.x.0/bin.

aleck011mi commented 2 years ago

Thanks Matt! I'll give it a try. I'm not seeing a changelog. Most of my devices are Xfinity security system devices: a keypad, door/window open sensors (XHS2-SE), and motion sensors. I do have a couple Aqara Water Leak sensors as well.

puddly commented 2 years ago

Most of my devices are Xfinity security system devices

Those seem like they would cause problems. Did the water leak sensors become unresponsive as well or just the Xfinity stuff?