SkyConnect with Home Assistant Core (Docker). Failed to probe the usb device

Getting the error “Failed to probe the usb device” when trying to setup my new SkyConnect USB.

Any ideas? I can’t seem to see anything useful in the logs…but maybe I’m missing something. I’ve tried with and without the USB Extension and I’m exposing /dev/ttyUSB0 to docker.

ZHA integration documentation has a section on “CAN’T CONNECT TO USB DEVICE AND USING DOCKER

https://www.home-assistant.io/integrations/zha#cant-connect-to-usb-device-and-using-docker

also see related section on “ZHA START UP ISSUE WITH HOME ASSISTANT OR HOME ASSISTANT CONTAINER

https://www.home-assistant.io/integrations/zha#zha-start-up-issue-with-home-assistant-or-home-assistant-container

Believe that you might as well need to fix Docker rootless permission in ‘dialout’ group for serial port access on the host

https://www.google.com/search?q=docker+dialout+serial

Thanks!

It seems like I was stupidly using an old version of Home Assistant…(I think…I’m using CasaOS).

Now maybe it’s related ot the dialout group permission:

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted: '/dev/ttyUSB0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request

I just need to figure out what user CasaOS is using and how to add the permission.

edit: hmmm it seems to have the correct groups…but I must be missing something. Seems like my docker image is run with root by casaos.

I’m an idiot. Sussed it. I had the usb device mapped on the volume instead of the devices key in docker :man_facepalming:

Apologies