core icon indicating copy to clipboard operation
core copied to clipboard

Unexpected exception with zigbee HA core 2025.4.4

Open boguslawb opened this issue 8 months ago • 4 comments

The problem

Cannot use zigbee ZHA with Sonof dongle using HA core 2025.4.4 due to exceptions.

What version of Home Assistant Core has the issue?

core-2025.4.4

What was the last working version of Home Assistant Core?

core-2025.3.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

Rejestrator: homeassistant.components.websocket_api.http.connection Źródło: components/websocket_api/commands.py:245 integracja: Home Assistant WebSocket API (dokumentacja, Problemy) Pierwsze zdarzenie: 07:21:56 (1 zdarzenia) Ostatnio zalogowany: 07:21:56

[140135242232400] 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/quirks/init.py", line 263, in command return await self.request( ^^^^^^^^^^^^^^^^^^^ ...<8 lines>... ) ^ 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 841, 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:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1359, in handler return await func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/zha/light.py", line 184, in async_turn_on await self.entity_data.entity.async_turn_on( ...<6 lines>... ) File "/usr/local/lib/python3.13/site-packages/zha/application/platforms/light/init.py", line 399, in async_turn_on result = await self._on_off_cluster_handler.on() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/init.py", line 85, in wrapper with wrap_zigpy_exceptions(): ~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/contextlib.py", line 162, in exit self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/init.py", line 77, in wrap_zigpy_exceptions raise ZHAException(message) from exc zha.exceptions.ZHAException: Failed to send request: Failed to send request: <Status.NWK_NO_ROUTE: 205>

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 648, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1361, in handler raise HomeAssistantError(err) from err homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to send request: <Status.NWK_NO_ROUTE: 205>

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

boguslawb avatar Apr 26 '25 05:04 boguslawb

Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

home-assistant[bot] avatar Apr 26 '25 09:04 home-assistant[bot]

HA Core 2025.5.1 the sam situation

`Rejestrator: homeassistant.components.websocket_api.http.connection Źródło: components/websocket_api/commands.py:250 integracja: Home Assistant WebSocket API (dokumentacja, Problemy) Pierwsze zdarzenie: 13:39:38 (1 wystąpienie) Ostatnio zalogowany: 13:39:38

[139869404192000] 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/quirks/init.py", line 263, in command return await self.request( ^^^^^^^^^^^^^^^^^^^ ...<8 lines>... ) ^ 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:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1359, in handler return await func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/zha/light.py", line 184, in async_turn_on await self.entity_data.entity.async_turn_on( ...<6 lines>... ) File "/usr/local/lib/python3.13/site-packages/zha/application/platforms/light/init.py", line 399, in async_turn_on result = await self._on_off_cluster_handler.on() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/init.py", line 85, in wrapper with wrap_zigpy_exceptions(): ~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/contextlib.py", line 162, in exit self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/local/lib/python3.13/site-packages/zha/zigbee/cluster_handlers/init.py", line 77, in wrap_zigpy_exceptions raise ZHAException(message) from exc zha.exceptions.ZHAException: Failed to send request: Failed to send request: <Status.NWK_NO_ROUTE: 205>

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 250, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, entity, func, data, call.context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 651, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/zha/helpers.py", line 1361, in handler raise HomeAssistantError(err) from err homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to send request: <Status.NWK_NO_ROUTE: 205>`

boguslawb avatar May 11 '25 11:05 boguslawb

The exception means that a device is unreachable because the coordinator firmware can't figure out how to route to it. It's not really something ZHA can fix.

Please attach diagnostics information for ZHA.

puddly avatar May 11 '25 17:05 puddly

Could it be due to old Z-Stack ? Z-Stack 20210708 On the other hand it works with HA 2025.3.3

boguslawb avatar May 12 '25 17:05 boguslawb

I upgraded Z-Stack then upgraded HA and then re-added device. This fixed the problem. You may close this issue

boguslawb avatar Jun 05 '25 14:06 boguslawb

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.