Site updated at 2018-01-27 05:27:50 UTC

This commit is contained in:
Travis CI 2018-01-27 05:27:50 +00:00
parent 0e5bccf933
commit d499361ff7
853 changed files with 12458 additions and 2552 deletions

View file

@ -161,6 +161,14 @@
<span class="s">domain</span><span class="pi">:</span> <span class="s">light</span>
</code></pre>
</div>
<p>You can also use event_data_template to fire an event with custom data. This could be used to pass data to another script awaiting
an event trigger.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">event</span><span class="pi">:</span> <span class="s">MY_EVENT</span>
<span class="s">event_data_template</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">myEvent</span>
<span class="s">customData</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">myCustomVariable</span><span class="nv"> </span><span class="s">}}"</span>
</code></pre>
</div>
<h3><a class="title-link" name="raise-and-consume-custom-events" href="#raise-and-consume-custom-events"></a> Raise and Consume Custom Events</h3>
<p>The following automation shows how to raise a custom event called <code class="highlighter-rouge">event_light_turned_on</code> with <code class="highlighter-rouge">entity_id</code> as the event data. The action part could be inside a script or an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Fire Event</span>

View file

@ -75,18 +75,22 @@
</h1>
</header>
<hr class="divider">
<p>On Linux platforms (other than Hass.io) there is one dependency you will need to have installed ahead of time (included in <code class="highlighter-rouge">systemd-devel</code> on Fedora/RHEL systems):</p>
<p>The first time you enable the Z-Wave component it will install the Z-Wave drivers (python-openzwave). This can take up to half an hour on slow machines like Raspberry Pi.</p>
<p>Installing the drivers might require some extra packages to be installed. Check your platform below.</p>
<h2><a class="title-link" name="platform-specific-installation-instructions" href="#platform-specific-installation-instructions"></a> Platform specific installation instructions</h2>
<h3><a class="title-link" name="linux-except-hassio" href="#linux-except-hassio"></a> Linux (except Hass.io)</h3>
<p>On Linux platforms (other than Hass.io) there is one dependency you will need to have installed ahead of time (included in <code class="highlighter-rouge">systemd-devel</code> on Fedora/RHEL systems):</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libudev-dev
</code></pre>
</div>
<p>On Python 3.6 you may also have to install libpython3.6-dev, and possibly python3.6-dev.</p>
<h3><a class="title-link" name="macos" href="#macos"></a> macOS</h3>
<p>When installing on macOS you may have to also run the command below ahead of time, replace “x.x” with the version of Python (<code class="highlighter-rouge">$ python3 --version</code>) you have installed.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo /Applications/Python<span class="se">\ </span>x.x/Install<span class="se">\ </span>Certificates.command
</code></pre>
</div>
<p class="note">
The installation of python-openzwave happens when you first enable the Z-Wave component, and can take half an hour or more on a Raspberry Pi.
</p>
<h3><a class="title-link" name="raspberry-pi" href="#raspberry-pi"></a> Raspberry Pi</h3>
<p>On Raspberry Pi you will need to enable the serial interface in the <code class="highlighter-rouge">raspbi-config</code> tool before you can add Z-Wave to Home Assistant.</p>
<h2><a class="title-link" name="configuration" href="#configuration"></a> Configuration</h2>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">zwave</span><span class="pi">:</span>