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

15 lines
355 B
YAML
Raw Normal View History

2020-11-08 22:55:19 +00:00
- id: computer_off
2021-01-07 00:48:14 +00:00
alias: '[Computer Cave] Turning computer off automation'
2020-11-08 22:55:19 +00:00
description: ''
trigger:
- platform: state
entity_id: binary_sensor.desktop
to: 'off'
for:
minutes: 5
action:
- service: light.turn_off
entity_id:
2021-05-06 23:04:02 +00:00
- light.desk_lightbar
- light.desk_lightbar_ambilight
2020-11-08 22:55:19 +00:00
mode: single