mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
alias: 'All away'
|
|
id: automation_all_away
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.clint_home
|
|
- input_boolean.kristy_home
|
|
- input_boolean.guest_home
|
|
- input_boolean.emmett_home
|
|
- input_boolean.bridget_home
|
|
- input_boolean.marshall_home
|
|
- input_boolean.tess_home
|
|
- input_boolean.ebin_home
|
|
- input_boolean.front_room_occupied
|
|
- input_boolean.computer_area_occupied
|
|
- input_boolean.kitchen_occupied
|
|
- input_boolean.great_room_occupied
|
|
to: 'off'
|
|
condition:
|
|
# Adults are away
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.guest_home
|
|
state: 'off'
|
|
# Kids are away
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.tess_home
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_home
|
|
state: 'off'
|
|
# And not in guest mode
|
|
- condition: state
|
|
entity_id: input_boolean.guest_mode
|
|
state: 'off'
|
|
action:
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.all_away
|
|
- delay: '00:00:30' |