1
0
ansible-home-assistant/automations/work-finished.yaml

46 lines
933 B
YAML
Raw Normal View History

- id: work_finished
alias: '[Work] Notify when finished work'
trigger:
- platform: state
entity_id: binary_sensor.luxoft
to: 'on'
for:
hours: 8
action:
2021-02-15 22:09:43 +00:00
- service: vacuum.start
entity_id: vacuum.robot_vacuum
- service: light.turn_on
data:
brightness: 200
rgb_color:
- 0
2020-11-21 03:28:38 +00:00
- 200
- 83
entity_id: light.computer_lights
- service: light.turn_on
data:
flash: long
brightness: 200
rgb_color:
- 0
2020-11-21 03:28:38 +00:00
- 200
- 83
entity_id: light.computer_lights
mode: single
2021-02-15 22:25:38 +00:00
- 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