Update K at school automation
This commit is contained in:
@@ -298,6 +298,7 @@ mqtt:
|
|||||||
automation:
|
automation:
|
||||||
- id: kallen_at_school
|
- id: kallen_at_school
|
||||||
alias: Kallen is at School
|
alias: Kallen is at School
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- entity_id: person.tony_stork
|
- entity_id: person.tony_stork
|
||||||
event: leave
|
event: leave
|
||||||
@@ -328,8 +329,10 @@ automation:
|
|||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
|
target:
|
||||||
entity_id: input_boolean.kallen_at_school
|
entity_id: input_boolean.kallen_at_school
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
|
target:
|
||||||
entity_id: input_boolean.kallen_awake
|
entity_id: input_boolean.kallen_awake
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
data:
|
data:
|
||||||
@@ -339,11 +342,21 @@ automation:
|
|||||||
title: "Kallen Location Alert"
|
title: "Kallen Location Alert"
|
||||||
tag: kallen-dropoff
|
tag: kallen-dropoff
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
entity_id: light.kallen_bedroom_lights
|
entity_id: light.kallen_bedroom_lights
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.master_bedroom_sleeping
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.living_room_lights
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
|
||||||
- id: kallen_left_school
|
- id: kallen_left_school
|
||||||
alias: Kallen left School
|
alias: Kallen left School
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- entity_id: person.tony_stork
|
- entity_id: person.tony_stork
|
||||||
event: leave
|
event: leave
|
||||||
|
|||||||
Reference in New Issue
Block a user