From 4bd6861c0c9007f655dd3073c12bda203ab8798c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 13 Jun 2023 00:12:26 +0200 Subject: [PATCH] Add VR automations --- configuration/automations/office-vr.yaml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 configuration/automations/office-vr.yaml 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