Site updated at 2017-09-30 18:52:14 UTC
This commit is contained in:
parent
0e8242164e
commit
f098e23952
26 changed files with 67 additions and 66 deletions
|
@ -74,7 +74,7 @@
|
|||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
<p>The script component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services.</p>
|
||||
<p>The <code class="highlighter-rouge">script</code> component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services.</p>
|
||||
<p>The sequence of actions is specified using the <a href="/getting-started/scripts/">Home Assistant Script Syntax</a>.</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">script</span><span class="pi">:</span>
|
||||
|
@ -90,7 +90,8 @@
|
|||
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>
|
||||
<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>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">script: </span>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue