Last night my home assistant OS crashed, and when I restarted it this morning, the ZHA integration says that ZHA failed to setup. I tried rebooting, the device, restarting HA, unplugging and re-plugging the coordinator again, etc. The logs tell me a couple of things, but the most relevant seems to be the below.
I am running an RPi4B with SSD, the coordinator is Sonoff Zigbee 3.0 Dongle plus, running updated firmware from Z2M. It ran fine for about a month until the problems this morning.
Is the dongle a problem? Firmware?
If so, is there a way to save my table of devices and switch back to the HUSBZB-1 that is currently just running Z-wave?
Logger: homeassistant.components.zha.core.gateway
Source: components/zha/core/gateway.py:152
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 10:23:43 AM (12 occurrences)
Last logged: 10:35:13 AM
Couldn't start ZNP = Texas Instruments Z-Stack ZNP protocol: CC253x, CC26x2, CC13x2 coordinator
Traceback (most recent call last):
File "/usr/local/lib/python3.9/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-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_0eccdc73c793eb11b26c1b4f3d98b6d1-if00-port0'
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 152, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 196, in startup
return await self._startup(
File "/usr/local/lib/python3.9/site-packages/zigpy_znp/zigbee/application.py", line 209, in _startup
await znp.connect()
File "/usr/local/lib/python3.9/site-packages/zigpy_znp/api.py", line 81, in connect
self._uart = await uart.connect(self._config[conf.CONF_DEVICE], self)
File "/usr/local/lib/python3.9/site-packages/zigpy_znp/uart.py", line 158, in connect
transport, protocol = await serial_asyncio.create_serial_connection(
File "/usr/local/lib/python3.9/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.9/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/usr/local/lib/python3.9/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-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_0eccdc73c793eb11b26c1b4f3d98b6d1-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_0eccdc73c793eb11b26c1b4f3d98b6d1-if00-port0'