From 3f1d7935fc16025d9aad5f246dd312ded1a13a27 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sun, 4 Dec 2016 07:01:53 +0000 Subject: [PATCH] Full Bright Lights if there is movement out front via Skybell and IFTTT. --- automation/halloween_flasher.yaml | 44 ------------------------------- automation/ifttt_SkyBellHD.yaml | 9 +++---- scene/monthly_front_colors.yaml | 32 +++++++++++++++++++--- script/front_house_motion.yaml | 30 +++++++-------------- 4 files changed, 41 insertions(+), 74 deletions(-) delete mode 100755 automation/halloween_flasher.yaml diff --git a/automation/halloween_flasher.yaml b/automation/halloween_flasher.yaml deleted file mode 100755 index 1f713856..00000000 --- a/automation/halloween_flasher.yaml +++ /dev/null @@ -1,44 +0,0 @@ -################################### -## Flash the lights on Halloween for the Tricker Treaters! -################################### -- alias: 'halloween flasher' - trigger: -# - platform: sun -# event: sunset - - platform: event - event_type: skybell_motion_disabled_until_next_year - - condition: - condition: and - conditions: - - condition: state - entity_id: sun.sun - state: 'below_horizon' - - condition: time - before: '23:45' - - action: - - service: light.turn_on - entity_id: group.halloween_flasher - data: - flash: long - - delay: 00:00:2 - - service: light.turn_on - entity_id: group.halloween_flasher - data: - flash: long - - delay: 00:00:2 - - service: light.turn_on - entity_id: group.halloween_flasher - data: - flash: long - - delay: 00:00:3 - - service: light.turn_on - entity_id: group.halloween_flasher - data: - flash: long - - delay: 00:00:5 - - service: light.turn_on - entity_id: group.halloween_flasher - data: - flash: long \ No newline at end of file diff --git a/automation/ifttt_SkyBellHD.yaml b/automation/ifttt_SkyBellHD.yaml index 92907373..e2cdadec 100755 --- a/automation/ifttt_SkyBellHD.yaml +++ b/automation/ifttt_SkyBellHD.yaml @@ -13,7 +13,9 @@ data: name: "SkyBell HD Doorbell:" message: "Someone Pressed the Doorbell." - + +###################################################################### + - alias: 'Log SkyBell Motion detection' hide_entity: True trigger: @@ -21,7 +23,4 @@ event_type: skybell_motion action: - service: logbook.log - data: - name: "SkyBell HD Doorbell:" - message: "Someone is by the door." + - service: script.front_house_motion diff --git a/scene/monthly_front_colors.yaml b/scene/monthly_front_colors.yaml index 935d545c..be31b362 100755 --- a/scene/monthly_front_colors.yaml +++ b/scene/monthly_front_colors.yaml @@ -1,3 +1,13 @@ + #Color Table + # rgb_color: [255,255,255] White + #rgb_color: [61,178,112] #Green + #rgb_color: [255,112,242] #Purple + #rgb_color: [206,22,32] #red + +# service: scene.turn_on +# entity_id: scene.month_front_1_colors + + - name: month_front_1_colors entities: light.outdoor_sconce_2: @@ -40,8 +50,22 @@ state: on brightness: 255 - #Color Table - #rgb_color: [61,178,112] #Green - #rgb_color: [255,112,242] #Purple - #rgb_color: [206,22,32] #red +- name: front_full_brightness + entities: + light.outdoor_sconce_2: + state: on + rgb_color: [255,255,255] + brightness: 255 + light.outdoor_sconce_1: + state: on + rgb_color: [255,255,255] + brightness: 255 + light.outdoor_foyer: + state: on + brightness: 255 + light.outdoor_sconce_3: + state: on + brightness: 255 + + \ No newline at end of file diff --git a/script/front_house_motion.yaml b/script/front_house_motion.yaml index a6ed84ff..ef1f594d 100755 --- a/script/front_house_motion.yaml +++ b/script/front_house_motion.yaml @@ -1,9 +1,8 @@ ###################################################################################################### -###Script to turn on scene for the appropriate month for the front of the house. +###Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors. # action: -# - service: script.monthly_front_house_scene +# - service: script.front_house_motion # -# scenes should be named month_front_[1-12]_colors (month_front_6_colors) ###################################################################################################### front_house_motion: @@ -13,24 +12,13 @@ front_house_motion: name: "SkyBell HD Doorbell:" message: "Someone is by the door." - - condition: state - entity_id: input_boolean.chore_reminder - state: 'on' - - service: ifttt.trigger - data: {"event":"ifttt_notify", "value1":"Chore Reminder On"} - - - condition: state - entity_id: input_boolean.pill_reminder - state: 'on' - - service: ifttt.trigger - data: {"event":"ifttt_notify", "value1":"pill Reminder On"} - - - condition: state - entity_id: input_boolean.trash_reminder - state: 'on' - - service: ifttt.trigger - data: {"event":"ifttt_notify", "value1":"trash Reminder On"} - + - condition: sun + after: 'sunset' + - service: scene.turn_on + entity_id: scene.front_full_brightness + - delay: 00:15:00 + - service: script.monthly_front_house_scene + \ No newline at end of file