Troubleshooting help - lost all mains-powered devices, battery still work

I’ve been using Zha for a few years now with no real problems. 17 total devices, about half are battery sensors/temperature.

At some point around 2:35 yesterday afternoon, all of the mains powered devices showed offline. I’m still getting temperature readings and open/closed from the battery ones.

I’m running HA on a VM in Proxmox. Rebooted a few times. Tried inserting and removing the Sonoff USB 3.0 type P and re-inserting it. Tried going back to a VM snapshot to a few days ago.

Zha network visualization shows everything with the mains powered being dead.

Log files don’t seem too helpful aside from telling me there are connection issues.

My thoughts are there is sudden interference I’ve not had before or one of the devices is going bad. Is there a way to debug these better?

— log sample —

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:250
integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 11:57:37 AM (1 occurrence)
Last logged: 11:57:37 AM

[140475802491200] Unexpected exception

Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/zigpy_znp/zigbee/application.py", line 933, in send_packet await self._send_request_raw( ...<11 lines>... ) File "/usr/local/lib/python3.13/site-packages/zigpy_znp/zigbee/application.py", line 847, in _send_request_raw raise InvalidCommandResponse( ...<2 lines>... ) zigpy_znp.exceptions.InvalidCommandResponse: Unsuccessful request status code: <Status.NWK_NO_ROUTE: 205> During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 68, in wrap_zigpy_exceptions yield File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/__init__.py", line 86, in wrapper return await RETRYABLE_REQUEST_DECORATOR(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zigpy/util.py", line 136, in retry return await func() ^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zigpy/zcl/__init__.py", line 378, in request return await self._endpoint.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<9 lines>... ) ^ File "/usr/local/lib/python3.13/site-packages/zigpy/endpoint.py", line 270, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<11 lines>... ) ^ File "/usr/local/lib/python3.13/site-packages/zigpy/device.py", line 378, in request await send_request() File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 844, in request await self.send_packet( ...<14 lines>... ) File "/usr/local/lib/python3.13/site-packages/zigpy_znp/zigbee/application.py", line 996, in send_packet raise DeliveryError(f"Failed to send request: {status!r}", status=status) zigpy.exceptions.DeliveryError: Failed to send request: <Status.NWK_NO_ROUTE: 205> The above exception was the direct cause of the following exception:


----- and ---


Logger: homeassistant.components.logbook.processor
Source: components/logbook/processor.py:259
integration: Logbook (documentation, issues)
First occurred: 11:56:39 AM (6 occurrences)
Last logged: 11:56:39 AM

Error with zha describe event for zha_event
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/logbook/processor.py", line 259, in _humanify
    data = describe_event(event_cache_get(row))
  File "/usr/src/homeassistant/homeassistant/components/zha/logbook.py", line 44, in async_describe_zha_event
    zha_device = async_get_zha_device_proxy(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        hass, event.data[ATTR_DEVICE_ID]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ).device
    ^
  File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1097, in async_get_zha_device_proxy
    zha_gateway_proxy = get_zha_gateway_proxy(hass)
  File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1076, in get_zha_gateway_proxy
    raise ValueError("No gateway object exists")
ValueError: No gateway object exists

Well, I ordered a new Sonoff and went with the E model. It arrived overnight. I tried to migrate the radio with Zha and that failed. So I removed everything and ended up using Zigbee2MQTT.

Setup in Home Assistant was easy following one of the Youtube videos. Then I paired a few devices. I got a number or errors that went away fast. I spent a little while adding each one back in which was a little annoying since I would add from the mobile app and rename. The UI notifications cover the rename icon… but aside from that super easy.

Some entities changed domains. I think light → switch were the most common. So I had to touch some automations and dashboard cards.

So far, it has been running with no errors in the logs for about 6 hours. Amazon also told me that my original Sonoff Zigbee adapter arrived almost exactly 2 years ago. Did it die from old age? Maybe it would have worked with the purge and move to Z2M too. Don’t know. But I seem to be working at the moment.