2023-09-03 21:33:07 +00:00
|
|
|
- id: guests_at_home
|
|
|
|
alias: "[Guests] Guests at home"
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- input_boolean.guests_at_home
|
|
|
|
to: "on"
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
|
|
|
- service: automation.turn_off
|
|
|
|
data:
|
|
|
|
stop_actions: true
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.behaviour_go_to_sleep
|
|
|
|
- automation.behaviour_go_to_sleep_hard_cutoff
|
|
|
|
- automation.living_room_lights_on
|
|
|
|
- automation.living_room_lights_off
|
|
|
|
- automation.table_lights_off
|
|
|
|
- automation.table_lights_on
|
|
|
|
- automation.office_lights_on
|
|
|
|
- automation.office_lights_off
|
|
|
|
|
|
|
|
- id: guests_left
|
|
|
|
alias: "[Guests] Guests left"
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- input_boolean.guests_at_home
|
2023-09-12 17:20:57 +00:00
|
|
|
to: "off"
|
2023-09-03 21:33:07 +00:00
|
|
|
condition: [ ]
|
|
|
|
action:
|
|
|
|
- service: automation.turn_on
|
|
|
|
data:
|
|
|
|
stop_actions: true
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.behaviour_go_to_sleep
|
|
|
|
- automation.behaviour_go_to_sleep_hard_cutoff
|
|
|
|
- automation.living_room_lights_on
|
|
|
|
- automation.living_room_lights_off
|
|
|
|
- automation.table_lights_off
|
|
|
|
- automation.table_lights_on
|
|
|
|
- automation.office_lights_on
|
|
|
|
- automation.office_lights_off
|