1
0

Update lights

add couch lamp
 fix daily automation
 add finished work automation
This commit is contained in:
pgrondek 2020-11-12 03:34:34 +01:00
parent 5d8852efaa
commit c5b230aa50
4 changed files with 58 additions and 2 deletions

View File

@ -5,6 +5,16 @@
at: '10:55'
condition: []
action:
- service: light.turn_on
data:
brightness: 200
rgb_color:
- 0
- 0
- 255
entity_id:
- light.computer_left
- light.computer_right
- service: light.turn_on
data:
flash: long
@ -23,7 +33,13 @@
trigger:
- platform: time
at: '11:25'
condition: []
condition:
- condition: state
entity_id: light.computer_left
state: 'on'
- condition: state
entity_id: light.computer_right
state: 'on'
action:
- service: light.turn_on
data:
@ -31,4 +47,9 @@
entity_id:
- light.computer_left
- light.computer_right
- delay: 5
- service: light.turn_off
entity_id:
- light.computer_left
- light.computer_right
mode: single

View File

@ -0,0 +1,33 @@
- id: work_finished
alias: Notify when finished work
description: ''
trigger:
- platform: state
entity_id: binary_sensor.luxoft
to: 'on'
for:
hours: 8
condition: []
action:
- service: light.turn_on
data:
brightness: 200
rgb_color:
- 0
- 255
- 0
entity_id:
- light.computer_left
- light.computer_right
- service: light.turn_on
data:
flash: long
brightness: 200
rgb_color:
- 0
- 0
- 255
entity_id:
- light.computer_left
- light.computer_right
mode: single

View File

@ -39,7 +39,7 @@
condition:
- condition: state
entity_id: {{ light.entityId }}
state: 'off'
state: 'on'
action:
- service: light.turn_on
data:

View File

@ -7,6 +7,8 @@ lights:
name: TV Middle
- entityId: light.tv_right
name: TV Right
- entityId: light.couch_lamp
name: Couch lamp
- entityId: light.kitchen_01
name: Kitchen 01
- entityId: light.kitchen_02