Error setting up entry SkyConnect (VirtualBox on Win11)

Setup:

  • 2023.4.0
  • Running official image as a VM under VirtualBox 6
  • Host: Win11 running on a NUC.
  • SkyConnect running using supplied cable from a USB 2.0 port (tried other ports)
  • 3 zigbee devices connected via SkyConnect, all within close proximity

Issue

  • After the update to 2023.4, I have lost access to the SkyConnect. It fails with ‘Error setting up entry SkyConnect v1.0 for zha’ - detailed log below:
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_eed082420541ed11b1d07ca7ccf2b06c-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 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 191, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 165, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 125, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 103, 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 120, 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 398, in connect
    protocol, connection_done = await thread.run_coroutine_threadsafe(
  File "/usr/local/lib/python3.10/site-packages/bellows/uart.py", line 377, in _connect
    transport, 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-Nabu_Casa_SkyConnect_v1.0_eed082420541ed11b1d07ca7ccf2b06c-if00-port0: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_eed082420541ed11b1d07ca7ccf2b06c-if00-port0'

Things I have tried:

  • Powering off the host NUC and rebooting everything
  • Changing the USB port used by SkyConnect to another one
  • Removed the USB filter in Virtualbox and adding it back in again. This shows that the host recognises the SkyConnect at the host level:

  • Can’t spot any Nabu_Casa devices when searching under All Hardware from the GUI in Home Assistant
  • I have the SSH & Web terminal installed. Struggled to putty into the box

I am more familar in the Home Assistant GUI over SSH, so apologies in advance if I struggle to get the info required in order to troubleshoot. Thanks for any help.

Hi,
Sometimes I get same error message after a HA restart too.
But after a restart of the VirtualBox the Skyconnect stick appears in HA again…

I’m using Win10, maybe my USB Skyconnect stick looks a bit different in VirtualBox.

But in HA this 'Cygnal Integrated Products…" appears as the Skyconnect stick

1 Like

Does this mean the SkyConnect comes with different bundled hardware as mine reads very different to this?

How has yours been? I’ve only got two basic Aq Motion sensors paired but it’s been too unstable for me to proceed. About once a week the integration fails to find the SkyConnect disk. Usually unplugging, resetting the usb filter on the VM and restarting HA will bring the integration back, but the devices are unavailable, even if left for a day. Removing them and adding them back brings them back. They are about 1 meter proximity to the SkyConnect.

Has not been a great experience and unless a future update resolves the issue, will have to consider a conbee or similar.

On my Win 10 box that has VirtualBox this is what I see in there as well. In Windows it shows as not fully recognized but it works in Home Assistant.

Thanks for the screenshots.

Hi Simon
Sorry this is an old thread but i hope you can help.
I am new to HA and made the same installation with virtual box on Windows 10 platform. With HA Sky Connect coordinator. And i have exactly the same problem.
I can register the coordinator in HA but after some time it fails to function.
I can recognize the FileNotFound error in the log you have provided.
Did you find a solution?