-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZHA - Failed to send request: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> #107105
Comments
Hey there @dmulcahey, @Adminiuga, @puddly, @TheJulianJES, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) zha documentation |
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. |
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.
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. |
Same here, lost a lot a devices.... |
Same issue. some devices failed to respond and logs are full of errors like below: Logger: zigpy.zcl [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> |
I've the same problem since a lot of weeks, I changed channel to a less energy used, reinstalled, reconfigured.... but it still happens. |
Same for me. I am under RPI4 with a conbee2 key 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 [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 |
Same problem with 2024.1.4 |
+1
|
What devices are you using? Please post models. |
@codyc1515 For my network: 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. |
Can you post your debug log please? |
Leaved ZHA for this reason... |
Me too |
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%20__aexit_%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%20__exit__%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%20__exit__%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 |
@click2saurabh Please enable ZHA debug logging and post the debug log. The error message alone doesn't contain much information. |
@puddly On it. Will do that now. Thanks for looking into this. |
@puddly please find attached... |
same problem in 2024.1.6 |
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 |
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)? |
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. |
The problem seems resolved in the new HA 2024.2 version |
The problem is resolved in the new HA 2024.2 version |
I still have this issue ussing HA 2024.2.1:
|
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 |
Update to latest version with web flasher (as above). |
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!! |
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
The text was updated successfully, but these errors were encountered: