1
0
ansible-home-assistant/configuration/automations/computer-lights.yaml

15 lines
355 B
YAML

- id: computer_off
alias: '[Computer Cave] Turning computer off automation'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.desktop
to: 'off'
for:
minutes: 5
action:
- service: light.turn_off
entity_id:
- light.desk_lightbar
- light.desk_lightbar_ambilight
mode: single