Disarm security when K is on his way home, also #154

This commit is contained in:
2023-12-01 14:55:54 -05:00
parent 8131ad2112
commit 92bcf7e5e8
2 changed files with 120 additions and 98 deletions

View File

@ -458,104 +458,6 @@ intent_script:
{% endif %}
automation:
- id: kallen_at_school
alias: Kallen is at School
mode: single
trigger:
- entity_id: person.tony_stork
event: leave
platform: zone
zone: zone.middle_school
- entity_id: person.christina_stork
event: leave
platform: zone
zone: zone.middle_school
- entity_id: person.kallen_stork
event: enter
platform: zone
zone: zone.middle_school
condition:
- condition: time
before: "11:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_boolean.kallen_at_school
state: "off"
- condition: state
entity_id: input_boolean.kallen_school_today
state: "on"
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.kallen_at_school
- service: input_boolean.turn_on
target:
entity_id: input_boolean.kallen_awake
- service: script.text_notify
data:
type: alert
who: parents
message: "Kallen has been dropped off at school."
title: "Kallen Location Alert"
tag: kallen-dropoff
- if:
- condition: template
value_template: "{{ is_state('input_boolean.master_bedroom_sleeping','on') and is_state('input_boolean.kallen_overnight','off') }}"
then:
- service: light.turn_off
target:
entity_id:
- light.first_floor_lights
- id: kallen_left_school
alias: Kallen left School
mode: single
trigger:
- entity_id: person.tony_stork
event: leave
platform: zone
zone: zone.middle_school
- entity_id: person.christina_stork
event: leave
platform: zone
zone: zone.middle_school
- entity_id: person.kallen_stork
event: leave
platform: zone
zone: zone.middle_school
condition:
- condition: time
after: "11:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_boolean.kallen_at_school
state: "on"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.kallen_at_school
- service: script.text_notify
data:
type: alert
who: parents
message: "Kallen has been picked up from school."
title: "Kallen Location Alert"
tag: kallen-pickup
- service: script.speech_engine
data:
who: alexa_everywhere
message: "Collin has been picked up from school."
initial_state: true
# - id: 395ebb76-83e4-4a7c-913e-2598fef3d5c1
# alias: Doorbell Alert
# trigger: