From 789e38978461b7b5bbdafe53e588b3f9f93894a8 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 13 Oct 2016 16:45:10 +0000 Subject: [PATCH] Help, It's Dark in here. --- automation/good_night - Copy.yaml | 24 ------------------------ automation/late_night_helper.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 24 deletions(-) delete mode 100755 automation/good_night - Copy.yaml create mode 100755 automation/late_night_helper.yaml diff --git a/automation/good_night - Copy.yaml b/automation/good_night - Copy.yaml deleted file mode 100755 index 80fda665..00000000 --- a/automation/good_night - Copy.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# There is also an IFTTT recipe that shuts down all lights when Nest goes into Away mode. - event_type= Good_Night - -- alias: 'GoodNight - Away Mode' - trigger: - - platform: event - event_type: good_night - - platform: state - entity_id: binary_sensor.upstairs_away_mode - to: 'on' - - platform: state - entity_id: binary_sensor.downstairs_away_mode - to: 'on' - - platform: state - entity_id: group.family - state: not_home - - condition: - condition: state - entity_id: group.family - state: not_home - - action: - service: light.turn_off - entity_id: group.all_lights diff --git a/automation/late_night_helper.yaml b/automation/late_night_helper.yaml new file mode 100755 index 00000000..6f275fd0 --- /dev/null +++ b/automation/late_night_helper.yaml @@ -0,0 +1,27 @@ + +- alias: 'Late Night Helper' + trigger: + entity_id: binary_sensor.upstairs_away_mode + to: 'off' + - platform: state + entity_id: binary_sensor.downstairs_away_mode + to: 'off' + - platform: state + entity_id: group.family + state: home + + condition: + - condition: state + entity_id: sun.sun + state: 'below_horizon' + - condition: time + before: '23:45' + + action: + service: light.turn_on + entity_id: + - group.living_room_accents + - light.living_room_slider + data: + brightness: 150 +