Closed samsonusmc closed 1 year ago
Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
The device file is gone:
: [Errno 2] could not open port /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_40ab4b73b614ed11b20fb68be054580b-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_40ab4b73b614ed11b20fb68be054580b-if00-port0'
Re-plug sky connect. If it still does not show under hardware serial devices, downgrade the Hass OS to see if it fixes the issue.
Without the device file, zha won't start, BUT zha does not control this file. It is controlled by the underlying host OS
Replugging didn't work on multiple USB slots, so downgraded to HASS OS 9.4. Then replugging worked. Upgraded to HASS OS 9.5 and still working.. so can't be 100% sure if 9.5 is the problem. But thank you for the help.. I learned about the how Core interacts with the dev mapper
Using RasBerry Pi I also encounter this 'Error setting up entry SkyConnect v1.0 for zha' message after reboot. I just today reinstalled HA new and latest plugin RedNode and then restored a full backup. After reboot I found Skyconnect was in error. Switching it to another USB ports did not change the issue. Tried Migrate Radio option but it returns an error message. Side note; I expected the Home Asistant Observer (http://homeassistant.local:4357) to show an error status but it stated the system was healthy(?).
Tried with: Home Assistant 2023.2.3 (and 2022.12.8, a previously working backup) Supervisor 2023.01.1 Operating System 9.5
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Discovered with 2023.2.3 ZHA isn't working. Was working prior to updates. It says can't find the SkyConnect but nothing was changed between updates.
Logger: homeassistant.config_entries Source: components/zha/core/gateway.py:174 First occurred: 12:50:45 PM (1 occurrences) Last logged: 12:50:45 PM
Error setting up entry SkyConnect v1.0 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-Nabu_Casa_SkyConnect_v1.0_40ab4b73b614ed11b20fb68be054580b-if00-port0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 111, in async_setup_entry await zha_gateway.async_initialize() File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 189, in async_initialize raise exc File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 174, in async_initialize self.application_controller = await app_controller_cls.new( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 169, in new await app.startup(auto_form=auto_form) File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 145, in startup await self.connect() File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect self._ezsp = await bellows.ezsp.EZSP.initialize(self.config) File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 101, in initialize await ezsp.connect(use_thread=zigpy_config[conf.CONF_USE_THREAD]) File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/init.py", line 118, in connect self._gw = await bellows.uart.connect(self._config, self, use_thread=use_thread) File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 396, in connect protocol, connection_done = await thread.run_coroutine_threadsafe( File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 375, in _connect transport, protocol = await zigpy.serial.create_serial_connection( File "/usr/local/lib/python3.10/site-packages/zigpy/serial.py", line 40, 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-Nabu_Casa_SkyConnect_v1.0_40ab4b73b614ed11b20fb68be054580b-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_40ab4b73b614ed11b20fb68be054580b-if00-port0'
What version of Home Assistant Core has the issue?
2023.2.3
What was the last working version of Home Assistant Core?
2023.1
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/
Diagnostics information
home-assistant_zha_2023-02-08T17-57-16.506Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response