Site updated at 2017-08-26 06:14:00 UTC

This commit is contained in:
Travis CI 2017-08-26 06:14:00 +00:00
parent 0408a5478d
commit bf5e0c0bc2
733 changed files with 8077 additions and 1976 deletions

View file

@ -174,6 +174,16 @@
<span class="s">unit_of_measurement</span><span class="pi">:</span> <span class="s2">"</span><span class="s">°C"</span>
</code></pre>
</div>
<h3><a class="title-link" name="usage-of-templating-in-command" href="#usage-of-templating-in-command"></a> Usage of templating in <code class="highlighter-rouge">command:</code></h3>
<p><a href="/docs/configuration/templating/">Templates</a> are supported in the <code class="highlighter-rouge">command:</code> configuration variable. This could be used if you want to include the state of a specific sensor as an argument to your external script.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">command_line</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">wind direction</span>
<span class="s">command</span><span class="pi">:</span> <span class="s1">'</span><span class="s">sh</span><span class="nv"> </span><span class="s">/home/pi/.homeassistant/scripts/wind_direction.sh</span><span class="nv"> </span><span class="s">'</span>
<span class="s">unit_of_measurement</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Direction"</span>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
@ -464,6 +474,9 @@
<li>
<a href='/components/sensor.verisure/'>Verisure Sensor</a>
</li>
<li>
<a href='/components/sensor.version/'>Version Sensor</a>
</li>
<li>
<a href='/components/sensor.wink/'>Wink Sensor</a>
</li>