mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
alias: "Kristy Away"
|
|
id: automation_kristy_away
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- group.person_kristy
|
|
- device_tracker.nmap_tracker_d6_28_7a_58_b8_da
|
|
from: "home"
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
- platform: event
|
|
event_type: automation_reloaded
|
|
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: device_tracker.kristy_s_phone
|
|
state: "home"
|
|
- condition: state
|
|
entity_id: device_tracker.nmap_tracker_d6_28_7a_58_b8_da
|
|
state: "home"
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: device_tracker.kristy_s_phone
|
|
state: "home"
|
|
- condition: state
|
|
entity_id: device_tracker.nmap_tracker_d6_28_7a_58_b8_da
|
|
state: "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"
|