diff --git a/configuration/automations/office-vr.yaml b/configuration/automations/office-vr.yaml new file mode 100644 index 0000000..2b5d1ff --- /dev/null +++ b/configuration/automations/office-vr.yaml @@ -0,0 +1,33 @@ +- 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_off + - 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 + data: + stop_actions: true + target: + entity_id: + - automation.office_lights_off + - automation.living_room_lights_off