Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95397

Transfer USB devices with Supervised installation (Docker + Portainer)

$
0
0

@Olympique wrote:

Hi everybody!

I’m starting domotic with a Raspberry and Raspbian buster installed on it.
I installed HA as a Virtual Environment but finally decided to move to the supervised method - With homeassistant and hassio_supervisor dockers.
I replaced in the container the “/usr/share/hassio/homeassistant” folder by the old .homeassistant folder.
This allowed me to found my old configuration (account, Zwave devices, etc).

My problem is that the Z-Wave USB stick is not recognized.
When I go to Supervisor --> System --> Hardware I have the following serial devices :

* /dev/ttyAMA0
* /dev/serial/by-id/usb-0658_0200-if00
* /dev/ttyACM0

On my host system, I renamed my Zwave USB stick in the UDEV file “ttyUSB-ZWave+Stick-5G”.

My questions are :

  • Does the docker system change the devices name in the container compared to the host name ?
  • How can I tell the docker to “transmit” this USB device ?
    I saw that we can use a docker-compose file but I don’t know how.
    The container gets launched automatically and I didn’t achieve to use the code indicated in this page :
$ docker run --init -d --name="home-assistant" -v /PATH_TO_YOUR_CONFIG:/config \
   -e "TZ=Australia/Melbourne" --device /dev/ttyUSB0:/dev/ttyUSB0 \
   --net=host homeassistant/home-assistant:stable

I read some topics saying to use Portainer to manage dockers so I installed it and tried to change the launch commande by adding --device /dev/ttyUSB-ZWave+Stick-5G:/dev/ttyUSB-ZWave+Stick-5G but it didn’t worked :frowning:

Is there an easy way to do it ?
Also, for my information, should the ZWave USB stick be “transfered” to the Supervisor or the Homeassistant docker ?
Thanks in advance for your help!

Posts: 7

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>