Site updated at 2017-11-17 05:32:59 UTC
This commit is contained in:
parent
bde2b50b5d
commit
9631c8587a
26 changed files with 70 additions and 66 deletions
|
@ -76,8 +76,8 @@
|
|||
<hr class="divider">
|
||||
<p>The <code class="highlighter-rouge">flux</code> switch platform will change the temperature of your lights similar to the way flux works on your computer, using circadian rhythm. They will be bright during the day, and gradually fade to a red/orange at night.</p>
|
||||
<p>The component will update your lights based on the time of day. It will only affect lights that are turned on and listed in the flux configuration.</p>
|
||||
<p>During the day (in between <code class="highlighter-rouge">start time</code> and <code class="highlighter-rouge">sunset time</code>), it will fade the lights from the <code class="highlighter-rouge">start_colortemp</code> to the <code class="highlighter-rouge">sunset_colortemp</code>. After sunset (between <code class="highlighter-rouge">sunset_time</code> and <code class="highlighter-rouge">stop_time</code>), the lights will fade from the <code class="highlighter-rouge">sunset_colortemp</code> to the <code class="highlighter-rouge">stop_colortemp</code>. If the lights are still on after the <code class="highlighter-rouge">stop_time</code> it will continue to change the light to the <code class="highlighter-rouge">stop_colortemp</code> until the light is turned off. The fade effect is created by updating the lights every 30 seconds with a 30 second transition time.</p>
|
||||
<p>If you don’t wish to have flux update on 30 second intervals, you can leave the switch turned off and use automation rules that call the service <code class="highlighter-rouge">switch.<name>_update</code> whenever you want the lights updated, where <code class="highlighter-rouge"><name></code> equals the <code class="highlighter-rouge">name:</code> property in the switch configuration.</p>
|
||||
<p>During the day (in between <code class="highlighter-rouge">start time</code> and <code class="highlighter-rouge">sunset time</code>), it will fade the lights from the <code class="highlighter-rouge">start_colortemp</code> to the <code class="highlighter-rouge">sunset_colortemp</code>. After sunset (between <code class="highlighter-rouge">sunset_time</code> and <code class="highlighter-rouge">stop_time</code>), the lights will fade from the <code class="highlighter-rouge">sunset_colortemp</code> to the <code class="highlighter-rouge">stop_colortemp</code>. If the lights are still on after the <code class="highlighter-rouge">stop_time</code> it will continue to change the light to the <code class="highlighter-rouge">stop_colortemp</code> until the light is turned off. The fade effect is created by updating the lights every periodically.</p>
|
||||
<p>If you want to update at variable intervals, you can leave the switch turned off and use automation rules that call the service <code class="highlighter-rouge">switch.<name>_update</code> whenever you want the lights updated, where <code class="highlighter-rouge"><name></code> equals the <code class="highlighter-rouge">name:</code> property in the switch configuration.</p>
|
||||
<p>To use the Flux switch in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">switch</span><span class="pi">:</span>
|
||||
|
@ -99,6 +99,8 @@
|
|||
<li><strong>brightness</strong> (<em>Optional</em>): The brightness of the lights. Calculated with <code class="highlighter-rouge">RGB_to_xy</code> by default.</li>
|
||||
<li><strong>disable_brightness_adjust</strong> (<em>Optional</em>): If true, brightness will not be adjusted besides color temperature. Defaults to False.</li>
|
||||
<li><strong>mode</strong> (<em>Optional</em>): Select how color temperature is passed to lights. Valid values are <code class="highlighter-rouge">xy</code>, <code class="highlighter-rouge">mired</code> and <code class="highlighter-rouge">rgb</code>. Defaults to <code class="highlighter-rouge">xy</code>.</li>
|
||||
<li><strong>transition</strong> (<em>Optional</em>): Transition time for the light changes (high values may not be supported by all light models). Defaults to 30.</li>
|
||||
<li><strong>interval</strong> (<em>Optional</em>): Frequency at which the lights should be updated. Defaults to 30.</li>
|
||||
</ul>
|
||||
<p>Full example:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
|
@ -116,6 +118,8 @@
|
|||
<span class="s">brightness</span><span class="pi">:</span> <span class="s">200</span>
|
||||
<span class="s">disable_brightness_adjust</span><span class="pi">:</span> <span class="s">True</span>
|
||||
<span class="s">mode</span><span class="pi">:</span> <span class="s">xy</span>
|
||||
<span class="s">transition</span><span class="pi">:</span> <span class="s">30</span>
|
||||
<span class="s">interval</span><span class="pi">:</span> <span class="s">60</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue