mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
38 lines
730 B
YAML
38 lines
730 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:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.kristy_home
|
|
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.allow_announcements
|
|
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.out_of_bed_alert
|
|
|
|
- delay: '00:00:30'
|
|
|