New lights automations
This commit is contained in:
parent
99b9a39ca9
commit
5d8852efaa
18
automations/files/computer-lights.yaml
Normal file
18
automations/files/computer-lights.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
- 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
|
@ -13,7 +13,9 @@
|
||||
- 0
|
||||
- 0
|
||||
- 255
|
||||
entity_id: light.desk_lamp
|
||||
entity_id:
|
||||
- light.computer_left
|
||||
- light.computer_right
|
||||
mode: single
|
||||
|
||||
- id: daily_off
|
||||
@ -26,5 +28,7 @@
|
||||
- service: light.turn_on
|
||||
data:
|
||||
kelvin: 3200
|
||||
entity_id: light.desk_lamp
|
||||
entity_id:
|
||||
- light.computer_left
|
||||
- light.computer_right
|
||||
mode: single
|
||||
|
Loading…
Reference in New Issue
Block a user