1
0
ansible-home-assistant/automations/work-daily.yaml
2021-05-24 20:26:03 +02:00

63 lines
1.2 KiB
YAML

- id: daily
alias: '[Work] Daily notification'
trigger:
- platform: time
at: '10: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: '11:25'
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