From 92e8fe90296b99d48ca7e86eeff626f2c27d9dec Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 12 May 2022 15:47:39 -0400 Subject: [PATCH] Added switch for when K stays overnight elsewhere --- automations.yaml | 3 +++ input_boolean.yaml | 5 ++++- packages/announcements.yaml | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/automations.yaml b/automations.yaml index eb1d628..6677a18 100644 --- a/automations.yaml +++ b/automations.yaml @@ -335,6 +335,9 @@ - condition: state entity_id: binary_sensor.people_present state: 'on' + - condition: state + entity_id: input_boolean.kallen_overnight + state: 'off' action: - choose: - conditions: diff --git a/input_boolean.yaml b/input_boolean.yaml index b08bc2a..c6b3566 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -20,4 +20,7 @@ living_room_entertainment_mode: name: Living Room Entertainment Mode front_porch_light_on: name: Front Porch Light On - icon: hue:room-outdoors \ No newline at end of file + icon: hue:room-outdoors +kallen_overnight: + name: Kallen Overnight + icon: mdi:weather-night \ No newline at end of file diff --git a/packages/announcements.yaml b/packages/announcements.yaml index db86e07..f238d5b 100644 --- a/packages/announcements.yaml +++ b/packages/announcements.yaml @@ -68,6 +68,10 @@ automation: trigger: platform: time at: input_datetime.kallen_morning_briefing + condition: + - condition: state + entity_id: input_boolean.kallen_overnight + state: 'off' action: - service: script.kallen_morning_briefing @@ -76,6 +80,10 @@ automation: trigger: platform: time at: input_datetime.kallen_nightly_briefing + condition: + condition: state + entity_id: input_boolean.kallen_overnight + state: 'off' action: - service: script.kallen_nightly_briefing