Exposing USB Device (Z-stick) to Home-Assistant | PlexGuide.com

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

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

craigenator

Citizen
Original poster
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

Experienced+
Mar 5, 2019
105
37
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

Citizen
Original poster
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.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending