mdeweerd / zha-toolkit

🧰 Zigbee Home Assistant Toolkit - service for "rare" Zigbee operations using ZHA on Home Assistant
GNU General Public License v3.0
170 stars 17 forks source link

Unstable ZigBee Behavior #230

Open AlexW75 opened 3 weeks ago

AlexW75 commented 3 weeks ago

Since 2024.06, I've noticed that all my ZigBee devices frequently disconnect (about every 8 hours). After approximately 10-20 seconds, the devices reconnect.

However, if I disable the ZHA toolkit, this issue disappears, and my ZigBee network remains 100% stable without any device drops.

Is anyone else experiencing the same problem? Please check your logs. I can provide debug data if needed.

BenchPressesBooks commented 3 weeks ago

Funny enough I have noticed this with literally every single one of my Ikea window and door sensors direct connected to a zigbee dongle. The devices never report the stable state (always closed), or the state changes (when you open or close the door. It appears every 12 or 24 hours roughly they become unavailable, then around 2 hours later they come back with a wrong state being reported. If I disable zha-toolkit and restart home assistant they seem to start reporting correctly.

June 12, 2024
was opened
11:48:22 AM - Yesterday
became unavailable
9:32:57 AM - Yesterday
June 11, 2024
was opened
11:35:59 PM - 2 days ago
became unavailable
9:35:45 PM - 2 days ago
was opened
10:28:38 AM - 2 days ago
became unavailable
8:14:04 AM - 2 days ago
June 10, 2024
was opened
9:51:01 PM - 3 days ago
became unavailable
7:39:23 AM - 3 days ago

Turning on debug logging returns nothing related to this that hasn't already been reported in issue #229, #227 , and #231 . I am still investigating but am coming up empty handed for now.

Everything was working great on HA < 2024.06, as soon as I upgraded to HA >= 2024.06 all of the functionality I implement through zha_toolkit broke, and zigbee instability showed up.

AlexW75 commented 3 weeks ago

Did the same … switched on logging - nothing related.

Checked the ZigBee communication - also there nothing unusual. The problem must occur inside ZHA when ZHA-Toolkit is active.

CordoWEB commented 3 weeks ago

I noticed the same problem on 2024.6.2 version. I'm going back to 2024.5.5 version to see what happens.

The same problem happens without ZHA Toolkit : https://github.com/home-assistant/core/issues/119424

AlexW75 commented 3 weeks ago

Thanks for the info … in my case I have no dropped devices since I uninstalled the toolkit.

BenchPressesBooks commented 2 weeks ago

Just wanted to report that with the latest zha update everything is perfectly stable with the network at least. Still have the blocking call and other issues but the device unavailable then fine issue seems to be gone. Had one device with lingering issues but after removing and readding it the issue went away as well. This one may be able to be closed seeing that the parent zha seems to have been where the issue was and that the upgrade of hass included new zha which caused it not necessarily this addon.