Site updated at 2016-08-22 08:21:42 UTC

This commit is contained in:
Travis CI 2016-08-22 08:21:43 +00:00
parent f9d65cbe57
commit 4acb07bf8e
559 changed files with 18878 additions and 21688 deletions

View file

@ -89,29 +89,27 @@
<hr class="divider">
<p>A ZigBee switch in this context is a device connected to one of the digital output pins on a ZigBee module. It can simply be switched on and off. By default, a switch is considered on when the ZigBee devices digital output is held high and considered off when it is held low. This behaviour can be inverted by setting the <code>on_state</code> configuration variable to <code>low</code>.</p>
<p>A ZigBee switch in this context is a device connected to one of the digital output pins on a ZigBee module. It can simply be switched on and off. By default, a switch is considered on when the ZigBee devices digital output is held high and considered off when it is held low. This behaviour can be inverted by setting the <code class="highlighter-rouge">on_state</code> configuration variable to <code class="highlighter-rouge">low</code>.</p>
<p>To configure a digital output pin as a switch, use the following variables:</p>
<ul>
<li><strong>name</strong> (<em>Required</em>): The name youd like to give the switch in Home Assistant.</li>
<li><strong>platform</strong> (<em>Required</em>): Set to <code>zigbee</code>.</li>
<li><strong>platform</strong> (<em>Required</em>): Set to <code class="highlighter-rouge">zigbee</code>.</li>
<li><strong>pin</strong> (<em>Required</em>): The number identifying which pin to use.</li>
<li><strong>address</strong>: The long 64bit address of the remote ZigBee device whose digital output pin youd like to switch. Do not include this variable if you want to switch the local ZigBee devices pins.</li>
<li><strong>on_state</strong>: Either <code>high</code> (default) or <code>low</code>, depicting whether the digital output pin is pulled high or low when the switch is turned on.</li>
<li><strong>on_state</strong>: Either <code class="highlighter-rouge">high</code> (default) or <code class="highlighter-rouge">low</code>, depicting whether the digital output pin is pulled high or low when the switch is turned on.</li>
</ul>
<h4>Example</h4>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">switch</span>:
- <span class="string"><span class="content">name: Pond Fountain</span></span>
<span class="key">platform</span>: <span class="string"><span class="content">zigbee</span></span>
<span class="key">pin</span>: <span class="string"><span class="content">0</span></span>
<span class="key">address</span>: <span class="string"><span class="content">0013A20040791FA2</span></span>
<span class="key">on_state</span>: <span class="string"><span class="content">low</span></span>
</pre></div>
</div>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">switch</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">Pond Fountain</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">zigbee</span>
<span class="s">pin</span><span class="pi">:</span> <span class="s">0</span>
<span class="s">address</span><span class="pi">:</span> <span class="s">0013A20040791FA2</span>
<span class="s">on_state</span><span class="pi">:</span> <span class="s">low</span>
</code></pre>
</div>