Site updated at 2017-10-09 06:10:33 UTC

This commit is contained in:
Travis CI 2017-10-09 06:10:34 +00:00
parent 3363b569b6
commit 00fe2e34db
26 changed files with 65 additions and 65 deletions

View file

@ -127,7 +127,7 @@
</code></pre>
</div>
<h3><a class="title-link" name="wait" href="#wait"></a> Wait</h3>
<p>Wait until some things are complete. We support at the moment <code class="highlighter-rouge">wait_template</code> for waiting until a condition is <code class="highlighter-rouge">true</code>, see also on <a href="/docs/automation/trigger/#template-trigger">Template-Trigger</a>. The Timeout has same syntax as <code class="highlighter-rouge">delay</code>. If you set a Timeout for 1 minute and the condition is not satified within that minute, the script will continue.</p>
<p>Wait until some things are complete. We support at the moment <code class="highlighter-rouge">wait_template</code> for waiting until a condition is <code class="highlighter-rouge">true</code>, see also on <a href="/docs/automation/trigger/#template-trigger">Template-Trigger</a>. It is possible to set a timeout after which the script will abort its execution if the condition is not satisfied. Timeout has the same syntax as <code class="highlighter-rouge">delay</code>.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># wait until media player have stop the playing</span>
<span class="s">wait_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.media_player.floor.state</span><span class="nv"> </span><span class="s">==</span><span class="nv"> </span><span class="s">'stop'</span><span class="nv"> </span><span class="s">}}"</span>
</code></pre>