USB devices listed but can't connect

Hi there,

I’m having issues integrating USB devices. The devices are listed, but in the last step of the integration process I get an error message ‘cannot_connect’. I already tried to add the --device command in the configuration.yaml, but this isn’t working neither.

For instance when I want to add my Sonoff ZBDongle-P, I get this error in the final step of the integration.

Does anyone has some thoughts about how to fix it?

I’m running HASS.IO on docker via a Ubuntu system.

There is no such thing as hass.io

Nor is supervised supported on Ubuntu

So we are none the wiser.

Docker is running on a Ubuntu system with a hass.io container running.

Show your docker run command, or your docker compose file.

It’s a Home Assistant container.

Hass.io is the (very very) old name for another install method, and it hasn’t been called that in years.

1 Like

I’m using this compose file:

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - ./HASS:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
    
    devices:
       - /dev/ttyUSB0:/dev/ttyUSB0
       - /dev/ttyUSB1:/dev/ttyUSB1

This is sufficient to have your usb ports available in the container.
I suspect having both privileged and devices is causing some race condition.