Site updated at 2018-02-10 22:34:55 UTC

This commit is contained in:
Travis CI 2018-02-10 22:34:56 +00:00
parent cf68d885fb
commit b6201b0104
770 changed files with 11042 additions and 2350 deletions

View file

@ -74,7 +74,7 @@
</h1>
</header>
<hr class="divider">
<p>You can create scenes that capture the states you want certain entities to be. For example a scene can specify that light A should be turned on and light B should be bright red.</p>
<p>You can create scenes that capture the states you want certain entities to be. For example, a scene can specify that light A should be turned on and light B should be bright red.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">scene</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">Romantic</span>
@ -99,6 +99,12 @@
<li><strong>name</strong> (<em>Required</em>): Friendly name of scene.</li>
<li><strong>entities</strong> (<em>Required</em>): Entities to control.</li>
</ul>
<p>As you can see, there are two ways to define the states of each <code class="highlighter-rouge">entity_id</code>:</p>
<ul>
<li>Define the <code class="highlighter-rouge">state</code> directly with the entity.</li>
<li>Define a complex state with its attributes.</li>
</ul>
<p>The mapping from states to services is done with the <a href="https://github.com/home-assistant/home-assistant/blob/master/homeassistant/helpers/state.py#L74">state helper</a>. So, please have a look there for available states for your scenes.</p>
<p>Scenes can be activated using the service <code class="highlighter-rouge">scene.turn_on</code> (there is no scene.turn_off service).</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example automation</span>
<span class="nn">...</span>
@ -114,7 +120,7 @@
</code></pre>
</div>
<p class="note">
Please note that the scene component currently only supports one service call per entity to achieve the state. Due to this limitation you cannot set states belonging to different services.
Please note that the scene component currently only supports one service call per entity to achieve the state. Due to this limitation, you cannot set states belonging to different services. A workaround for this limitation is to write a script, which you then turn on in your scene.
</p>
</article>
</div>
@ -127,6 +133,9 @@ Please note that the scene component currently only supports one service call pe
</div>
<h1 class='title delta'>Platforms</h1>
<ul class='divided'>
<li><a href='/components/scene.knx/'>
KNX Scene
</a></li>
<li><a href='/components/scene.lifx_cloud/'>
LIFX Cloud Scenes
</a></li>