Closed rlewis187 closed 1 year ago
Hey there @dmulcahey, @adminiuga, @puddly, 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!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
I have taken a backup from the working test server and restored it to the main one. Still doesn't want to work. Error logs:
Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:172
First occurred: 15:48:13 (1 occurrences)
Last logged: 15:48:13
Error setting up entry socket://10.109.1.157:8888 for zha
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 111, in async_setup_entry
await zha_gateway.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
raise exc
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 151, in new
await app.startup(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 132, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 111, in initialize
await self.permit(0)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 945, in permit
await zigpy.zdo.broadcast(
File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 515, in broadcast
return await app.broadcast(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 760, in broadcast
await self.send_packet(
File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 423, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>
Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:172
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 15:48:06 (3 occurrences)
Last logged: 15:48:13
Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator (attempt 1 of 3)
Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator (attempt 2 of 3)
Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator (attempt 3 of 3)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 151, in new
await app.startup(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 132, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 111, in initialize
await self.permit(0)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 945, in permit
await zigpy.zdo.broadcast(
File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 515, in broadcast
return await app.broadcast(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 760, in broadcast
await self.send_packet(
File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 423, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>
Logger: homeassistant.components.automation.new_automation_2
Source: components/automation/__init__.py:609
Integration: Automation (documentation, issues)
First occurred: 15:48:21 (1 occurrences)
Last logged: 15:48:21
Got error 'Unable to get zha device a6f58e4f5cd1e5d405bae98ca2b4a93a' when setting up triggers for Jess Room power button on
Logger: homeassistant.components.automation.workstation_power_button_off
Source: components/automation/__init__.py:609
Integration: Automation (documentation, issues)
First occurred: 15:48:21 (1 occurrences)
Last logged: 15:48:21
Got error 'Unable to get zha device a6f58e4f5cd1e5d405bae98ca2b4a93a' when setting up triggers for Jess Room power button off
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>
Your Conbee is experiencing too much interference and is refusing to send packets. Move it away from SSDs and USB 3.0 ports by putting it on a USB 2.0 extension cable.
It is already on an extension, but it is in a very noisy area generally, I have ordered a longer (3M) one which will arrive wednesday. I will report back when I have tested it.
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225> Tried to solve this problem now for hours, downgrading, upgrading, switching wifi channel to lower end and zigbee to channel 25, having an extension cord etc. What helped, was shutting down my raspberry and my pc, cutting ALL electrical power (the whole apartment) for a few seconds and then restarting. Maybe there is some buffer overrun in a light bulb or a mains powered zigbee device, but now everything works again.
I have put my Conbee stick on a 3M Amazon Basics USB extension lead and now it is working again. Putting it on 2ft and a 3M USB extension leads did not work, the Conbee stick was not even visible in HA. This was not unexpected.
I has intended to migrate off the somewhat flaky Sonoff hub at some point anyway, this whole issue has just forced my hand.
I am now back up & running, many thanks for the help @puddly
Closing as resolved
The problem
Since updating to HA Version 2022.12.0 my ZHA Integration fails to start.
I am following on from this issue: https://github.com/home-assistant/core/issues/83509
As this looks like something different to me.
I'm using supervised HA on a Raspberry Pi 4 4GB. I was using a Tasmota flashed Sonoff Zigbee Bridge as my zigbee controller for ZHA.
Initially, the integration failed to start after updating to 2022.12.0, reverting to a backup of previously working version (2022.11.5) did not resolve the issue.
I ordered a Conbee II stick from Amazon and attempted to migrate everything across from the Sonoff, this did not work.
I deleted the ZHA integration and tried to start from scratch, but the ZHA integration still will not start.
Today, I created a new home assistant instance on a spare Raspberry Pi 400 and restored a previously working backup. I was able to switch to the DeconZ stick and re-pairing all my sensors worked and was fine.
When I tried to do the same thing back on my original Raspberry Pi 4, I have run into the exact same issues. ZHA just will not start.
See below for error logs:
What version of Home Assistant Core has the issue?
2022.12.X
What was the last working version of Home Assistant Core?
2022.11.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha
Diagnostics information
home-assistant_zha_2022-12-12T14-03-31.636Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?