Working zwave!

Open docker, go to /usr/src/balloob-python-openzwave/examples, run
python3 api_demo.py --device=/zwaveusbstick --log=Debug
This commit is contained in:
Paulus Schoutsen 2015-02-21 23:21:44 -08:00
parent bb5e8e00dd
commit 9c61c281ca
2 changed files with 3 additions and 4 deletions

View file

@ -12,11 +12,10 @@ RUN apt-get update && \
cd louie && \
python setup.py install && \
cd .. && \
hg clone https://code.google.com/p/python-openzwave/ && \
cd python-openzwave && \
hg clone https://code.google.com/r/balloob-python-openzwave/ && \
cd balloob-python-openzwave && \
./update.sh && \
sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h && \
2to3 --no-diffs -w -n api examples && \
./compile.sh && \
./install.sh

View file

@ -14,8 +14,8 @@ if [ $# -gt 0 ]
then
docker run \
--net=host \
--device=/dev/ttyUSB0:/zwaveusbstick:rwm \
-e "TZ=$1" \
--device=/dev/bus/usb/002:/usbstick:rwm \
-v `pwd`:/usr/src/app \
-v `pwd`/config:/config \
-t -i home-assistant-dev \