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' at: '10:55'
condition: [] condition: []
action: 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 - service: light.turn_on
data: data:
flash: long flash: long
@ -23,7 +33,13 @@
trigger: trigger:
- platform: time - platform: time
at: '11:25' at: '11:25'
condition: [] condition:
- condition: state
entity_id: light.computer_left
state: 'on'
- condition: state
entity_id: light.computer_right
state: 'on'
action: action:
- service: light.turn_on - service: light.turn_on
data: data:
@ -31,4 +47,9 @@
entity_id: entity_id:
- light.computer_left - light.computer_left
- light.computer_right - light.computer_right
- delay: 5
- service: light.turn_off
entity_id:
- light.computer_left
- light.computer_right
mode: single 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:
- condition: state - condition: state
entity_id: {{ light.entityId }} entity_id: {{ light.entityId }}
state: 'off' state: 'on'
action: action:
- service: light.turn_on - service: light.turn_on
data: data:

View File

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