Zigbee / zha stopped working, I can't make heads or tails of the logs

I don’t recall doing anything when it stopped working. I was on 11.1 when it originally stopped. Have updated and fully rebooted all hardware since.

I can ping the IP, so it’s online.

Not sure where to go from here.

I am using the Sonoff ZBBridge.

Home Assistant 2022.11.2
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221108.0 - latest

Logs:

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:172
First occurred: November 8, 2022 at 7:18:57 PM (4 occurrences)
Last logged: November 8, 2022 at 8:07:33 PM

Error setting up entry socket://192.168.1.195:8888 for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 112, 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 144, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 106, in initialize
    await ezsp._startup_reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 97, in _startup_reset
    await self.reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 126, in reset
    await self._gw.reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 244, in reset
    return await asyncio.wait_for(self._reset_future, timeout=RESET_TIMEOUT)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

and

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:172
Integration: Zigbee Home Automation (documentation, issues)
First occurred: November 8, 2022 at 7:18:39 PM (12 occurrences)
Last logged: November 8, 2022 at 8:07:33 PM

Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 1 of 3)
Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 2 of 3)
Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 3 of 3)
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

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 144, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 106, in initialize
    await ezsp._startup_reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 97, in _startup_reset
    await self.reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 126, in reset
    await self._gw.reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 244, in reset
    return await asyncio.wait_for(self._reset_future, timeout=RESET_TIMEOUT)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

Looks like those people can’t build working hardware. (see e.g. Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator · Issue #69881 · home-assistant/core · GitHub)

Hacking the Silvercrest (Lidl) Smart Home Gateway - PaulBanks.Org is hardware that does function, but requires soldering skills.

I think Zigbee not having features to replace the coordinator with only a second of downtime makes it unsuitable for serious applications. I don’t know whether the newer protocols like Matter have a working solution for that.

Well that’s disappointing. Thanks for the link.

I am having the same issue with my Conbee ii. Started right after upgrading to latest core version.

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:172
First occurred: 9:52:09 PM (1 occurrences)
Last logged: 9:52:09 PM

Error setting up entry ConBee II - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEXXXXXX, s/n: XXXXXXX- dresden elektronik ingenieurtechnik GmbH - 1CF1:0030 for zha
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 112, 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 144, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 125, in startup
    await self.initialize(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 110, in initialize
    await self.permit(0)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 932, in permit
    await zigpy.zdo.broadcast(
  File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 516, in broadcast
    return await app.broadcast(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 747, in broadcast
    await self.send_packet(
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 419, in send_packet
    raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>

I just bought another zbridge to see if it was hardware based. I will update once I get it installed.

Restored to a previous installation which worked. Conbee ii started working again. Then went through the update process but not the applications, only HA core and OS. No problem there. I will try other updates (Node Red, App deamon and a few others) one by one to see which one broke my Zigbee connection. Or meybe it was just a glitch in installation in the first place? I’ll let you know what happened if I find out, but honestly, I will leave it alone for a while.

1 Like

Also got my zigbee working significantly worse , not reliable

worked flawlessly on 2022.10 but once i update to 11 it keep ignoring my switches, had to click a few times before it works, also battery zig bee devices started to get unavailable until i re add them :(( i wish i can restore 2022.10 but it has been a couple of weeks since I updated… db data will be lost… so hope it will be fixed soon

Below are the log messages i keep getting

Logger: zigpy_deconz.zigbee.application
Source: runner.py:119
First occurred: 2:57:43 PM (15 occurrences)
Last logged: 8:30:32 PM

Unexpected transmit confirm for request id 215, Status: TXStatus.MAC_CHANNEL_ACCESS_FAILURE
Unexpected transmit confirm for request id 220, Status: TXStatus.NWK_ROUTE_DISCOVERY_FAILED
Unexpected transmit confirm for request id 223, Status: TXStatus.NWK_ROUTE_DISCOVERY_FAILED
Unexpected transmit confirm for request id 118, Status: TXStatus.MAC_CHANNEL_ACCESS_FAILURE
Unexpected transmit confirm for request id 122, Status: TXStatus.SUCCESS

Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 7:32:13 PM (5 occurrences)
Last logged: 8:28:58 PM

[0xC45A:1:0x1000]: Couldn’t get list of groups: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>
[0xC45A:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError(‘Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>’), DeliveryError(‘Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>’), DeliveryError(‘Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>’), DeliveryError(‘Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>’)]
[0x434E:1:0x1000]: Couldn’t get list of groups: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>
[0x9D5E:1:0x0001]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), DeliveryError(‘Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>’), DeliveryError(‘Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>’)]
[0xB992:1:0x1000]: Couldn’t get list of groups: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:96
First occurred: 5:45:29 PM (1 occurrences)
Last logged: 5:45:29 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 773, in _discover_unknown_device
return await zigpy.zdo.broadcast(
File “/usr/local/lib/python3.10/site-packages/zigpy/device.py”, line 516, in broadcast
return await app.broadcast(
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 747, in broadcast
await self.send_packet(
File “/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py”, line 419, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>

Logger: zigpy.application
Source: runner.py:119
First occurred: 5:45:29 PM (1 occurrences)
Last logged: 5:45:29 PM

Unknown device AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xA735)

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/api.py:335
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 5:43:19 PM (1 occurrences)
Last logged: 5:43:19 PM

[139851333095904] Error handling message: Unknown error (unknown_error) from 192.168.100.130 (Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2022.10.1 (io.robbie.HomeAssistant; build:2022.424; iOS 16.1.0) Mobile/HomeAssistant, like Safari)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py”, line 27, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/homeassistant/homeassistant/components/zha/api.py”, line 335, in websocket_permit_devices
await zha_gateway.application_controller.permit(time_s=duration, node=ieee)
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 932, in permit
await zigpy.zdo.broadcast(
File “/usr/local/lib/python3.10/site-packages/zigpy/device.py”, line 516, in broadcast
return await app.broadcast(
File “/usr/local/lib/python3.10/site-packages/zigpy/application.py”, line 747, in broadcast
await self.send_packet(
File “/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py”, line 419, in send_packet
raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>

Same here, but only HUE is affected.

Most of my stuff that i had problems with was ikea tradfrii and some aqara as well as “3A Smart Home“ wall switches. . At some point after HA reboot all zigbee devices got unresponsive. That was the last one. Had to roll back to 2022.10 backup and flash the files from old config directory from 11 over that. Was able to keep the db and all data and revert back to 10. It is noticeably better now. I guess i will skip 2022.11 release and wait for stable

@barroomhero Have you installed the new Sonoff Bridge to test the hardware? I came here to post the exact same situation. Just curious if you determined a solution. Thanks!

I haven’t yet. It’s been sitting on my desk since, but I haven’t had a chance to install. Sorry.

I’ve bought the Zigbee 3.0 USB Dongle, connected it to my Raspberry Pi and success out of the gate. I didn’t take the time to backup everything, only have a few devices so I had to repair it all. It’s been a couple weeks now and I can tell the connection is more stable.

I have a similar issue ,but notice the SQLite3 remark at the bottom:

Error setting up entry socket://192.168.178.14:8888 for zha

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/zigpy/appdb.py", line 153, in new
    await listener.initialize_tables()
  File "/usr/local/lib/python3.10/site-packages/zigpy/appdb.py", line 123, in initialize_tables
    async with self.execute("PRAGMA integrity_check") as cursor:
  File "/usr/local/lib/python3.10/site-packages/aiosqlite/context.py", line 39, in __aenter__
    self._obj = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 192, in execute
    cursor = await self._execute(self._conn.execute, sql, parameters)
  File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 137, in _execute
    return await future
  File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 110, in run
    result = function()
sqlite3.OperationalError: disk I/O error

I have HA running on a RPI4 and a LIDL zigbee coordinator hacked the Paul Banks way. And yes, I can telnet to port 8888 of the gateway.
Any suggestions?