Site updated at 2017-06-17 20:00:42 UTC
This commit is contained in:
parent
35ab32b13f
commit
933563f0be
808 changed files with 11423 additions and 2163 deletions
|
@ -99,6 +99,10 @@
|
|||
<td><code class="highlighter-rouge">transition</code></td>
|
||||
<td>Duration (in seconds) for the light to fade to the new state.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">infrared</code></td>
|
||||
<td>Automatic infrared level (0..255) when light brightness is low (for compatible bulbs).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">power</code></td>
|
||||
<td>Turn the light on (<code class="highlighter-rouge">True</code>) or off (<code class="highlighter-rouge">False</code>). Leave out to keep the power as it is.</td>
|
||||
|
@ -119,7 +123,7 @@
|
|||
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
|
||||
<span class="s">data</span><span class="pi">:</span>
|
||||
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">light.office, light.kitchen</span>
|
||||
<span class="s">effect</span><span class="pi">:</span> <span class="s">lifx_effect_breathe</span>
|
||||
<span class="s">effect</span><span class="pi">:</span> <span class="s">lifx_effect_pulse</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>However, if you want to fully control a light effect, you have to use its dedicated service call, like this:</p>
|
||||
|
@ -137,48 +141,8 @@
|
|||
</code></pre>
|
||||
</div>
|
||||
<p>The available light effects and their options are listed below.</p>
|
||||
<h3><a class="title-link" name="service-lightlifx_effect_breathe" href="#service-lightlifx_effect_breathe"></a> Service <code class="highlighter-rouge">light.lifx_effect_breathe</code></h3>
|
||||
<p>Run a breathe effect by fading to a color and back.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service data attribute</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">entity_id</code></td>
|
||||
<td>String or list of strings that point at <code class="highlighter-rouge">entity_id</code>s of lights. Else targets all.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">color_name</code></td>
|
||||
<td>A color name such as <code class="highlighter-rouge">red</code> or <code class="highlighter-rouge">green</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">rgb_color</code></td>
|
||||
<td>A list containing three integers representing the RGB color you want the light to be.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">brightness</code></td>
|
||||
<td>Integer between 0 and 255 for how bright the color should be.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">period</code></td>
|
||||
<td>The duration of a single breathe.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">cycles</code></td>
|
||||
<td>The total number of breathes.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">power_on</code></td>
|
||||
<td>Set this to False to skip the effect on lights that are turned off (defaults to True).</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="title-link" name="service-lightlifx_effect_pulse" href="#service-lightlifx_effect_pulse"></a> Service <code class="highlighter-rouge">light.lifx_effect_pulse</code></h3>
|
||||
<p>Run a flash effect by quickly changing to a color and then back.</p>
|
||||
<p>Run a flash effect by changing to a color and then back.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -205,12 +169,16 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">period</code></td>
|
||||
<td>The duration of a single pulse.</td>
|
||||
<td>The duration of a single pulse (in seconds).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">cycles</code></td>
|
||||
<td>The total number of pulses.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">mode</code></td>
|
||||
<td>The way to change between colors. Valid modes: <code class="highlighter-rouge">blink</code> (default), <code class="highlighter-rouge">breathe</code>, <code class="highlighter-rouge">ping</code>, <code class="highlighter-rouge">strobe</code>, <code class="highlighter-rouge">solid</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code class="highlighter-rouge">power_on</code></td>
|
||||
<td>Set this to False to skip the effect on lights that are turned off (defaults to True).</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue