Site updated at 2017-02-05 07:33:52 UTC

This commit is contained in:
Travis CI 2017-02-05 07:33:52 +00:00
parent e6bb294b76
commit 2c8621e991
24 changed files with 45 additions and 54 deletions

View file

@ -101,9 +101,15 @@
<span class="c1"># This is Home Assistant Script Syntax</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">notify.notify</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">message</span><span class="pi">:</span> <span class="s">Current temperature is {{ states.sensor.temperature.state }}</span>
<span class="err"> </span><span class="s">         message</span><span class="pi">:</span> <span class="s">Current temperature is {{ states.sensor.temperature.state }}</span>
</code></pre>
</div>
<p class="note">
Script names (e.g. <code class="highlighter-rouge">message_temperature</code> in the example above) are not allowed to contain dash (minus) characters, i.e. <code class="highlighter-rouge">-</code>.
The preferred way to separate words for better readability is to use underscore (<code class="highlighter-rouge">_</code>) characters.
</p>
<span class="c1"># Turns on the bedroom lights and then the living room lights 1 minute later</span>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code> <span class="s"> # Turns on the bedroom lights and then the living room lights 1 minute later</span>
<span class="s">wakeup</span><span class="pi">:</span>
<span class="s">alias</span><span class="pi">:</span> <span class="s">Wake Up</span>
<span class="s">sequence</span><span class="pi">:</span>