mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
29 lines
729 B
YAML
29 lines
729 B
YAML
alias: "Guest mode off nobody home"
|
|
id: automation_guest_mode_off_nobody_home
|
|
mode: single
|
|
max_exceeded: silent
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.guest_mode
|
|
to: "off"
|
|
condition:
|
|
condition: and
|
|
conditions:
|
|
# We're all away
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "off"
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: "off"
|
|
- condition: or
|
|
conditions:
|
|
# Either the phone or tablet are away, or the family room isn't occupied
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "off"
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
entity_id: input_boolean.home_occupied
|