Try to do a better job of dealing with K not always having his phone

This commit is contained in:
2024-03-11 14:18:22 -04:00
parent 2f1043a965
commit 27cf229dab
2 changed files with 46 additions and 0 deletions

View File

@ -4079,14 +4079,20 @@
event: leave
platform: zone
zone: zone.middle_school
id: tony-leave
- entity_id: person.christina_stork
event: leave
platform: zone
zone: zone.middle_school
id: tina-leave
- entity_id: person.kallen_stork
event: leave
platform: zone
zone: zone.middle_school
id: kallen-leave
- platform: time
at: input_datetime.kallen_school_day_end
id: school-end
condition:
- condition: time
after: '11:30:00'
@ -4100,6 +4106,25 @@
entity_id: input_boolean.kallen_at_school
state: 'on'
action:
- alias: If Kallen has his phone, don't run at school end time
if:
- condition: and
conditions:
- condition: trigger
id:
- school-end
- alias: If Kallen has his phone, or one of us is picking him up
condition: or
conditions:
- condition: state
entity_id: input_boolean.kallen_has_phone
state: 'on'
- condition: state
entity_id: input_boolean.kallen_alternate_pickup
state: 'off'
alias: Conditions for pickup
then:
- stop: Will use location triggers instead.
- service: input_boolean.turn_off
entity_id: input_boolean.kallen_at_school
alias: Turn off Kallen At School
@ -4667,3 +4692,21 @@
message: clear_notification
tag: basement-studio-hot
mode: restart
- id: '1710180629143'
alias: Kallen Has Phone
description: Make sure the system knows Kallen has his phone, if his phone leaves
the house.
trigger:
- platform: state
entity_id:
- person.kallen_stork
from: home
to: not_home
condition: []
action:
- service: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.kallen_has_phone
mode: restart

View File

@ -25,6 +25,9 @@ input_boolean:
kallen_alarm_clock:
name: Kallen Alarm Clock
icon: mdi:alarm
kallen_has_phone:
name: Kallen Has Phone
icon: mdi:cellphone
input_datetime:
kallen_bedtime: