Automation to move location of K morning briefing if K is awake

This commit is contained in:
2022-08-24 07:54:46 -04:00
parent 8208fa42c9
commit 0f40b9d0b4
2 changed files with 32 additions and 0 deletions

View File

@ -140,6 +140,24 @@ automation:
data:
who: common
- id: d7641b5e-3cbb-4fb3-b6ed-5edf3157b88d
alias: Kallen Briefing Location Change
trigger:
- platform: state
entity_id: input_boolean.kallen_awake
from: 'off'
to: 'on'
condition:
condition: state
entity_id: input_boolean.school_today
state: 'on'
action:
- service: input_select.select_option
data:
option: Common Areas
target:
entity_id: input_select.kallen_morning_briefing_location
script:
reset_annc_switches:
sequence:

View File

@ -15,6 +15,11 @@ input_datetime:
has_time: true
icon: mdi:binoculars
input_boolean:
kallen_awake:
name: Kallen Awake
icon: mdi:eye-check
proximity:
home_tony:
devices:
@ -219,6 +224,15 @@ automation:
message: "Kallen has been picked up from school."
initial_state: true
- id: 94b57d79-efe0-4f34-b5e3-baeaa5eea9f4
alias: Kallen Asleep
trigger:
- platform: time
at: input_datetime.kallen_bedtime
action:
- service: input_boolean.turn_off
entity_id: input_boolean.kallen_awake
script:
family_is_away:
alias: Family Is Away