1
0

Add VR automations

This commit is contained in:
Przemek Grondek 2023-06-13 00:12:26 +02:00
parent 999a35d693
commit 4bd6861c0c

View File

@ -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