Site updated at 2016-03-12 19:38:21 UTC
This commit is contained in:
parent
f1e3204aa7
commit
9690c7de8e
106 changed files with 2221 additions and 1195 deletions
|
@ -119,13 +119,38 @@
|
|||
|
||||
<h3><a class="title-link" name="installation" href="#installation"></a> Installation</h3>
|
||||
|
||||
<p>To allow Home Assistant to talk to your Z-Wave USB stick you will have to compile Python Open Z-Wave. This can be done using <a href="https://github.com/balloob/home-assistant/blob/dev/script/build_python_openzwave">this script</a>. <em>(The Home Assistant docker image has support for Z-Wave built-in)</em></p>
|
||||
<p>To allow Home Assistant to talk to your Z-Wave USB stick you will have to compile the OpenZWave library and install the related <a href="https://github.com/OpenZWave/python-openzwave">python-OpenZWave package</a>. This can be done as follows. <em>(Note: The Home Assistant docker image has support for Z-Wave built-in)</em></p>
|
||||
|
||||
<p>Make sure you have the correct dependencies installed before running the script:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ apt-get install cython3 libudev-dev python-sphinx python3-setuptools
|
||||
$ pip3 install "cython<0.23"
|
||||
<div class="code"><pre>$ apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Then get the OpenZWave files and switch to the <code>python3</code> branch:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ git clone https://github.com/OpenZWave/python-openzwave.git
|
||||
$ cd python-openzwave
|
||||
$ git checkout python3
|
||||
$ PYTHON_EXEC=`which python3` make build
|
||||
$ sudo PYTHON_EXEC=`which python3` make install
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="note">
|
||||
Instead of <code>make install</code>, you can alternatively build your own python-openzwave package which can be easily uninstalled:
|
||||
|
||||
<code>$ sudo PYTHON_EXEC=</code>which python3<code> checkinstall --pkgname python-openzwave --pkgversion 1.0 --provides python-openzwave</code>
|
||||
|
||||
</p>
|
||||
|
||||
<p>With this installation, your <code>config_path</code> needed below will resemble:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>/usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.0b8-py3.4-linux-x86_64.egg/config
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -166,6 +191,18 @@ $ pip3 install "cython<0.23"
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p>Or, on some other systems (such as Raspberry Pi), use:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ ls /dev/ttyACM*
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="note">
|
||||
Depending on what’s plugged into your USB ports, the name found above may change. You an lock in a name, such as <code>/dev/zwave</code>, by following <a href="http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/">these instructions</a>.
|
||||
</p>
|
||||
|
||||
<h4><a class="title-link" name="events" href="#events"></a> Events</h4>
|
||||
|
||||
<p>Some devices can also trigger scene activation events, which can be used in automation scripts (for example the press of a button on a wall switch):</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue