Warnings and errors topology.py

Hi,

Every 4 hours, I get these warnings and sometimes the error below however everything seems to be working

I believe these warnings and errors are related that I sometimes have two Zigbee devices added to HA which are not mine, probably neighbours, while HA is even not in pairing mode.

Any tips on how to solve these, would be appreciated.

I’ ve also followed the instructions to improve zigbee quality just to be sure. But as I did not have this problem before the unknown ( to me) zigbee devices started to add themselfs I don’t believe that it would help.

Logger: zigpy.topology
Source: /usr/local/lib/python3.11/site-packages/zigpy/topology.py:84

Topology scan failed
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 78, in _scan_loop
await self.scan()
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 96, in scan
await self._scan_task
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 221, in _scan
await self._find_unknown_devices(neighbors=self.neighbors, routes=self.routes)
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 253, in _find_unknown_devices
await self._app._discover_unknown_device(nwk)
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 945, in _discover_unknown_device
return await zigpy.zdo.broadcast(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/device.py”, line 623, in broadcast
return await app.broadcast(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 921, in broadcast
await self.send_packet(
File “/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py”, line 912, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to enqueue message after 3 attempts: <EmberStatus.NETWORK_BUSY: 161>

Error:
Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:145

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 96, in scan
await self._scan_task
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 221, in _scan
await self._find_unknown_devices(neighbors=self.neighbors, routes=self.routes)
File “/usr/local/lib/python3.11/site-packages/zigpy/topology.py”, line 253, in _find_unknown_devices
await self._app._discover_unknown_device(nwk)
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 945, in _discover_unknown_device
return await zigpy.zdo.broadcast(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/device.py”, line 623, in broadcast
return await app.broadcast(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 921, in broadcast
await self.send_packet(
File “/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py”, line 912, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to enqueue message after 3 attempts: <EmberStatus.NETWORK_BUSY: 161>

I’m having the same message as well. Did you find out the reason yet. I’m having a look around as well to see what I can find. I’m using a Home Assistant Yellow, so no weird setup.

With upgrading to HA core 2024.1.4 the warning is not appearing anyone every 4 hours but now I got two errors which I did not had before.

Error 1:
Lost serial connection: ConnectionResetError(‘Remote server closed connection’)

Error 2:
NCP entered failed state. Requesting APP controller restart

Both only occurred ones a day

I’m not having anymore of those errors. 2024.1.5 was released shortly afterwards and it seems to have taken care of those problems with one of my Zigbee lights in the logs ( * NWK conflict is reported for 0xb16e). This is one of my oldest lights, an old Wemo, about 6 years old, so I think it’s age more than anything.

What I did the other day was to change my Zigbee channel as Channel 15 was really congested for me. I ended up re-pairing all my lights. If you go to the Zigbee integration, you can download the diagnostics (3-dot menu) and scroll to the bottom and see the channel utilisation. Do this at different times of the day to get an idea which channel is less utilised.

The thing is, everything was actually working fine beforehand, even with the errors showing up in the logs, but being a tinkerer and hating errors, I had to tinker.

To answer the original question, the original log issues seem to have gone with the 2024.1.5 update.

1 Like