From 3d3a22530512ab71233f0713edba79fea924a179 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sun, 9 Apr 2017 21:48:14 +0000 Subject: [PATCH] Closed #130 - Splits up Late night helper routines. --- automation/late_night_helper.yaml | 16 ++++------------ automation/late_night_outside_helper.yaml | 21 +++++++++++++++++++++ emulated_hue_ids.json | 2 +- group/lights.yaml | 2 ++ 4 files changed, 28 insertions(+), 13 deletions(-) create mode 100755 automation/late_night_outside_helper.yaml diff --git a/automation/late_night_helper.yaml b/automation/late_night_helper.yaml index 310912f9..c82cb969 100755 --- a/automation/late_night_helper.yaml +++ b/automation/late_night_helper.yaml @@ -5,16 +5,11 @@ trigger: - platform: state entity_id: - - binary_sensor.upstairs_away_mode - binary_sensor.downstairs_away_mode state: 'off' - platform: state entity_id: group.family state: home - - platform: state - entity_id: group.garage_doors - state: 'open' - for: '00:01:30' condition: condition: and @@ -27,10 +22,8 @@ before: '02:00:00' action: - - service: scene.turn_on - entity_id: scene.front_full_brightness - service: light.turn_on - entity_id: + entity_id: - group.living_room_accents - light.living_room_slider - light.foyer_door @@ -38,19 +31,18 @@ - light.M1_front_right - light.S1 - light.S4 - data: - brightness: 150 - service: switch.turn_on entity_id: switch.kitchen_accents - service: switch.turn_on entity_id: switch.living_room_outlet - service: switch.turn_on entity_id: switch.foyer_outlet - - delay: '00:10:00' + - delay: '00:05:00' - service: light.turn_off entity_id: - light.S1 - light.S4 - light.foyer_door - light.fridge - - service: script.monthly_color_scene + - light.living_room_slider + - light.M1_front_right diff --git a/automation/late_night_outside_helper.yaml b/automation/late_night_outside_helper.yaml new file mode 100755 index 00000000..ffe3b89e --- /dev/null +++ b/automation/late_night_outside_helper.yaml @@ -0,0 +1,21 @@ +################################### +## Late Night lights Section +################################### +- alias: 'Late Night Helper' + trigger: + - platform: state + entity_id: group.garage_doors + state: 'open' + + condition: + condition: and + conditions: + - condition: state + entity_id: sun.sun + state: 'below_horizon' + + action: + - service: scene.turn_on + entity_id: scene.front_full_brightness + - wait_template: "{{ states.group.garage_doors.states == 'closed' }}" + - service: script.monthly_color_scene diff --git a/emulated_hue_ids.json b/emulated_hue_ids.json index c8dc1b0c..39e6f1f8 100644 --- a/emulated_hue_ids.json +++ b/emulated_hue_ids.json @@ -1 +1 @@ -{"9": "switch.living_room_outlet", "12": "group.all_lights", "47": "switch.ge_outdoor_outle_switch_7_0", "16": "switch.kitchen_accent_2", "37": "input_boolean.alert_mode", "48": "switch.ge_outdoor_outle_switch_8_0", "39": "input_boolean.last_message", "17": "input_boolean.guest_mode", "6": "group.dining_room_lights", "7": "group.living_room_accents", "5": "switch.living_room_amp", "42": "input_boolean.meal_time", "49": "input_boolean.guard_dog", "25": "group.interior_lights", "50": "input_boolean.flash", "26": "scene.living_room_tv_time", "28": "switch.foyer_outlet", "34": "group.exterior_lights", "18": "group.den_lights", "44": "input_boolean.good_morning", "31": "group.outdoor_lights", "2": "group.outdoor_front_lights", "8": "switch.printer_outlet", "1": "switch.front_door_outlet", "10": "group.garage_lights", "23": "light.garage_left", "43": "input_boolean.tv_time", "41": "input_boolean.home_stats", "4": "group.dinette_lights", "21": "group.bedroom_lights", "36": "input_boolean.speech_notifications", "52": "light.led_garage_small", "19": "group.all_switches", "35": "input_boolean.school_mode", "33": "group.office_lights", "22": "light.outdoor_den", "24": "group.outdoor_pool_lights", "14": "switch.den_outlet", "38": "scene.front_full_brightness", "53": "input_boolean.color_tornado", "40": "input_boolean.responsibilities", "27": "group.upstairs_lights", "20": "switch.garage_outlet", "15": "group.hallway_lights", "3": "switch.kitchen_accents", "29": "group.amps", "51": "light.led_garage_large", "45": "input_boolean.work", "30": "switch.outlet_304_4", "32": "group.living_room_lights", "46": "light.garage_large", "11": "group.foyer_lights", "13": "group.kitchen_lights"} \ No newline at end of file +{"51": "light.led_garage_large", "6": "group.dining_room_lights", "5": "switch.living_room_amp", "50": "input_boolean.flash", "17": "input_boolean.guest_mode", "9": "switch.living_room_outlet", "8": "switch.printer_outlet", "33": "group.office_lights", "19": "group.all_switches", "38": "scene.front_full_brightness", "28": "switch.foyer_outlet", "46": "light.garage_large", "35": "input_boolean.school_mode", "30": "switch.outlet_304_4", "4": "group.dinette_lights", "47": "switch.ge_outdoor_outle_switch_7_0", "10": "group.garage_lights", "39": "input_boolean.last_message", "31": "group.outdoor_lights", "37": "input_boolean.alert_mode", "41": "input_boolean.home_stats", "22": "light.outdoor_den", "21": "group.bedroom_lights", "45": "input_boolean.work", "34": "group.exterior_lights", "44": "input_boolean.good_morning", "49": "input_boolean.guard_dog", "43": "input_boolean.tv_time", "48": "switch.ge_outdoor_outle_switch_8_0", "53": "input_boolean.color_tornado", "14": "switch.den_outlet", "16": "switch.kitchen_accent_2", "54": "light.led_outdoor_den", "52": "light.led_garage_small", "36": "input_boolean.speech_notifications", "42": "input_boolean.meal_time", "40": "input_boolean.responsibilities", "2": "group.outdoor_front_lights", "20": "switch.garage_outlet", "13": "group.kitchen_lights", "1": "switch.front_door_outlet", "26": "scene.living_room_tv_time", "29": "group.amps", "3": "switch.kitchen_accents", "24": "group.outdoor_pool_lights", "12": "group.all_lights", "15": "group.hallway_lights", "7": "group.living_room_accents", "27": "group.upstairs_lights", "25": "group.interior_lights", "18": "group.den_lights", "11": "group.foyer_lights", "23": "light.garage_left", "32": "group.living_room_lights"} \ No newline at end of file diff --git a/group/lights.yaml b/group/lights.yaml index 8069ecd6..0a2aaf47 100755 --- a/group/lights.yaml +++ b/group/lights.yaml @@ -72,11 +72,13 @@ Outdoor Front Lights: - light.outdoor_sconce_3 - light.led_garage_large - light.led_garage_small + - light.led_outdoor_den LED Lights: entities: - light.led_garage_large - light.led_garage_small + - light.led_outdoor_den Garage lights: control: hidden