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

138 lines
2.7 KiB
YAML
Raw Normal View History

2021-09-22 20:55:51 +00:00
- id: daily-warning-bathroom
alias: '[Work] Daily Warning'
trigger:
- platform: time
at: '8:30'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 120
- 100
entity_id: light.bathroom_color_zha_group_0x0007
- delay:
minutes: 15
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 30
- 100
transition: 900
entity_id: light.bathroom_color_zha_group_0x0007
- delay:
minutes: 15
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 360
- 100
transition: 900
entity_id: light.bathroom_color_zha_group_0x0007
- delay:
minutes: 15
- service: light.turn_off
entity_id: light.bathroom_color_zha_group_0x0007
mode: single
2020-11-04 00:56:36 +00:00
- id: daily
alias: '[Work] Daily notification'
2020-11-04 00:56:36 +00:00
trigger:
- platform: time
2021-06-15 07:32:25 +00:00
at: '8:55'
2020-11-16 00:19:53 +00:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
2020-11-04 00:56:36 +00:00
action:
- service: light.turn_on
data:
2021-07-06 21:55:15 +00:00
brightness_pct: 100
rgb_color:
- 0
- 0
- 255
2021-07-06 21:55:15 +00:00
entity_id: light.desk_lightbar_ambilight
2020-11-04 00:56:36 +00:00
- service: light.turn_on
data:
flash: long
2021-07-06 21:55:15 +00:00
brightness_pct: 100
2020-11-04 00:56:36 +00:00
rgb_color:
- 0
- 0
- 255
entity_id: light.desk_lightbar_ambilight
2020-11-04 00:56:36 +00:00
mode: single
- id: daily_off
alias: '[Work] Daily notification off'
2020-11-04 00:56:36 +00:00
trigger:
- platform: time
2021-06-15 07:32:25 +00:00
at: '9:10'
condition:
2020-11-16 00:19:53 +00:00
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
2020-11-04 00:56:36 +00:00
action:
- service: light.turn_off
2021-07-06 21:55:15 +00:00
entity_id: light.desk_lightbar_ambilight
2021-06-15 07:32:51 +00:00
mode: single
2020-11-16 00:19:53 +00:00
2021-06-15 07:32:51 +00:00
- 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:
2021-07-06 21:55:15 +00:00
brightness_pct: 100
2021-06-15 07:32:51 +00:00
rgb_color:
- 0
- 200
- 83
2021-07-06 21:55:15 +00:00
entity_id: light.desk_lightbar_ambilight
2021-06-15 07:32:51 +00:00
- service: light.turn_on
data:
flash: long
2021-07-06 21:55:15 +00:00
brightness_pct: 100
2021-06-15 07:32:51 +00:00
rgb_color:
- 0
- 200
- 83
2021-07-06 21:55:15 +00:00
entity_id: light.desk_lightbar_ambilight
- delay:
minutes: 5
- service: light.turn_off
entity_id: light.desk_lightbar_ambilight
2020-11-04 00:56:36 +00:00
mode: single
2021-06-15 07:32:51 +00:00