From fb4372b5d06b01d53f96d97da5aae4072f23783f Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sun, 19 Feb 2017 07:01:45 +0000 Subject: [PATCH] Closes #57 --- README.md | 3 +- .../{heal_zwave.yaml => Self_heal.yaml} | 12 ++++- .../{chores.yaml => responsibilities.yaml} | 2 +- automation/Timed_Triggers/0650.yaml | 38 ++++++++++++++ automation/Timed_Triggers/0750.yaml | 28 ++++++++++ automation/Timed_Triggers/0830.yaml | 28 ++++++++++ automation/Timed_Triggers/2200.yaml | 12 +++++ automation/good_morning.yaml | 51 ++++--------------- 8 files changed, 129 insertions(+), 45 deletions(-) rename automation/{heal_zwave.yaml => Self_heal.yaml} (61%) rename automation/Speech/{chores.yaml => responsibilities.yaml} (97%) create mode 100755 automation/Timed_Triggers/0650.yaml create mode 100755 automation/Timed_Triggers/0750.yaml create mode 100755 automation/Timed_Triggers/0830.yaml create mode 100755 automation/Timed_Triggers/2200.yaml diff --git a/README.md b/README.md index 953baa69..166b7f1f 100755 --- a/README.md +++ b/README.md @@ -99,9 +99,10 @@ SUNSET: 08:00 PM ** Light Brightness helper 35 Brightness ** 08:00 PM TV time Scene triggered if the TV is on. 09:00 PM Turn on [Hue Go](http://amzn.to/2iB36Ii) lights for the kid's rooms and start fading down. -09:00 PM Speech Notifications are disabled for the house. (except under ALERT mode) +10:00 PM Speech Notifications are disabled for the house. (except under ALERT mode) and AMP is shut. 02:00 AM ** Late Night Help Deactivated ** 02:31 AM Heal ZWave Network +02:35 AM Clear out daily TTS cache ``` #Todo List diff --git a/automation/heal_zwave.yaml b/automation/Self_heal.yaml similarity index 61% rename from automation/heal_zwave.yaml rename to automation/Self_heal.yaml index d40716d5..a1af29dc 100755 --- a/automation/heal_zwave.yaml +++ b/automation/Self_heal.yaml @@ -1,5 +1,5 @@ ################################### -## ZWave Healing Section - +## Self Healing Section - ## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0). ################################### @@ -9,4 +9,12 @@ platform: time after: '2:31:00' action: - service: zwave.heal_network + service: zwave.heal_network + +- alias: Flush TTS Cache + hide_entity: True + trigger: + platform: time + after: '2:35:00' + action: + service: tts.clear_cache diff --git a/automation/Speech/chores.yaml b/automation/Speech/responsibilities.yaml similarity index 97% rename from automation/Speech/chores.yaml rename to automation/Speech/responsibilities.yaml index c8c27943..a281c772 100755 --- a/automation/Speech/chores.yaml +++ b/automation/Speech/responsibilities.yaml @@ -1,7 +1,7 @@ ###################################################################### ## Who's day is it anyway? Pretty sure my parent's didn't code to figure this out. ###################################################################### -- alias: 'chores' +- alias: 'responsibilities' trigger: diff --git a/automation/Timed_Triggers/0650.yaml b/automation/Timed_Triggers/0650.yaml new file mode 100755 index 00000000..9ced7e7c --- /dev/null +++ b/automation/Timed_Triggers/0650.yaml @@ -0,0 +1,38 @@ +###################################################################### +## Stuff that needs to happen at 08:30am. +###################################################################### + +- alias: 'Kids 650.' + trigger: + - platform: time + after: '06:50:00' + + condition: + - condition: state + entity_id: group.family + state: home + - condition: state + entity_id: input_boolean.school_mode + state: 'on' + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + + action: + - service: light.turn_on + entity_id: + - light.d1 + - light.d2 + - group.kitchen_lights + - service: light.turn_off + entity_id: + - group.dining_room_lights + data: + transition: 600 + - service: switch.turn_off + entity_id: switch.kitchen_accents + - delay: 01:00:00 diff --git a/automation/Timed_Triggers/0750.yaml b/automation/Timed_Triggers/0750.yaml new file mode 100755 index 00000000..2226af53 --- /dev/null +++ b/automation/Timed_Triggers/0750.yaml @@ -0,0 +1,28 @@ +###################################################################### +## Stuff that needs to happen at 08:30am. +###################################################################### + +- alias: 'Kids 0750am.' + trigger: + - platform: time + after: '07:50:00' + + condition: + - condition: state + entity_id: group.family + state: home + - condition: state + entity_id: input_boolean.school_mode + state: 'on' + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + + action: + - service: light.turn_on + entity_id: + - group.kitchen_lights diff --git a/automation/Timed_Triggers/0830.yaml b/automation/Timed_Triggers/0830.yaml new file mode 100755 index 00000000..f958434a --- /dev/null +++ b/automation/Timed_Triggers/0830.yaml @@ -0,0 +1,28 @@ +###################################################################### +## Stuff that needs to happen at 08:30am. +###################################################################### + +- alias: 'Kids left for the day.' + trigger: + - platform: time + after: '08:30:00' + + condition: + - condition: state + entity_id: group.family + state: home + - condition: state + entity_id: input_boolean.school_mode + state: 'on' + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + + action: + - service: light.turn_off + entity_id: + - group.interior_lights diff --git a/automation/Timed_Triggers/2200.yaml b/automation/Timed_Triggers/2200.yaml new file mode 100755 index 00000000..fb79e353 --- /dev/null +++ b/automation/Timed_Triggers/2200.yaml @@ -0,0 +1,12 @@ +###################################################################### +## Stuff that needs to happen at 10pm. +###################################################################### + +- alias: 'Shut down AMP in Living room' + trigger: + - platform: time + after: '20:00:00' + + action: + - service: switch.turn_off + entity_id: switch.living_room_amp diff --git a/automation/good_morning.yaml b/automation/good_morning.yaml index d89e58b8..69e7c897 100755 --- a/automation/good_morning.yaml +++ b/automation/good_morning.yaml @@ -6,66 +6,35 @@ trigger: - platform: event event_type: good_morning - - platform: time - after: '06:00:00' + - platform: state + entity_id: + - binary_sensor.sleepnumber_carlo_stacey_is_in_bed + state: 'off' condition: - condition: state entity_id: group.family - state: home + state: home - condition: state entity_id: input_boolean.school_mode state: 'on' - - condition: time + - condition: time + after: '06:00:00' + - condition: time weekday: - mon - tue - wed - thu - fri - + action: - service: light.turn_on - entity_id: + entity_id: - light.s1 - light.s4 - data: - brightness: 150 - service: switch.turn_on entity_id: switch.kitchen_accents - delay: 00:01:00 - service: switch.turn_on entity_id: switch.kitchen_accents - - delay: 00:50:00 - -# 6:50am now. - - service: light.turn_on - entity_id: - - light.d1 - - light.d2 - - group.kitchen_lights - data: - brightness: 150 - - service: light.turn_off - entity_id: - - group.dining_room_lights - data: - transition: 600 - - service: switch.turn_off - entity_id: switch.kitchen_accents - - delay: 01:00:00 - -# 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 - entity_id: - - group.interior_lights - - - \ No newline at end of file