98 lines
1.8 KiB
YAML
98 lines
1.8 KiB
YAML
- id: daily
|
|
alias: '[Work] Daily notification'
|
|
trigger:
|
|
- platform: time
|
|
at: '8:55'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness: 200
|
|
rgb_color:
|
|
- 0
|
|
- 0
|
|
- 255
|
|
entity_id: light.computer_lights
|
|
- service: light.turn_on
|
|
data:
|
|
flash: long
|
|
brightness: 200
|
|
rgb_color:
|
|
- 0
|
|
- 0
|
|
- 255
|
|
entity_id: light.computer_lights
|
|
mode: single
|
|
|
|
- id: daily_off
|
|
alias: '[Work] Daily notification off'
|
|
trigger:
|
|
- platform: time
|
|
at: '9:10'
|
|
condition:
|
|
- condition: state
|
|
entity_id: light.computer_left
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: light.computer_right
|
|
state: 'on'
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
kelvin: 3200
|
|
entity_id: light.computer_lights
|
|
- delay: 5
|
|
- service: light.turn_off
|
|
entity_id: light.computer_lights
|
|
mode: single
|
|
|
|
- id: work_finished
|
|
alias: '[Work] Notify when finished work'
|
|
trigger:
|
|
- platform: time
|
|
at: '17:00'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: vacuum.start
|
|
entity_id: vacuum.robot_vacuum
|
|
- service: light.turn_on
|
|
data:
|
|
brightness: 200
|
|
rgb_color:
|
|
- 0
|
|
- 200
|
|
- 83
|
|
entity_id: light.computer_lights
|
|
- service: light.turn_on
|
|
data:
|
|
flash: long
|
|
brightness: 200
|
|
rgb_color:
|
|
- 0
|
|
- 200
|
|
- 83
|
|
entity_id: light.computer_lights
|
|
mode: single
|
|
|