Get Z-Wave sensors to work with Home Assistant

This commit is contained in:
Paulus Schoutsen
2015-02-22 17:36:28 -08:00
parent 85f7f5589d
commit e7b9b86c64
8 changed files with 313 additions and 42 deletions

View File

@@ -7,19 +7,6 @@ RUN apt-get update && \
apt-get install -y cython3 libudev-dev python-sphinx python3-setuptools mercurial && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
pip3 install cython && \
cd .. && \
git clone https://github.com/Artanis/louie.git && \
cd louie && \
python setup.py install && \
cd .. && \
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 && \
./compile.sh && \
./install.sh
# L18 sed is to apply a patch to make openzwave compile
# L19 2to3 to have the api code work in Python 3
scripts/build_python_openzwave
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]