Exposing USB Device (Z-stick) to Home-Assistant

craigenator

Junior Member
Original poster
Local time
6:13 AM
Oct 15, 2018
3
0
Hello All,
Pretty new to the community so hoping someone can help me out with this. I've installed home-assistant via the PGBlitz community apps however I'm now looking to expose a USB Z-wave controller (in this case an Aeon Labs z-stick) to the container that is running home assistant however I'm not entirely sure how this container was instantiated in the first place I guess is my dilemma. If I was running just docker I'd use docker-compose and do something like this with a yaml file:

version: '2'
services:
home-assistant:
ports:
- "8123:8123/tcp"
network_mode: "host"
devices:
- /dev/ttyACM0
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/raid/hass/:/config:Z
image: homeassistant/home-assistant
restart: always

or alternatively something basic like mounting the device using a docker run:
docker run -t -i --device=/dev/ttyUSB0 ubuntu home-assistant
or using a container in a privileged mode to expose the usb device
docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb ubuntu home-assistant


I guess my real question is where / how does a community app (in this case home-assistant) get its container spin up command/parameters from? Is there a file I can just edit such that I can expose the USB device?
 

Cthe1

Respected Member
Local time
2:13 PM
Mar 5, 2019
72
30
Denmark
You can fork the Apps-Community on github and deploy with your fork from the PG Menu 5 > 2 > 2.

Or you can clone the yml file to your /opt/mycontainers folder and edit it there. (use a other name than home-assistant.yml)
Then you can deploy it like normal from the PG menu > 5 > 2 > 1

 

craigenator

Junior Member
Original poster
Local time
6:13 AM
Oct 15, 2018
3
0
So question for you then.

What's the difference between the yaml files in the

/opt/communityapps/apps

vs the

/opt/plexguide/containers

locations?? They look very similar.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Thread starter Similar threads Forum Replies Date
S General Discussion 5
sconnery PG Clone & RClone 19

Similar threads


Staff online

Maintenance Donations

Recommend NewsGroups

      Up To a 58% Discount!

Trending