Site updated at 2015-12-10 17:03:31 UTC

This commit is contained in:
Paulus Schoutsen 2015-12-10 09:03:31 -08:00
parent e7f9c2e655
commit ef8ec62114
29 changed files with 60 additions and 32 deletions

View file

@ -103,7 +103,7 @@
<hr class="divider">
<h3>Rainy Day Light</h3>
<h3><a class="title-link" name="rainy-day-light" href="#rainy-day-light"></a> Rainy Day Light</h3>
<p>This requires a <a href="components/sensor.forecast/">forecast.io</a> sensor with the condition <code>weather_precip</code> that tells if its raining or not.</p>

View file

@ -103,7 +103,7 @@
<hr class="divider">
<h4>Turn on the living room lights 45 minutes before sunset if anyone home</h4>
<h4><a class="title-link" name="turn-on-the-living-room-lights-45-minutes-before-sunset-if-anyone-home" href="#turn-on-the-living-room-lights-45-minutes-before-sunset-if-anyone-home"></a> Turn on the living room lights 45 minutes before sunset if anyone home</h4>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">automation</span>:
@ -122,7 +122,7 @@
</div>
</div>
<h4>Natural wake up light</h4>
<h4><a class="title-link" name="natural-wake-up-light" href="#natural-wake-up-light"></a> Natural wake up light</h4>
<p><em>Note, Philips Hue is currently the only light platform that support transitions.</em></p>
@ -141,6 +141,34 @@
</div>
</div>
<h4><a class="title-link" name="send-sun-risesun-set-notifications" href="#send-sun-risesun-set-notifications"></a> Send sun rise/sun set notifications</h4>
<p>Notifications send through <a href="components/notify.pushbullet/">PushBullet</a> when the sun state is changed.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">automation</span>:
- <span class="string"><span class="content">alias: 'Send notification when sun rises'</span></span>
<span class="key">trigger</span>:
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
<span class="key">event</span>: <span class="string"><span class="content">sunrise</span></span>
<span class="key">offset</span>: <span class="string"><span class="content">'+00:00:00'</span></span>
<span class="key">action</span>:
<span class="key">service</span>: <span class="string"><span class="content">notify.pushbullet</span></span>
<span class="key">data</span>:
<span class="key">message</span>: <span class="string"><span class="content">'The sun is up.'</span></span>
- <span class="string"><span class="content">alias: 'Send notification when sun sets'</span></span>
<span class="key">trigger</span>:
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
<span class="key">offset</span>: <span class="string"><span class="content">'+00:00:00'</span></span>
<span class="key">action</span>:
<span class="key">service</span>: <span class="string"><span class="content">notify.pushbullet</span></span>
<span class="key">data</span>:
<span class="key">message</span>: <span class="string"><span class="content">'The sun is down.'</span></span>
</pre></div>
</div>
</div>
</article>

View file

@ -103,7 +103,7 @@
<hr class="divider">
<h3>Basic example for use_trigger_values</h3>
<h3><a class="title-link" name="basic-example-for-use_trigger_values" href="#basic-example-for-use_trigger_values"></a> Basic example for use_trigger_values</h3>
<p>Turn on lights during daytime when its dark enough &lt; 200 lux.</p>

View file

@ -105,13 +105,10 @@
<p>Like it how the lights dim up/down at the movies? Do it at home as well!</p>
<p>This example uses the media player, Philips Hue (transitions) and the sun component.<br />
Well use actions to detect media player state changes and scenes to control multiple<br />
lights, color settings and transition between scenes.</p>
<p>This example uses the media player, Philips Hue (transitions) and the sun component. Well use actions to detect media player state changes and scenes to control multiple lights, color settings and transition between scenes.</p>
<h4>Scenes</h4>
<p>One scene for normal light, one for when movies are on.<br />
A 2 second transition gives a nice feel to the switch.</p>
<h4><a class="title-link" name="scenes" href="#scenes"></a> Scenes</h4>
<p>One scene for normal light, one for when movies are on. A 2 second transition gives a nice feel to the switch.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">scene</span>:
@ -143,9 +140,8 @@ A 2 second transition gives a nice feel to the switch.</p>
</div>
</div>
<h4>Automation</h4>
<p>The paused/stopped state is best matched using “from: playing”.<br />
Adding in the sun condition as we only want this when its dark.</p>
<h4><a class="title-link" name="automation" href="#automation"></a> Automation</h4>
<p>The paused/stopped state is best matched using “from: playing”. Adding in the sun condition as we only want this when its dark.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="key">automation</span>:

View file

@ -103,7 +103,7 @@
<hr class="divider">
<h4>Turn on lights with a resettable off timer</h4>
<h4><a class="title-link" name="turn-on-lights-with-a-resettable-off-timer" href="#turn-on-lights-with-a-resettable-off-timer"></a> Turn on lights with a resettable off timer</h4>
<p>This recipe will turn on a light when there is motion and turn off the light when ten minutes has passed without any motion events .</p>