Site updated at 2017-10-20 06:41:36 UTC

This commit is contained in:
Travis CI 2017-10-20 06:41:37 +00:00
parent f60fae98a1
commit 1a4ae3af34
29 changed files with 93 additions and 80 deletions

View file

@ -74,7 +74,9 @@
</h1>
</header>
<hr class="divider">
<p>The URL for a binary sensor looks like the example below:</p>
<p>The HTTP binary sensor is dynamically created with the first request that is made to its URL. You dont have to define it in the configuration first.</p>
<p>The sensor will then exist as long as Home Assistant is running. After a restart of Home Assistant the sensor will be gone until it is triggered again.</p>
<p>The URL for a binary sensor looks like the example below:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>http://IP_ADDRESS:8123/api/states/binary_sensor.DEVICE_NAME
</code></pre>
</div>

View file

@ -74,7 +74,9 @@
</h1>
</header>
<hr class="divider">
<p>The URL for a sensor looks like the example below:</p>
<p>The HTTP sensor is dynamically created with the first request that is made to its URL. You dont have to define it in the configuration first.</p>
<p>The sensor will then exist as long as Home Assistant is running. After a restart of Home Assistant the sensor will be gone until it is triggered again.</p>
<p>The URL for a sensor looks like the example below:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>http://IP_ADDRESS:8123/api/states/sensor.DEVICE_NAME
</code></pre>
</div>

View file

@ -81,19 +81,10 @@
<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>
<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">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="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>
</code></pre>
</div>
<p>Configuration variables:</p>
@ -109,6 +100,24 @@
<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>
</ul>
<p>Full example:</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>
<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">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>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">