From 651ef5137f4bf863693061df4ba32bd4b5f933bb Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Tue, 27 Dec 2016 18:08:51 +0000 Subject: [PATCH] Update Good Morning and Good Night routines to add in Kid's Hue Gos --- automation/good_morning.yaml | 18 ++++++++++++++-- automation/good_night.yaml | 42 +++++++++++++++++++++--------------- 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/automation/good_morning.yaml b/automation/good_morning.yaml index a624d8d8..21864f13 100755 --- a/automation/good_morning.yaml +++ b/automation/good_morning.yaml @@ -15,7 +15,7 @@ state: home - condition: state entity_id: input_boolean.school_mode - state: 'off' + state: 'on' - condition: time weekday: - mon @@ -37,6 +37,12 @@ - service: switch.turn_on entity_id: switch.kitchen_accents - delay: 00:50:00 + - service: light.turn_on + entity_id: + - light.justin_go + data: + transition: 3000 + color_name: 'Yellow' # 6:50am now. - service: light.turn_on entity_id: @@ -48,16 +54,24 @@ - service: light.turn_off entity_id: - group.dining_room_lights + - light.justin_go + data: + transition: 600 - service: switch.turn_off entity_id: switch.kitchen_accents - delay: 01:00:00 + - service: light.turn_on + entity_id: + - light.Paige_go + data: + transition: 3000 + color_name: 'Yellow' # 7:50am now. - service: light.turn_on entity_id: - group.kitchen_lights data: brightness: 200 - - delay: 00:40:00 # 8:30am now. - service: light.turn_off diff --git a/automation/good_night.yaml b/automation/good_night.yaml index cb1dbcab..dc23fc9d 100755 --- a/automation/good_night.yaml +++ b/automation/good_night.yaml @@ -1,18 +1,26 @@ -###################################################################### -## Good night Routine -###################################################################### - -- alias: 'Good Night Routine' - trigger: - - platform: event - event_type: good_night - - # condition: - # - condition: state - # entity_id: group.family - # state: home - - action: - - service: script.interior_off - +###################################################################### +## Good night Routine +###################################################################### + +- alias: 'Good Night Routine' + trigger: + - platform: event + event_type: good_night + - platform: state + entity_id: sensor.samsungtv + state: 'Offline' + + condition: + - condition: state + entity_id: group.family + state: home + - condition: time + after: '20:00:00' + - condition: state + entity_id: input_boolean.guest_mode + state: 'off' + + action: + - service: script.interior_off + \ No newline at end of file