mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
36 lines
791 B
YAML
36 lines
791 B
YAML
alias: "Kristy Away"
|
|
id: automation_kristy_away
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.kristy_s_phone
|
|
from: "home"
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: device_tracker.kristy_s_phone
|
|
state: "not_home"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: device_tracker.kristy_s_phone
|
|
state: "not_home"
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
entity_id: input_boolean.kristy_home
|
|
|
|
- action: input_boolean.turn_on
|
|
entity_id: input_boolean.allow_announcements
|
|
|
|
- action: input_boolean.turn_on
|
|
entity_id: input_boolean.out_of_bed_alert
|
|
|
|
- delay: "00:00:30"
|