1
0
ansible-home-assistant/roles/automations/files/office-vr.yaml

32 lines
782 B
YAML

- id: office_vr_start_using
alias: "[Office][VR] Start using"
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.quest_in_use
action:
- service: automation.turn_off
data:
stop_actions: true
target:
entity_id:
- automation.office_lights_off
- automation.living_room_lights_off
- service: script.office_lights_on
- service: script.living_room_lights_on
- id: office_vr_stop_using
alias: "[Office][VR] Stop using"
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.quest_in_use
action:
- service: automation.turn_on
target:
entity_id:
- automation.office_lights_off
- automation.living_room_lights_off