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

46 lines
933 B
YAML

- id: work_finished
alias: '[Work] Notify when finished work'
trigger:
- platform: state
entity_id: binary_sensor.luxoft
to: 'on'
for:
hours: 8
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
- id: work_start
alias: '[Work] Turn on laptop on deadline start'
trigger:
- platform: time
at: '10:55'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: switch.turn_on
entity_id: switch.luxoft