home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

ZHA - Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> #107105

Closed micium closed 7 months ago

micium commented 8 months ago

The problem

ZHA has conitnued have problem from 2023.12.0 to 2024.1.0

What version of Home Assistant Core has the issue?

2024.1.0

What was the last working version of Home Assistant Core?

2023.11.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Zigbee Home Automation

Link to integration documentation on our website

No response

Diagnostics information

[0x3FEF:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 322, in request await send_request File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 833, in request await self.send_packet( File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 931, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 504, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

the problem was present also in the 2023.12.0

home-assistant[bot] commented 8 months ago

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)

aldalen commented 8 months ago

I am seeing this too. Woke up this morning to the errors in the log and my zigbee network down. No zigbee devices are working or reporting updates.

Maybe seems to happen after some period of time (in this case it was about 12h?). Nothing in the logs prior to these messages appearing, no errors or anything related in the host / supervisor logs either. Just seems like the zigbee network is dead. Requires a home assistant restart to get zigbee working again.

makeshrao commented 8 months ago

I have been seeing the same issue. On Homeassistant Core 2024.1.0, HAOS 11.2. I am using SkyConnect and couple of days ago had to drop the multi-protocol support. It now only has Zigbee support. My Ikea Tradfri Outlet, which is the only zigbee device I have today, seems to cause this issue. I see

Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> and 
Error doing job: Task exception was never retrieved

I have a two story home and the outlet relay seems to be triggering on its own on the lower floor. When I plug it in the same room as HA and SkyConnect it seems to be fine.

Just wanted to add this to see if it helps in anyway. I do have the stack trace if necessary.

IPv777 commented 8 months ago

Same here, lost a lot a devices....

click2saurabh commented 8 months ago

Same issue. some devices failed to respond and logs are full of errors like below:

Logger: zigpy.zcl Source: runner.py:188 First occurred: 9 January 2024 at 19:38:58 (45 occurrences) Last logged: 07:34:04

[0x38A5:6:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 322, in request await send_request File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 833, in request await self.send_packet( File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 931, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 504, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> [0x38A5:6:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 325, in request return await req.result ^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py", line 377, in request return await self._endpoint.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 324, in request async with asyncio_timeout(timeout): File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit raise TimeoutError from exc_val TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 504, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 66, in wrap_zigpy_exceptions raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Failed to send request: device did not respond [0x12CD:1:0xe001] Unknown cluster command 225 b'\nn\x980-\xec\x0e\x00\x00\xe2\x0e\x00\x00\xd1\x0e\x00\x00\x82\x0e\x00\x00\r\x0e\x00\x00\xe9\r\x00\x00\xd2\r\x00\x00\xb7\r\x00\x00\x91\r\x00\x00\x1f\r\x00\x00\x01' [0xEF2C:1:0xe001] Unknown cluster command 225 b'\n{\x980-\xb1.\x00\x00\xb1.\x00\x00\xb5-\x00\x00\xb5-\x00\x00+,\x00\x00\xde+\x00\x00\xec\x00\x00<\x00\x00<\x00\x00<\x00\x00\x01' [0x2A78:1:0xe001] Unknown cluster command 225 b'\n{\x980-2\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x002\x00\x00\x00\x01'

quettih commented 8 months ago

I've the same problem since a lot of weeks, I changed channel to a less energy used, reinstalled, reconfigured.... but it still happens. when you restart zha integration it seems working fine for a while...

werns84 commented 7 months ago

Same for me. I am under RPI4 with a conbee2 key Core 2024.1.3 / Supervisor 2023.12.1 / Operating System 11.4

The system works for a certain time and then stops to control the lights and switchs. Oddly, the temperature and humidity sensors report data normally.

`Logger: zigpy.zcl Source: runner.py:188 First occurred: 16:22:37 (3 occurrences) Last logged: 16:24:00

[0x7F2D:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py", line 377, in request return await self._endpoint.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 321, in request with self._pending.new(sequence) as req: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/util.py", line 296, in new raise ControllerException(f"Duplicate TSN: {sequence}") zigpy.exceptions.ControllerException: Duplicate TSN: 12 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 504, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Duplicate TSN: 12 [0x7F2D:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 325, in request return await req.result ^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py", line 377, in request return await self._endpoint.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 324, in request async with asyncio_timeout(timeout): File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit raise TimeoutError from exc_val TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 504, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 66, in wrap_zigpy_exceptions raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Failed to send request: device did not respond`

micium commented 7 months ago

Same problem with 2024.1.4

Joo01 commented 7 months ago

+1 see same warnings at HA start since 2024.1.4 (& 2024.1.5 )

2024-01-21 07:10:02.779 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x7AE6:1:0x0702]: 'async_initialize' stage failed: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 186, in sem_task
return await task
...
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 931, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2024-01-21 07:10:04.173 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x60C0:1:0x0702]: 'async_initialize' stage failed:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 326, in request
return await req.result
...
File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 325, in request
async with asyncio_timeout(timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError
codyc1515 commented 7 months ago

+1 see same warnings at HA start since 2024.1.4 (& 2024.1.5 )

2024-01-21 07:10:02.779 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x7AE6:1:0x0702]: 'async_initialize' stage failed: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 186, in sem_task
return await task
...
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 931, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2024-01-21 07:10:04.173 WARNING (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x60C0:1:0x0702]: 'async_initialize' stage failed:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 326, in request
return await req.result
...
File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 325, in request
async with asyncio_timeout(timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError

What devices are you using? Please post models.

aldalen commented 7 months ago

What devices are you using? Please post models.

@codyc1515 For my network:

image

When my network goes down, its not a specific model, its the whole network. I guess it could be one device tanking the network.... or could be something with the HW temporarily stuck as well (skyconnect, proxmox passthrough, fs freeze during backup, etc).

I feel like this error should be caught and be handled with better retry logic instead of permanent failure regardless of the underlying issue.

codyc1515 commented 7 months ago

Can you post your debug log please?

IPv777 commented 7 months ago

Leaved ZHA for this reason... Zigbee2MQTT is more stable

werns84 commented 7 months ago

Leaved ZHA for this reason... Zigbee2MQTT is more stable

Me too

click2saurabh commented 7 months ago

Posting another set of same errors since the restart

logger:%20zigpy.zcl%0ASource%3A%20runner.py%3A188%0AFirst%20occurred%3A%2026%20January%202024%20at%2018%3A31%3A09%20(79%20occurrences)%0ALast%20logged%3A%2015%3A21%3A00%0A%0A%5B0x6AD2%3A6%3A0x0020%5D%20Traceback%20(most%20recent%20call%20last)%3A%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/device.py%22,%20line%20326,%20in%20request%20return%20await%20req.result%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%20asyncio.exceptions.CancelledError%20The%20above%20exception%20was%20the%20direct%20cause%20of%20the%20following%20exception:%20Traceback%20(most%20recent%20call%20last):%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/zcl/init.py%22,%20line%20377,%20in%20request%20return%20await%20self._endpoint.request(%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py%22,%20line%20253,%20in%20request%20return%20await%20self.device.request(%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/device.py%22,%20line%20325,%20in%20request%20async%20with%20asyncio_timeout(timeout):%20File%20%22/usr/local/lib/python3.11/asyncio/timeouts.py%22,%20line%20111,%20in%20aexit%20raise%20TimeoutError%20from%20exc_val%20TimeoutError%20The%20above%20exception%20was%20the%20direct%20cause%20of%20the%20following%20exception:%20Traceback%20(most%20recent%20call%20last):%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py%22,%20line%20504,%20in%20check_in_response%20await%20self.checkin_response(True,%20self.CHECKIN_FAST_POLL_TIMEOUT,%20tsn=tsn)%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py%22,%20line%2083,%20in%20wrapper%20with%20wrap_zigpy_exceptions():%20File%20%22/usr/local/lib/python3.11/contextlib.py%22,%20line%20155,%20in%20exit%20self.gen.throw(typ,%20value,%20traceback)%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py%22,%20line%2066,%20in%20wrap_zigpy_exceptions%20raise%20HomeAssistantError(%20homeassistant.exceptions.HomeAssistantError:%20Failed%20to%20send%20request:%20device%20did%20not%20respond%0A%5B0x6AD2:6:0x0020%5D%20Traceback%20(most%20recent%20call%20last):%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py%22,%20line%20253,%20in%20request%20return%20await%20self.device.request(%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/device.py%22,%20line%20323,%20in%20request%20await%20send_request()%20File%20%22/usr/local/lib/python3.11/site-packages/zigpy/application.py%22,%20line%20833,%20in%20request%20await%20self.send_packet(%20File%20%22/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py%22,%20line%20931,%20in%20send_packet%20raise%20zigpy.exceptions.DeliveryError(%20zigpy.exceptions.DeliveryError:%20Failed%20to%20deliver%20message:%20%3CEmberStatus.DELIVERY_FAILED:%20102%3E%20The%20above%20exception%20was%20the%20direct%20cause%20of%20the%20following%20exception:%20Traceback%20(most%20recent%20call%20last):%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py%22,%20line%20504,%20in%20check_in_response%20await%20self.checkin_response(True,%20self.CHECKIN_FAST_POLL_TIMEOUT,%20tsn=tsn)%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py%22,%20line%2083,%20in%20wrapper%20with%20wrap_zigpy_exceptions():%20File%20%22/usr/local/lib/python3.11/contextlib.py%22,%20line%20155,%20in%20exit%20self.gen.throw(typ,%20value,%20traceback)%20File%20%22/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py%22,%20line%2075,%20in%20wrap_zigpy_exceptions%20raise%20HomeAssistantError(message)%20from%20exc%20homeassistant.exceptions.HomeAssistantError:%20Failed%20to%20send%20request:%20Failed%20to%20deliver%20message:%20%3CEmberStatus.DELIVERY_FAILED:%20102%3E%0A

puddly commented 7 months ago

@click2saurabh Please enable ZHA debug logging and post the debug log. The error message alone doesn't contain much information.

click2saurabh commented 7 months ago

@puddly On it. Will do that now. Thanks for looking into this.

click2saurabh commented 7 months ago

@puddly please find attached...

home-assistant_zha_2024-01-29T16-24-23.593Z.log

micium commented 7 months ago

same problem in 2024.1.6

ahaverty commented 7 months ago

Same issue here since the December releases, I've tried multiple HA versions since, and all resulted in the same error for all makes/models of ZigBee on my 80 device network.

Conbee II Home Assistant Blue

ahaverty commented 7 months ago

Just in case it could be relevant (maybe due to some underlying dependency), but the Z2M project is also reporting similar issues this week: https://github.com/Koenkk/zigbee2mqtt/issues/21162

codyc1515 commented 7 months ago

Just in case it could be relevant (maybe due to some underlying dependency), but the Z2M project is also reporting similar issues this week: Koenkk/zigbee2mqtt#21162

Interesting. Where is the commonality (other than the users RF environment)?

ahaverty commented 7 months ago

Interesting. Where is the commonality (other than the users RF environment)?

I have no idea if there's any commonality, I just wanted to highlight in case it's not a coincidence, and perhaps helps narrow down the cause.

micium commented 7 months ago

The problem seems resolved in the new HA 2024.2 version

micium commented 7 months ago

The problem is resolved in the new HA 2024.2 version

rockberte commented 7 months ago

I still have this issue ussing HA 2024.2.1:

2024-02-12 16:03:01.147 ERROR (MainThread) [zigpy.zcl] [0x81B7:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/zigpy/device.py", line 327, in request await send_request() File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 833, in request await self.send_packet( File "/usr/local/lib/python3.12/site-packages/bellows/zigbee/application.py", line 931, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 634, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__ self.gen.throw(value) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>

micium commented 7 months ago

I still have this issue ussing HA 2024.2.1:

2024-02-12 16:03:01.147 ERROR (MainThread) [zigpy.zcl] [0x81B7:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/zigpy/endpoint.py", line 253, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/zigpy/device.py", line 327, in request await send_request() File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 833, in request await self.send_packet( File "/usr/local/lib/python3.12/site-packages/bellows/zigbee/application.py", line 931, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 634, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__ self.gen.throw(value) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/__init__.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>

What's kind of coordinator are you using ? in my setup, Sonoff Dongle-E with Firmware: 7.3.1.0 build 176

rockberte commented 7 months ago

What's kind of coordinator are you using ? in my setup, Sonoff Dongle-E with Firmware: 7.3.1.0 build 176

I use SkyConnect with Firmware: 7.1.1.0 build 273

codyc1515 commented 7 months ago

Update to latest version with web flasher (as above).

rockberte commented 6 months ago

I updated to Firmware 7.3.2.0 build 212 about three days ago with web flasher and until now I don't have any issues. But now I'm not sure what finally solved the issue - either newly paring the devices with problems (what I've done before the update hint) or the firmware update itself. So I'll still keep an eye on my ZigBee network.

Also I was not aware that it is necessary to update SkyConnect using a seperate tool. I thought this will be done through update mechanisms in HA directly - seems that I've misunderstood this.

Thanks for the hint with the firmware update anyway!!