mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
25 lines
496 B
YAML
25 lines
496 B
YAML
id: steam_vr_off
|
|
alias: Steam VR Off
|
|
mode: single
|
|
# Hide warnings when triggered while in delay.
|
|
max_exceeded: silent
|
|
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.dreambox_steamvractive
|
|
below: 1
|
|
for:
|
|
seconds: 30
|
|
|
|
condition:
|
|
- alias: "VR switch is powered on"
|
|
condition: state
|
|
entity_id: switch.virtual_reality
|
|
state: "on"
|
|
|
|
action:
|
|
- alias: "Turn off the VR Headset plug"
|
|
action: switch.turn_off
|
|
target:
|
|
entity_id: switch.virtual_reality
|