Lost my zigbee integration - ConBee II

Hi, hoping someone can help me.

I lost access to my zigbee devices. It appears as though Home Assistant can no longer find my ConBee II USB stick. Haven’t changed anything outside updates so I’m at a loss as to why its not working now.

I am running Home Assistant Supervised with the latest versions (HAOS 10.1 with 2023.4.6) on a proxmox VM. Has been solid and reliable until now.

I can see the ConBee II stick within Proxmox,

But not in Home Assistant.

Here is what the logs are telling me:

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:205
First occurred: 13:25:22 (1 occurrences)
Last logged: 13:25:22

Error setting up entry ZHA for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 122, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 220, in async_initialize
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 205, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 216, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 190, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 80, in connect
    await api.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 275, in connect
    self._uart = await zigpy_deconz.uart.connect(self._config, self)
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/uart.py", line 134, in connect
    _, protocol = await zigpy.serial.create_serial_connection(
  File "/usr/local/lib/python3.10/site-packages/zigpy/serial.py", line 37, in create_serial_connection
    transport, protocol = await pyserial_asyncio.create_serial_connection(
  File "/usr/local/lib/python3.10/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.10/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00'

Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:205
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 13:25:15 (3 occurrences)
Last logged: 13:25:22

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/local/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 205, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 216, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 190, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 80, in connect
    await api.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 275, in connect
    self._uart = await zigpy_deconz.uart.connect(self._config, self)
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/uart.py", line 134, in connect
    _, protocol = await zigpy.serial.create_serial_connection(
  File "/usr/local/lib/python3.10/site-packages/zigpy/serial.py", line 37, in create_serial_connection
    transport, protocol = await pyserial_asyncio.create_serial_connection(
  File "/usr/local/lib/python3.10/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.10/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2195552-if00'

Can someone point me in the right direction in terms of restoring my zigbee setup?

This is confusing. Are you running Home Assistant Operating System (HAOS) in the VM, or are you running HA Supervised on Debian OS in the VM?

If you are using proxmox there is absolutely no reason to run a HA supervised install (as you can implement other Linux servers for additional applications) and many reasons not to.

As far as I know I am running HAOS in the VM. As in…

Ok so you are not

Thanks for clearing that up.

1 Like

Oh OK, I get a little confused between the different installation methods it seems.

I’m struggling with this right now.
Debian updates brokey… udev does not apply symlink to /dev/serial/by-id Therefore, home assistant can’t find it if it set it up with that path

Edit: oh also, possible systemd-journal-remote/gatewayd problem with update

They are not using Debian. They are using HAOS.

Ah, I misunderstood that as they weren’t using HAOS but rather Debian base. mb but yeah I am assuming Debian udev issues since November just hit my system. I just reverted to backup and holding updates.
Bugreport: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035094
PR: udev: fix by-id symlinks by yuwata · Pull Request #25246 · systemd/systemd · GitHub

I am embarrassed to say I re-booted the VM from with Proxmox and its all now working again. Sorry about that :grimacing:

If you need a workaround for a similar issue due to systemd update you can copy https://github.com/yuwata/systemd/blob/5286da064c97d2ac934cb301066aaa8605a3c8f9/rules.d/60-serial.rules over /usr/lib/udev/rules.d/60-serial.rules.
It seems like in systemd a bug that was fixed in a newer version has now also been introduced to an older version, see here: Reddit - Dive into anything

2 Likes

Thanks @maro, that solved my problem