mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
42 lines
838 B
YAML
42 lines
838 B
YAML
alias: Clint Away
|
|
id: automation_clint_away
|
|
mode: restart
|
|
#description:
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.pixel_10_pro
|
|
- person.clint
|
|
- group.person_clint
|
|
from: "home"
|
|
for:
|
|
seconds: 30
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.clint
|
|
state: "home"
|
|
- condition: state
|
|
entity_id: device_tracker.pixel_10_pro
|
|
state: "home"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.clint
|
|
state: "home"
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
entity_id: input_boolean.clint_home
|
|
|
|
- delay: "00:00:30"
|