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

18 lines
385 B
YAML
Raw Normal View History

2020-11-08 22:55:19 +00:00
- id: computer_off
alias: Turning computer off automation
description: ''
trigger:
- platform: state
entity_id: binary_sensor.desktop
to: 'off'
for:
minutes: 5
condition: []
action:
- service: light.turn_off
data: {}
entity_id:
- light.computer_left
- light.computer_right
- light.desk_lamp
mode: single