From f1c727211b8a6daf8fac2b9c6cc7e283a915e967 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 9 Nov 2016 23:59:13 +0000 Subject: [PATCH] Let there be light ... In the morning! --- automation/good_morning.yaml | 41 ++++++++++++++++++++++++++++++++++ automation/mealtime.yaml | 6 ++--- automation/sunrise_turnon.yaml | 2 +- input_boolean/reminders.yaml | 14 ++++++++++++ 4 files changed, 59 insertions(+), 4 deletions(-) create mode 100755 automation/good_morning.yaml create mode 100755 input_boolean/reminders.yaml diff --git a/automation/good_morning.yaml b/automation/good_morning.yaml new file mode 100755 index 00000000..d94a51d5 --- /dev/null +++ b/automation/good_morning.yaml @@ -0,0 +1,41 @@ +###################################################################### +## Shut it all down. No one is here or we went to sleep. +###################################################################### + +- alias: 'Good Morning Routine' + trigger: + - platform: event + event_type: good_morning + - platform: time + after: '06:00:00' + + condition: + - condition: state + entity_id: group.family + state: home + - condition: state + entity_id: input_boolean.guest_mode + state: 'off' + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + + action: + - service: light.turn_on + entity_id: + - light.kitchen_fridge + - light.s1 + - light.s4 + data: + brightness: 150 + - delay: 02:30:00 + - service: light.turn_off + entity_id: + - light.kitchen_fridge + - light.s1 + - light.s4 + \ No newline at end of file diff --git a/automation/mealtime.yaml b/automation/mealtime.yaml index de9d6e2f..550c5c5f 100755 --- a/automation/mealtime.yaml +++ b/automation/mealtime.yaml @@ -10,9 +10,9 @@ action: - service: light.turn_on entity_id: - - group.dinette - - group.kitchen + - group.dinette_lights + - group.kitchen_lights - service: light.turn_off entity_id: - light.office_lamp - - group.living_room \ No newline at end of file + - group.living_room_lights \ No newline at end of file diff --git a/automation/sunrise_turnon.yaml b/automation/sunrise_turnon.yaml index f1983003..6b3dfaf8 100755 --- a/automation/sunrise_turnon.yaml +++ b/automation/sunrise_turnon.yaml @@ -19,7 +19,7 @@ entity_id: light.outdoor_foyer brightness: 200 rgb_color: [61,178,112] - + - alias: 'Sunset Stuff off' trigger: - platform: sun diff --git a/input_boolean/reminders.yaml b/input_boolean/reminders.yaml new file mode 100755 index 00000000..38f52b10 --- /dev/null +++ b/input_boolean/reminders.yaml @@ -0,0 +1,14 @@ +################################### +## Guest Mode Override +################################### +Medicine_Reminder: + icon: mdi:pill + initial: off + +Trash_Reminder: + icon: mdi:delete + initial: off + +Chore_Reminder: + icon: mdi:human-male-female + initial: off \ No newline at end of file