Site updated at 2016-08-22 08:21:42 UTC

This commit is contained in:
Travis CI 2016-08-22 08:21:43 +00:00
parent f9d65cbe57
commit 4acb07bf8e
559 changed files with 18878 additions and 21688 deletions

View file

@ -89,33 +89,31 @@
<hr class="divider">
<p>The <code>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 <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 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>start time</code> and <code>sunset time</code>), it will fade the lights from the <code>start_colortemp</code> to the <code>sunset_colortemp</code>. After sunset (between <code>sunset_time</code> and <code>stop_time</code>), the lights will fade from the the <code>sunset_colortemp</code> to the <code>stop_colortemp</code>. If the lights are still on after the <code>stop_time</code> it will continue to change the light to the <code>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>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 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 dont 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>switch.flux_update</code> whenever you want the lights updated.</p>
<p>If you dont 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.flux_update</code> whenever you want the lights updated.</p>
<p>To use the Flux switch in your installation, add the following to your <code>configuration.yaml</code> file:</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="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
<span class="key">switch</span>:
<span class="key">platform</span>: <span class="string"><span class="content">flux</span></span>
<span class="key">lights</span>:
- <span class="string"><span class="content">light.desk</span></span>
- <span class="string"><span class="content">light.lamp</span></span>
<span class="key">name</span>: <span class="string"><span class="content">Fluxer</span></span>
<span class="key">start_time</span>: <span class="string"><span class="content">'7:00'</span></span>
<span class="key">stop_time</span>: <span class="string"><span class="content">'23:00'</span></span>
<span class="key">start_colortemp</span>: <span class="string"><span class="content">4000</span></span>
<span class="key">sunset_colortemp</span>: <span class="string"><span class="content">3000</span></span>
<span class="key">stop_colortemp</span>: <span class="string"><span class="content">1900</span></span>
<span class="key">brightness</span>: <span class="string"><span class="content">200</span></span>
<span class="key">mode</span>: <span class="string"><span class="content">xy</span></span>
</pre></div>
</div>
<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>
<span class="s">platform</span><span class="pi">:</span> <span class="s">flux</span>
<span class="s">lights</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">light.desk</span>
<span class="pi">-</span> <span class="s">light.lamp</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Fluxer</span>
<span class="s">start_time</span><span class="pi">:</span> <span class="s1">'</span><span class="s">7:00'</span>
<span class="s">stop_time</span><span class="pi">:</span> <span class="s1">'</span><span class="s">23:00'</span>
<span class="s">start_colortemp</span><span class="pi">:</span> <span class="s">4000</span>
<span class="s">sunset_colortemp</span><span class="pi">:</span> <span class="s">3000</span>
<span class="s">stop_colortemp</span><span class="pi">:</span> <span class="s">1900</span>
<span class="s">brightness</span><span class="pi">:</span> <span class="s">200</span>
<span class="s">mode</span><span class="pi">:</span> <span class="s">xy</span>
</code></pre>
</div>
<p>Configuration variables:</p>
@ -125,10 +123,10 @@
<li><strong>name</strong> (<em>Optional</em>): The name to use when displaying this switch.</li>
<li><strong>start_time</strong> (<em>Optional</em>): The start time. Default to sunrise.</li>
<li><strong>stop_time</strong> (<em>Optional</em>): The stop time. Defaults to 22:00.</li>
<li><strong>start_colortemp</strong> (<em>Optional</em>): The color temperature at the start. Defaults to <code>4000</code>.</li>
<li><strong>sunset_colortemp</strong> (<em>Optional</em>): The sun set color temperature. Defaults to <code>3000</code>.</li>
<li><strong>stop_colortemp</strong> (<em>Optional</em>): The color temperature at the end. Defaults to <code>1900</code>.</li>
<li><strong>brightness</strong> (<em>Optional</em>): The brightness of the lights. Calculated with <code>RGB_to_xy</code> by default.</li>
<li><strong>start_colortemp</strong> (<em>Optional</em>): The color temperature at the start. Defaults to <code class="highlighter-rouge">4000</code>.</li>
<li><strong>sunset_colortemp</strong> (<em>Optional</em>): The sun set color temperature. Defaults to <code class="highlighter-rouge">3000</code>.</li>
<li><strong>stop_colortemp</strong> (<em>Optional</em>): The color temperature at the end. Defaults to <code class="highlighter-rouge">1900</code>.</li>
<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>mode</strong> (<em>Optional</em>): Select how color temperature is passed to lights. Valid values are xy, mired and kelvin. Defaults to xy.</li>
</ul>