After adding 9 new Hue lights to my crowded Nortek HUSBZB-1 controlled ZHA zigbee network, my ZHA integration fails to start after a server restart and gives the following message.
This has happened twice now. The first time I restored a snapshot and re-added the lights. It was ok for a couple of days, then I restarted the host NUC and it failed to start again and had this in the logs. I’d appreciate any help you can provide.
‘’’
Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:157
First occurred: 11:44:15 PM (1 occurrences)
Last logged: 11:44:15 PM
Error setting up entry ZHA for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 102, in async_setup_entry
await zha_gateway.async_initialize()
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 157, in async_initialize
self.application_controller = await app_controller_cls.new(
File “/usr/local/lib/python3.8/site-packages/zigpy/application.py”, line 64, in new
await app._load_db()
File “/usr/local/lib/python3.8/site-packages/zigpy/application.py”, line 56, in _load_db
await self._dblistener.load()
File “/usr/local/lib/python3.8/site-packages/zigpy/appdb.py”, line 470, in load
await self._load_attributes(“attrid=4 OR attrid=5”)
File “/usr/local/lib/python3.8/site-packages/zigpy/appdb.py”, line 491, in _load_attributes
dev = self._application.get_device(ieee)
File “/usr/local/lib/python3.8/site-packages/zigpy/application.py”, line 392, in get_device
return self.devices[ieee]
KeyError: 00:17:88:01:02:9c:ee:41
‘’’