Site updated at 2017-05-20 22:59:15 UTC
This commit is contained in:
parent
024eeb853f
commit
ebffa845cd
709 changed files with 10815 additions and 1472 deletions
|
@ -181,6 +181,7 @@ Upon first run, the <code class="highlighter-rouge">zwave</code> component will
|
|||
<a href='/docs/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/docs/automation/examples/'>Examples </a></li>
|
||||
<li><a href='/docs/automation/editor/'>Editor </a></li>
|
||||
<li><a href='/docs/automation/trigger/'>Triggers </a></li>
|
||||
<li><a href='/docs/automation/condition/'>Conditions </a></li>
|
||||
<li><a href='/docs/automation/action/'>Actions </a></li>
|
||||
|
|
|
@ -222,6 +222,7 @@ Make sure you copy the newly saved <code class="highlighter-rouge">zwcfg_[home_i
|
|||
<a href='/docs/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/docs/automation/examples/'>Examples </a></li>
|
||||
<li><a href='/docs/automation/editor/'>Editor </a></li>
|
||||
<li><a href='/docs/automation/trigger/'>Triggers </a></li>
|
||||
<li><a href='/docs/automation/condition/'>Conditions </a></li>
|
||||
<li><a href='/docs/automation/action/'>Actions </a></li>
|
||||
|
|
|
@ -69,39 +69,10 @@
|
|||
<hr class="divider">
|
||||
<p><a href="http://www.z-wave.com/">Z-Wave</a> integration for Home Assistant allows you to observe and control connected Z-Wave devices. Z-Wave support requires a <a href="https://github.com/OpenZWave/open-zwave/wiki/Controller-Compatibility-List">supported Z-Wave USB stick or module</a> to be plugged into the host.</p>
|
||||
<p>There is currently support for climate, covers, lights, locks, sensors, switches and thermostats. All will be picked up automatically after configuring this platform.</p>
|
||||
<h3><a class="title-link" name="installation-in-virtualenv-python-openzwave" href="#installation-in-virtualenv-python-openzwave"></a> Installation in Virtualenv (python-OpenZWave)</h3>
|
||||
<p>If you installed Home Assistant using a virtual environment then please read the instructions on <a href="https://home-assistant.io/docs/installation/virtualenv/#installing-python-openzwave-in-a-virtualenv">Installing python-OpenZWave in a virtualenv</a>.</p>
|
||||
<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 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 and the All In One installer have support for Z-Wave already built-in!)</em></p>
|
||||
<p>Make sure you have the correct dependencies installed before running the script:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install cython3 libudev-dev python3-sphinx python3-setuptools git
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Make sure you have at least version 0.23 and at the most 0.24.1 of cython.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo pip3 install --upgrade <span class="nv">cython</span><span class="o">==</span>0.24.1
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Then get the OpenZWave files:</p>
|
||||
<p class="note warning">Do not use root to build python-openzwave as it will surely fail.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>git clone https://github.com/OpenZWave/python-openzwave.git
|
||||
<span class="gp">$ </span><span class="nb">cd </span>python-openzwave
|
||||
<span class="gp">$ </span><span class="nv">PYTHON_EXEC</span><span class="o">=</span><span class="k">$(</span>which python3<span class="k">)</span> make build
|
||||
<span class="gp">$ </span>sudo <span class="nv">PYTHON_EXEC</span><span class="o">=</span><span class="k">$(</span>which python3<span class="k">)</span> make install
|
||||
</code></pre>
|
||||
</div>
|
||||
<p class="note">
|
||||
Instead of <code class="highlighter-rouge">make install</code>, you can alternatively build your own python-openzwave package which can be easily uninstalled:
|
||||
</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install -y checkinstall
|
||||
<span class="gp">$ </span>sudo <span class="nv">PYTHON_EXEC</span><span class="o">=</span><span class="k">$(</span>which python3<span class="k">)</span> checkinstall --pkgname python-openzwave --pkgversion 1.0 --provides python-openzwave
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>With this installation, your <code class="highlighter-rouge">config_path</code> needed below will resemble:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>/usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.0b8-py3.4-linux-x86_64.egg/config
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>If you followed along with setting up a virtual environment, your path will be:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>/srv/homeassistant/src/python-openzwave/openzwave/config
|
||||
<p>As of version 0.45, Home Assistant automatically installs python-openzwave from PyPI as needed.</p>
|
||||
<p>There is one dependency you will need to have installed ahead of time:</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libudev-dev
|
||||
</code></pre>
|
||||
</div>
|
||||
<h3><a class="title-link" name="configuration" href="#configuration"></a> Configuration</h3>
|
||||
|
@ -113,7 +84,7 @@ Instead of <code class="highlighter-rouge">make install</code>, you can alternat
|
|||
<p>Configuration variables:</p>
|
||||
<ul>
|
||||
<li><strong>usb_path</strong> (<em>Optional</em>): The port where your device is connected to your Home Assistant host.</li>
|
||||
<li><strong>config_path</strong> (<em>Optional</em>): The path to the Python OpenZWave configuration files. Defaults to the folder <code class="highlighter-rouge">config</code> in your Python OpenZWave install directory.</li>
|
||||
<li><strong>config_path</strong> (<em>Optional</em>): The path to the Python OpenZWave configuration files. Defaults to the ‘config’ that is installed by python-openzwave</li>
|
||||
<li><strong>autoheal</strong> (<em>Optional</em>): Allows disabling auto Z-Wave heal at midnight. Defaults to True.</li>
|
||||
<li><strong>polling_interval</strong> (<em>Optional</em>): The time period in milliseconds between polls of a nodes value. Be careful about using polling values below 30000 (30 seconds) as polling can flood the zwave network and cause problems.</li>
|
||||
<li><strong>device_config</strong> (<em>Optional</em>): This attribute contains node-specific override values. (For releases prior to 0.39 this variable is called <strong>customize</strong>) See <a href="https://home-assistant.io/getting-started/customizing-devices/">Customizing devices and services</a> for format:
|
||||
|
@ -147,7 +118,7 @@ Instead of <code class="highlighter-rouge">make install</code>, you can alternat
|
|||
</code></pre>
|
||||
</div>
|
||||
<p class="note">
|
||||
Depending on what’s plugged into your USB ports, the name found above may change. You can lock in a name, such as <code class="highlighter-rouge">/dev/zwave</code>, by following <a href="http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/">these instructions</a>.
|
||||
Depending on what’s plugged into your USB ports, the name found above may change. You can lock in a name, such as <code class="highlighter-rouge">/dev/zwave</code>, by following <a href="http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/">these instructions</a>.
|
||||
</p>
|
||||
<h3><a class="title-link" name="adding-devices" href="#adding-devices"></a> Adding Devices</h3>
|
||||
<p>To add a Z-Wave device to your system, go to the Services menu and select the <code class="highlighter-rouge">zwave</code> domain, and select the <code class="highlighter-rouge">add-node</code> service. Then find your device’s add button and press that as well.</p>
|
||||
|
@ -389,6 +360,7 @@ Depending on what’s plugged into your USB ports, the name found above may chan
|
|||
<a href='/docs/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/docs/automation/examples/'>Examples </a></li>
|
||||
<li><a href='/docs/automation/editor/'>Editor </a></li>
|
||||
<li><a href='/docs/automation/trigger/'>Triggers </a></li>
|
||||
<li><a href='/docs/automation/condition/'>Conditions </a></li>
|
||||
<li><a href='/docs/automation/action/'>Actions </a></li>
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
<a href='/docs/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/docs/automation/examples/'>Examples </a></li>
|
||||
<li><a href='/docs/automation/editor/'>Editor </a></li>
|
||||
<li><a href='/docs/automation/trigger/'>Triggers </a></li>
|
||||
<li><a href='/docs/automation/condition/'>Conditions </a></li>
|
||||
<li><a href='/docs/automation/action/'>Actions </a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue