core: Zigbee network stopped working after upgrade

The problem

All my zigbee devices stopped working. I use ZHA. I upgraded and then everything stopped working:

image

I have a SONOFF SNZB-02D, several Aqara Buttons, and some Ikea Tradfri Switches.

Here is the lsusb for my HUSBZB-1:

Bus 001 Device 002: ID 10c4:8a2a Silicon Labs HubZ Smart Home Controller

What version of Home Assistant Core has the issue?

2024.1.2

What was the last working version of Home Assistant Core?

2023.11.?

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Diagnostics information

home-assistant_zha_2024-01-10T03-40-01.899Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I’m a beginner HA user, so I might have missed something basic.

I’ve also upgraded more than once since the issue started, hoping that an upgrade would fix this issue.

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 22

Most upvoted comments

Same issue with the CC2652-P (Sonoff Zigbee 3.0 USB Dongle-P) since the update from 2023.12.4 to 2024.1.2. Downgraded to 2023.12.4 and works again.

I have a CC2652-P (Sonoff Zigbee 3.0 USB Dongle-P) and mine too stopped working following the .1 update, I just flashed my firmware with CC1352P2_CC2652P_launchpad_coordinator_20230507.hex via Python cc2538-bsl.py script and now it all works again. There are a bunch of versions of the firmware, make sure you get the right one for your device.

Thanks for the advice! I’ll try it on the weekend.

Having the same issue - can anybody help how to get things working again in 2024.3.0

And after a restart to update a hacs plugin the ZHA Error reappeared:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy_znp/api.py", line 1059, in request
    response = await response_future
               ^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 163, in async_setup_entry
    zha_gateway = await ZHAGateway.async_from_config(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 193, in async_from_config
    await instance.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 211, in async_initialize
    await app.startup(auto_form=True)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 225, in startup
    await self.connect()
  File "/usr/local/lib/python3.11/site-packages/zigpy_znp/zigbee/application.py", line 103, in connect
    await znp.connect()
  File "/usr/local/lib/python3.11/site-packages/zigpy_znp/api.py", line 736, in connect
    self.capabilities = (await self._skip_bootloader()).Capabilities
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_znp/api.py", line 716, in _skip_bootloader
    return await self.request(c.SYS.Ping.Req())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_znp/api.py", line 1055, in request
    async with async_timeout.timeout(
  File "/usr/local/lib/python3.11/site-packages/async_timeout/__init__.py", line 141, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.11/site-packages/async_timeout/__init__.py", line 228, in _do_exit
    raise asyncio.TimeoutError
TimeoutError
2024-01-16 14:22:09.286 INFO (MainThread) [reolink_aio.api] Reolink Blumenwiese ONVIF event channel 0, Motion: True

I tried every version of that TI SmartRF Flash Programmer 2 program and none of them worked and only threw errors. ZigStarGW-MT seemed to have a virus, or at least it looked that way. Only the python script worked to flash it.

https://itead.cc/wp-content/uploads/2023/05/CP210x_Windows_Drivers_with_Serial_Enumeration.zip https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin https://github.com/JelmerT/cc2538-bsl

I had to install the driver, confirm my serial port with Device Manager, then from an admin Powershell prompt in the folder where both the Python script and the firmware were at, install Python and then “pip3 install pyserial” and "pip3 install IntelHex"and then run: python cc2538-bsl.py -p COM5 -evw --bootloader-sonoff-usb .\CC1352P2_CC2652P_launchpad_coordinator_20230507.hex

Same issue with the CC2652-P (Sonoff Zigbee 3.0 USB Dongle-P) since the update from 2023.12.4 to 2024.1.2.
Downgraded to 2023.12.4 and works again.

I have a CC2652-P (Sonoff Zigbee 3.0 USB Dongle-P) and mine too stopped working following the .1 update, I just flashed my firmware with CC1352P2_CC2652P_launchpad_coordinator_20230507.hex via Python cc2538-bsl.py script and now it all works again. There are a bunch of versions of the firmware, make sure you get the right one for your device.

Thanks for the advice! I’ll try it on the weekend.

Mine stopped as well, I have a deconz conbee2 and it stopped working 2 weeks ago.

I just came here to post this issue because in my research I hadn’t seen my exact issue. I’m not sure if yours is it either but figured I’d say something to bump zigbee issues. I just found this error after rebooting my system and downloading the zigbee debug log.

2024-01-09 21:57:14.935 DEBUG (MainThread) [homeassistant.components.zha] Failed to set up ZHA
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 586, in _command
    return await fut
           ^^^^^^^^^
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/__init__.py", line 163, in async_setup_entry
    zha_gateway = await ZHAGateway.async_from_config(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 193, in async_from_config
    await instance.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 211, in async_initialize
    await app.startup(auto_form=True)
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 225, in startup
    await self.connect()
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/zigbee/application.py", line 97, in connect
    await api.connect()
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 466, in connect
    await self.version()
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 802, in version
    self._protocol_version = await self.read_parameter(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 821, in read_parameter
    rsp = await self.send_command(
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 508, in send_command
    return await self._command(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 585, in _command
    async with asyncio_timeout(COMMAND_TIMEOUT):
  File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
    raise TimeoutError from exc_val
TimeoutError