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.
nickrout
(Nick Rout)
July 1, 2023, 5:34am
2
There is no such thing as hass.io
MartijnMat:
via a Ubuntu system.
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.
francisp
(Francis)
July 1, 2023, 6:40am
4
Show your docker run command, or your docker compose file.
Tinkerer
(aka DubhAd on GitHub)
July 1, 2023, 7:32am
5
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
koying
(Chris B)
July 1, 2023, 10:09am
7
MartijnMat:
privileged: true
This is sufficient to have your usb ports available in the container.
I suspect having both privileged
and devices
is causing some race condition.