From cf8f4366805de78e5d26eb69be8e0ca426264be0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Dec 2015 09:49:55 +0100 Subject: [PATCH] Add another example (from @Bart274's setup, thanks) --- source/_cookbook/automation_sun.markdown | 32 +++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/source/_cookbook/automation_sun.markdown b/source/_cookbook/automation_sun.markdown index fb8201f9e35..0d1e3df2024 100644 --- a/source/_cookbook/automation_sun.markdown +++ b/source/_cookbook/automation_sun.markdown @@ -9,7 +9,7 @@ sharing: 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 automation: @@ -26,7 +26,7 @@ automation: 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._ @@ -41,4 +41,30 @@ automation: data: # 900 seconds = 15 minutes transition: 900 -``` \ No newline at end of file +``` + +#### {% 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.' +```