From 6936d92338fcf108dc67e0767217af21333c0df6 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 21 Dec 2016 21:14:06 +0000 Subject: [PATCH] Add some more Flash to the house before meetings --- automation/sunrise_turnon_and_off.yaml | 110 ++++++++++++++++--------- script/flash_notify.yaml | 39 ++++----- 2 files changed, 93 insertions(+), 56 deletions(-) diff --git a/automation/sunrise_turnon_and_off.yaml b/automation/sunrise_turnon_and_off.yaml index 510eeb60..be45cd54 100755 --- a/automation/sunrise_turnon_and_off.yaml +++ b/automation/sunrise_turnon_and_off.yaml @@ -1,38 +1,74 @@ -################################### -## Sunrise and Sunset stuff -################################### - -- alias: 'Sunset Stuff on' - trigger: - - platform: sun - event: sunset - - action: - - service: script.monthly_front_house_scene - - service: script.holiday_switches_on - - service: light.turn_on - entity_id: - - light.outdoor_bathroom - - light.tv_light - - light.tv_stand_light - data: - transition: 1200 - -###################################################################### - -- alias: 'Sunset Stuff off' - trigger: - - platform: sun - event: sunrise - offset: '-03:25:00' - - action: - - service: light.turn_off - entity_id: group.all_lights - - service: script.interior_off - - delay: '00:01:00' - - service: script.switch_turn_off_all - - - + + +################################### +## Early Christmas tree Light on +################################### + +- alias: 'Early Christmas tree Light on' + trigger: + - platform: numeric_state + entity_id: sun.sun + value_template: '{{ state.attributes.elevation }}' + below: 20.0 + - platform: numeric_state + entity_id: sensor.dark_sky_cloud_coverage + above: 80 + + condition: + - condition: numeric_state + entity_id: sun.sun + value_template: '{{ state.attributes.elevation }}' + below: 20.0 + - condition: numeric_state + entity_id: sensor.dark_sky_cloud_coverage + above: 80 + + action: + - service: light.turn_on + entity_id: + - light.tv_light + - light.tv_stand_light + data: + transition: 1200 + - service: switch.turn_on + entity_id: + - switch.living_room_outlet + +################################### +## Sunrise and Sunset stuff +################################### + +- alias: 'Sunset Stuff on' + trigger: + - platform: sun + event: sunset + + action: + - service: script.monthly_front_house_scene + - service: script.holiday_switches_on + - service: light.turn_on + entity_id: + - light.outdoor_bathroom + - light.tv_light + - light.tv_stand_light + data: + transition: 1200 + +###################################################################### + +- alias: 'Sunset Stuff off' + trigger: + - platform: sun + event: sunrise + offset: '-03:25:00' + + action: + - service: light.turn_off + entity_id: group.all_lights + - service: script.interior_off + - delay: '00:01:00' + - service: script.switch_turn_off_all + + + \ No newline at end of file diff --git a/script/flash_notify.yaml b/script/flash_notify.yaml index 7bebe23d..9497f3ed 100755 --- a/script/flash_notify.yaml +++ b/script/flash_notify.yaml @@ -1,20 +1,21 @@ -###################################################################################################### -###Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors. -# action: -# - service: script.flash_notify -# -###################################################################################################### - -flash_notify: - sequence: - - service: light.turn_on - entity_id: - - group.outdoor_pool_lights - - light.master_toilet - - light.office_lamp - data: - flash: long - - - +###################################################################################################### +###Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors. +# action: +# - service: script.flash_notify +# +###################################################################################################### + +flash_notify: + sequence: + - service: light.turn_on + entity_id: + - group.outdoor_pool_lights + - light.master_toilet + - light.office_lamp + - light.outdoor_foyer + data: + flash: long + + + \ No newline at end of file