Add another example (from @Bart274's setup, thanks)

This commit is contained in:
Fabian Affolter 2015-12-08 09:49:55 +01:00
parent 08da3f8dd5
commit cf8f436680

View File

@ -9,7 +9,7 @@ sharing: true
footer: true footer: true
--- ---
#### Turn on the living room lights 45 minutes before sunset if anyone home #### {% linkable_title Turn on the living room lights 45 minutes before sunset if anyone home %}
```yaml ```yaml
automation: automation:
@ -26,7 +26,7 @@ automation:
entity_id: group.living_room_lights entity_id: group.living_room_lights
``` ```
#### Natural wake up light #### {% linkable_title Natural wake up light %}
_Note, Philips Hue is currently the only light platform that support transitions._ _Note, Philips Hue is currently the only light platform that support transitions._
@ -41,4 +41,30 @@ automation:
data: data:
# 900 seconds = 15 minutes # 900 seconds = 15 minutes
transition: 900 transition: 900
``` ```
#### {% linkable_title Send sun rise/sun set notifications %}
Notifications send through [PushBullet](components/notify.pushbullet/) when the sun state is changed.
```yaml
automation:
- alias: 'Send notification when sun rises'
trigger:
platform: sun
event: sunrise
offset: '+00:00:00'
action:
service: notify.pushbullet
data:
message: 'The sun is up.'
- alias: 'Send notification when sun sets'
trigger:
platform: sun
event: sunset
offset: '+00:00:00'
action:
service: notify.pushbullet
data:
message: 'The sun is down.'
```