Automation to move location of K morning briefing if K is awake
This commit is contained in:
@ -140,6 +140,24 @@ automation:
|
|||||||
data:
|
data:
|
||||||
who: common
|
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:
|
script:
|
||||||
reset_annc_switches:
|
reset_annc_switches:
|
||||||
sequence:
|
sequence:
|
||||||
|
@ -15,6 +15,11 @@ input_datetime:
|
|||||||
has_time: true
|
has_time: true
|
||||||
icon: mdi:binoculars
|
icon: mdi:binoculars
|
||||||
|
|
||||||
|
input_boolean:
|
||||||
|
kallen_awake:
|
||||||
|
name: Kallen Awake
|
||||||
|
icon: mdi:eye-check
|
||||||
|
|
||||||
proximity:
|
proximity:
|
||||||
home_tony:
|
home_tony:
|
||||||
devices:
|
devices:
|
||||||
@ -219,6 +224,15 @@ automation:
|
|||||||
message: "Kallen has been picked up from school."
|
message: "Kallen has been picked up from school."
|
||||||
initial_state: true
|
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:
|
script:
|
||||||
family_is_away:
|
family_is_away:
|
||||||
alias: Family Is Away
|
alias: Family Is Away
|
||||||
|
Reference in New Issue
Block a user