Site updated at 2017-11-07 09:06:59 UTC

This commit is contained in:
Travis CI 2017-11-07 09:07:00 +00:00
parent 004eb3ad52
commit 5a4fa9ccf4
30 changed files with 137 additions and 99 deletions

View file

@ -84,10 +84,15 @@
<span class="s">port</span><span class="pi">:</span> <span class="s">/dev/ttyACM0</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>port</strong> (<em>Required</em>): The port where your board is connected to your Home Assistant host. If you are using an original Arduino, the port will be named <code class="highlighter-rouge">ttyACM*</code> otherwise <code class="highlighter-rouge">ttyUSB*</code>.</li>
</ul>
<div class="config-vars">
<h3><a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables</h3>
<dl class="">
<dt><a class="title-link" name="port" href="#port"></a> port</dt>
<dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Required)</span><span class="description">The port where your board is connected to your Home Assistant host. If you are using an original Arduino, the port will be named <code class="highlighter-rouge">ttyACM*</code> otherwise <code class="highlighter-rouge">ttyUSB*</code>.</span></p>
</dd>
</dl>
</div>
<p>The exact number can be determined with the command shown below.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ls /dev/ttyACM<span class="k">*</span>
</code></pre>

View file

@ -197,13 +197,12 @@ Before version 0.55 this component was known as <code class="highlighter-rouge">
<span class="s">icon</span><span class="pi">:</span> <span class="s">mdi:target</span>
<span class="c1"># Automation. </span>
<span class="c1"># This automation script runs when a value is received via MQTT on retained topic: setTemperature</span>
<span class="c1"># It sets the value slider on the GUI. This slides also had its own automation when the value is changed.</span>
<span class="c1"># This automation script runs when a value is received via MQTT on retained topic: setTemperature</span>
<span class="c1"># It sets the value slider on the GUI. This slides also had its own automation when the value is changed.</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Set temp slider</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">mqtt</span>
<span class="s">topic</span><span class="pi">:</span> <span class="s2">"</span><span class="s">setTemperature"</span>
<span class="c1"># entity_id: input_number.target_temp</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">input_number.set_value</span>
<span class="s">data_template</span><span class="pi">:</span>

View file

@ -84,21 +84,34 @@
<span class="s">name</span><span class="pi">:</span> <span class="s">Door switch</span>
<span class="s">0</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Brightness</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>pins</strong> array (<em>Required</em>): Array of pins to use.
<ul>
<li><strong>[number]</strong> (<em>Required</em>): The pin number that corresponds with the pin numbering schema of your board.
<ul>
<li><strong>name</strong> (<em>Optional</em>): Name that will be used in the frontend for the pin.</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="config-vars">
<h3><a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables</h3>
<dl class="">
<dt><a class="title-link" name="pins" href="#pins"></a> pins</dt>
<dd>
<p class="desc"><span class="type">(<span class="map">map</span>)</span><span class="required">(Required)</span><span class="description">List of pins to use.</span></p>
</dd>
<dd>
<dl class="nested">
<dt><a class="title-link" name="pin_number" href="#pin_number"></a> pin_number</dt>
<dd>
<p class="desc"><span class="type">(<span class="map">map</span>)</span><span class="required">(Required)</span><span class="description">The pin number that corresponds with the pin numbering schema of your board.</span></p>
</dd>
<dd>
<dl class="nested">
<dt><a class="title-link" name="name" href="#name"></a> name</dt>
<dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span></p>
<p class="default">Default value: Name that will be used in the frontend for the pin.</p>
</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</div>
<p>The 6 analog pins of an Arduino UNO are numbered from A0 to A5.</p>
</article>
</div>

View file

@ -91,7 +91,6 @@
<span class="pi">-</span> <span class="s">Enfield</span>
<span class="pi">-</span> <span class="s">Greenwich</span>
<span class="pi">-</span> <span class="s">Hackney</span>
<span class="pi">-</span> <span class="s">Hammersmith and Fulham</span>
<span class="pi">-</span> <span class="s">Haringey</span>
<span class="pi">-</span> <span class="s">Harrow</span>
<span class="pi">-</span> <span class="s">Havering</span>

View file

@ -88,20 +88,42 @@
<span class="s">negate</span><span class="pi">:</span> <span class="s">true</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>pins</strong> array (<em>Required</em>): List of pins to use.
<ul>
<li><strong>[number]</strong> (<em>Required</em>): The pin number that corresponds with the pin numbering schema of your board.
<ul>
<li><strong>name</strong> (<em>Required</em>): Name that will be used in the frontend for the pin.</li>
<li><strong>initial</strong> (<em>Optional</em>): The initial value for this port. Defaults to <code class="highlighter-rouge">False</code> .</li>
<li><strong>negate</strong> (<em>Optional</em>): If this pin should be inverted. Defaults to <code class="highlighter-rouge">False</code>.</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="config-vars">
<h3><a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables</h3>
<dl class="">
<dt><a class="title-link" name="pins" href="#pins"></a> pins</dt>
<dd>
<p class="desc"><span class="type">(<span class="map">map</span>)</span><span class="required">(Required)</span><span class="description">List of of pins to use.</span></p>
</dd>
<dd>
<dl class="nested">
<dt><a class="title-link" name="pin_number" href="#pin_number"></a> pin_number</dt>
<dd>
<p class="desc"><span class="type">(<span class="map">map</span>)</span><span class="required">(Required)</span><span class="description">The pin number that corresponds with the pin numbering schema of your board.</span></p>
</dd>
<dd>
<dl class="nested">
<dt><a class="title-link" name="name" href="#name"></a> name</dt>
<dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span></p>
<p class="default">Default value: Name that will be used in the frontend for the pin.</p>
</dd>
<dt><a class="title-link" name="initial" href="#initial"></a> initial</dt>
<dd>
<p class="desc"><span class="type">(<span class="boolean">boolean</span>)</span><span class="required">(Optional)</span></p>
<p class="default">Default value: false</p>
</dd>
<dt><a class="title-link" name="negate" href="#negate"></a> negate</dt>
<dd>
<p class="desc"><span class="type">(<span class="boolean">boolean</span>)</span><span class="required">(Optional)</span></p>
<p class="default">Default value: false</p>
</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</div>
<p>The digital pins are numbered from 0 to 13 on a Arduino UNO. The available pins are 2 till 13. For testing purposes you can use pin 13 because with that pin you can control the internal LED.</p>
</article>
</div>