Site updated at 2017-11-12 14:00:53 UTC

This commit is contained in:
Travis CI 2017-11-12 14:00:53 +00:00
parent b0c4bebd4c
commit 6e1f14f447
28 changed files with 73 additions and 66 deletions

View file

@ -110,6 +110,7 @@
</div>
<h2><a class="title-link" name="migrating-your-automations-to-automationsyaml" href="#migrating-your-automations-to-automationsyaml"></a> Migrating your automations to <code class="highlighter-rouge">automations.yaml</code></h2>
<p>If you want to migrate your old automations to use the editor, youll have to copy them to <code class="highlighter-rouge">automations.yaml</code>. Make sure that <code class="highlighter-rouge">automations.yaml</code> remains a list! For each automation that you copy over youll have to add an <code class="highlighter-rouge">id</code>. This can be any string as long as its unique.</p>
<p>For example, the below automation will be triggered when the sun goes from below the horizon to above the horizon. Then, if the temperature is between 17 and 25 degrees, a light will be turned on.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example automations.yaml entry</span>
<span class="pi">-</span> <span class="s">id</span><span class="pi">:</span> <span class="s">my_unique_id</span> <span class="c1"># &lt;-- Required for editor to work.</span>
<span class="s">alias</span><span class="pi">:</span> <span class="s">Hello world</span>