ZHA Reloads Every 30 Minutes (SLZB-06M POE)

Hey guys, my system is triggering a ZHA integration reload every 30 minutes as if it was a cron job or something.

It just happened out of the blue when I was on vacation far away from my home.

Version core-2024.6.0
Installation Type Home Assistant Container

with SLZB-06M with a POE injector plugged into the router.

The connection was very solid before running multiple days without a single reconnect.

what I tried so far (no chnage unfortunately):

  • rebooted the Zigbee Stick
  • rellocated the Zigbee Stick
  • used USB power instead of POE
  • used WIfi instead of Ethernet
  • rebooted Router and all of my repeater
  • reconfigured ZHA
  • reverted Zigbee stick to factory firmware
  • rebooted my host Rpi4 several time and also cold boot
  • reconfigured and restored ZHA from a backup

as soon as the ZHA connection hits 30 Minutes I get this:

Logger: bellows.ezsp
Source: runner.py:190
First occurred: 10:24:51 (1 occurrences)
Last logged: 10:24:51

NCP entered failed state. Requesting APP controller restart

and in the same second this:

Logger: bellows.ezsp
Source: /usr/local/lib/python3.12/site-packages/bellows/ezsp/__init__.py:496
First occurred: 10:24:51 (1 occurrences)
Last logged: 10:24:51

Exception running handler
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/bellows/ezsp/__init__.py", line 494, in handle_callback
  File "/usr/local/lib/python3.12/site-packages/bellows/zigbee/application.py", line 626, in ezsp_callback_handler
  File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 688, in connection_lost
    self.listener_event("connection_lost", exc)
  File "/usr/local/lib/python3.12/site-packages/zigpy/util.py", line 50, in listener_event
    for listener, include_context in self._listeners.values():
RuntimeError: dictionary changed size during iteration

ok guys, seems that I’ve resolved that issue by booting into safe mode and then checking every custom integration by itelf. Turns out that the integration Mails & Packages was somehow loading Home Assistant Core in a way causing ZHA Integration to reload at excaly 30 Minute mark.
This is started to happen with version 0.3.27 and was not the case with 0.3.26

It was a real pain to figure it out so I just remove the Mail and Packages integration for now

1 Like