Get Z-Wave sensors to work with Home Assistant
This commit is contained in:
18
scripts/dev_openzwave_docker
Executable file
18
scripts/dev_openzwave_docker
Executable file
@@ -0,0 +1,18 @@
|
||||
# Open a docker that can be used to debug/dev python-openzwave
|
||||
# Pass in a command line argument to skip build
|
||||
|
||||
# If current pwd is scripts, go 1 up.
|
||||
if [ ${PWD##*/} == "scripts" ]; then
|
||||
cd ..
|
||||
fi
|
||||
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
docker build -t home-assistant-dev .
|
||||
fi
|
||||
|
||||
docker run \
|
||||
--device=/dev/ttyUSB0:/zwaveusbstick:rwm \
|
||||
-v `pwd`:/usr/src/app \
|
||||
-t -i home-assistant-dev \
|
||||
/bin/bash
|
||||
Reference in New Issue
Block a user