core: ZHA unable to find serial connection after b2 upgrade
The problem
Immediately after the the upgrade to beta 2, zigbee devices that are managed via the ZHA integration work and respond. When you restart core, they fall to come up and are unavailable. A restart of the device does not fix the issue. Downgrading back to beta 1 with or without a restart fixes the issue. While this appears to be a stick issue, the fact that it works after downgrading says otherwise. Have not had an issue until updating to this beta. I’m running HassOS 5.10 64bit on a RPI 4.
What is version of Home Assistant Core has the issue?
Core-2021.2.0b2
What was the last working version of Home Assistant Core?
Core-2021.2.0b1
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/
Example YAML snippet
# Put your YAML below this line
Anything in the logs that might be useful for us?
# Put your logs below this line
Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:157
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 10:09:00 PM (7 occurrences)
Last logged: 10:12:56 PM
Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
File "/usr/local/lib/python3.8/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_DE2196260-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 157, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.8/site-packages/zigpy/application.py", line 69, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/zigbee/application.py", line 65, in startup
await self._api.connect()
File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 245, in connect
self._uart = await zigpy_deconz.uart.connect(self._config, self)
File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/uart.py", line 139, in connect
_, protocol = await serial_asyncio.create_serial_connection(
File "/usr/local/lib/python3.8/site-packages/serial_asyncio/__init__.py", line 445, in create_serial_connection
serial_instance = serial.serial_for_url(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/usr/local/lib/python3.8/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_DE2196260-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2196260-if00'
Logger: zigpy.application
Source: /usr/local/lib/python3.8/site-packages/zigpy/application.py:71
First occurred: 10:09:00 PM (7 occurrences)
Last logged: 10:12:56 PM
Couldn't start application
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 35 (17 by maintainers)
Considering this fixed in 2021.2.0 Release. Closing this one. Re-open if the issue persists and submit detailed error message.
I think b4 will fix it with https://github.com/home-assistant/core/pull/45889
May want to open an issue in hassos repo then.