ZHA - Conbee 2 - Not working after update 2024.2.5

Hey there, i’ve updatet my ha to 2024.2.4 and had struggle to get the ZHA working - restartet a few times and plugged the conbee 2 in and out - it startet working again after 20-30 minutes. But only for maybe 1-2 hours.

The next day i went to 2024.2.5 - and now i can not get it working any more - no matter what i do - restart - replug - nothing seems to work.

I’ve ordered ha skyconnect stick - hope this is working better.
Any tips on migrating without loosing any device?

But in meantime - someone has an idea?
(All the days before there was no problem - its a pi4 and conbee 2 - on usb 2 with extention cable.

Here are some debug logs - if anyone can see anything there:

2024-02-29 18:01:57.521 DEBUG (MainThread) [zigpy_deconz.uart] Connecting to /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2408482-if00
2024-02-29 18:01:57.521 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2408482-if00' (115200 baudrate)
2024-02-29 18:01:57.528 DEBUG (MainThread) [zigpy_deconz.uart] Connection made
2024-02-29 18:01:57.529 DEBUG (MainThread) [zigpy_deconz.uart] Connected to /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2408482-if00
2024-02-29 18:01:57.529 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.read_parameter{'parameter_id': <NetworkParameter.protocol_version: 34>, 'parameter': b''} (seq=1)
2024-02-29 18:01:57.530 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0a01000800010022
2024-02-29 18:01:59.331 DEBUG (MainThread) [zigpy_deconz.api] No response to 'CommandId.read_parameter' command with seq 1
2024-02-29 18:01:59.335 DEBUG (Thread-22) [aiosqlite] executing functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f84f6cb80>)
2024-02-29 18:01:59.336 DEBUG (Thread-22) [aiosqlite] operation functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f84f6cb80>) completed
2024-02-29 18:01:59.338 DEBUG (Thread-22) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fa07874c0>, 'PRAGMA wal_checkpoint;', [])
2024-02-29 18:01:59.339 DEBUG (Thread-22) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fa07874c0>, 'PRAGMA wal_checkpoint;', []) completed
2024-02-29 18:01:59.341 DEBUG (MainThread) [zigpy_deconz.api] Serial '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2408482-if00' connection lost unexpectedly: None
2024-02-29 18:01:59.341 DEBUG (Thread-22) [aiosqlite] executing functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f826647c0>)
2024-02-29 18:01:59.342 DEBUG (Thread-22) [aiosqlite] operation functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f826647c0>) completed
2024-02-29 18:01:59.346 DEBUG (Thread-22) [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Connection object at 0x7fa07874c0>)
2024-02-29 18:01:59.349 DEBUG (Thread-22) [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Connection object at 0x7fa07874c0>) completed
2024-02-29 18:01:59.351 DEBUG (MainThread) [homeassistant.components.zha] Failed to set up ZHA
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 590, 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 196, in async_from_config
    await instance.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 214, in async_initialize
    await app.startup(auto_form=True)
  File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 225, in startup
    await self.connect()
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/zigbee/application.py", line 97, in connect
    await api.connect()
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 466, in connect
    await self.version()
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 814, in version
    self._protocol_version = await self.read_parameter(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 833, in read_parameter
    rsp = await self.send_command(
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 508, in send_command
    return await self._command(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/api.py", line 589, in _command
    async with asyncio_timeout(COMMAND_TIMEOUT):
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

1 Like

I have the same problem with SkyConnect :cry:.

Take a look to my issue:

Oh noo - thx for the info.

After a restart - i always had to “reconfigure” zigbee - till it was working.
Also this was anoying.

Is there any rock solid solution for zigbee?
Is it ZHA - or is it the stick or is ist HA?

I have the same issue. Zigbee network was dead!
Reverting back to 2024.2.3 and all seams OK again.
Core 2024.2.3
Supervisor 2024.02.1
Operating System 11.5
Frontend 20240207.1
Last time i had this type of problem was with OS upgrade to 10.3.
It was solved with fw upgrade of Conbee II.
But this time it seems like the Core upgrade makes the problem?
Mvh Kent

Thank you for this information.
Seems like there are many issues with zigbee - but no infos how to resolve or log requests.

Trying skyconnect on monday - if it fails - i think i move away from zha and or also ha.
My experience with zigbee is really bad - and nothing to recommend to others.

I’ve tried also reverting - restore worked - but could not import
zha backup file:

restore

Going to latest again and hoping for skyconnect.

You are not alone, I also have this issue (everytime a update are done). And it was fixed in the past by restarting hardware and plug in and out (sometimes by switching to another usb socket) the usb conbee device and then migrating to a new “radio”. Very time consuming process.

Unfortunately this is not working now. But I will let you know if I get it working, will try something new today :slight_smile:

Now I got it working again. sigh… After tried multiple times to do firmware update on the ConBee II device, which did not work for me (How to update conbee II on hassio with deconz/phoscon integration? - #12 by thomas-svrts)

I ended up shutting down my hardware (my raspianpi running hassio) and removed the ConBee II, then started it up again and plugged the ConBee II in and it showed up in the dashboard and it just worked fine again. :man_shrugging:

So I suggest to try shutdown your hardware completely and start it without the usb device and plug it in when it’s live again. At least it worked for me.

No way :see_no_evil:
My firmware was already the newest.
Did what you said - shutdown completely - cut off power - start up - plug in conbee - do the migrate stuff and it was up.
But many sensor wont send data - have to add them new i think.

But anyway - this is not what you want - skyconnect arrived today - will test it out later.

Ist there any easy way to remove paired zigbee devices?
Why is it not possible to remove them in the UI ?

1 Like

Seems cumbersome to remove multiple devices in general :slight_smile: but you can remove it one by one on the device page (via three dot menu)

Which three dot menu do you mean?

Sorry for the Swedish

Settings → Devices and services → Zigbee devices list → open the device you want to remove → three dont menu in the information section → remove

Ah thank you - unfortunately - the devices which do not work - do not have these three dot menu :-/

dotmenu

Update - i could re add the not working devices by:

Faield Devices → ZHA (three dot menu missing)
ZHA → add device
Reset the device with hardware buttons
ZHA finds the device with “unkown”
Now you can delete the device in ZHA via three dot menu
Now - again - ZHA add device
Reset the device with hardware button
ZHA finds the device with the right vendor and settings…

Next time there are problems - i’ll move to the skyconnect stick here.
Or maybe if i have to much time.
If there are some advices - changing the stick and devices - i’ll take them.

Thank you

Update - tempsensors stopped working again.
So not a fully solution :frowning:

Any tips on migrating to another stick?

I have issues with temp sensors also being offline from time to time… Aqara device… but seems to run fine since I got it working.