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

139 lines
2.9 KiB
YAML
Raw Normal View History

2023-05-11 20:02:41 +00:00
- id: work-work-start-warning-bathroom
alias: '[Work] Work start warning'
2021-09-22 20:55:51 +00:00
trigger:
- platform: time
at: '9:30'
2021-09-22 20:55:51 +00:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
data:
brightness_pct: 100
2021-12-06 23:07:47 +00:00
entity_id: light.bathroom_color_zha_group_0x0007
- service: light.turn_on
data:
2021-09-22 20:55:51 +00:00
hs_color:
- 120
- 100
entity_id: light.bathroom_color_zha_group_0x0007
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 30
- 100
transition: 900
entity_id: light.bathroom_color_zha_group_0x0007
2021-10-05 21:53:19 +00:00
- delay:
seconds: 900
2021-09-22 20:55:51 +00:00
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 360
- 100
2021-09-28 22:52:38 +00:00
transition: 600
entity_id: light.bathroom_color_zha_group_0x0007
2021-10-05 21:53:19 +00:00
- delay:
seconds: 600
2021-09-28 22:52:38 +00:00
- service: light.turn_on
data:
brightness_pct: 100
hs_color:
- 285
- 100
2021-09-22 20:55:51 +00:00
entity_id: light.bathroom_color_zha_group_0x0007
- delay:
2021-09-28 22:52:38 +00:00
minutes: 5
2021-09-22 20:55:51 +00:00
- service: light.turn_off
entity_id: light.bathroom_color_zha_group_0x0007
mode: single
2022-08-19 18:39:11 +00:00
- id: work-daily-off
alias: '[Work] Daily notification off'
2020-11-04 00:56:36 +00:00
trigger:
- platform: time
at: '10:00'
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
2022-08-19 18:39:11 +00:00
- id: work-finished
2021-06-15 07:32:51 +00:00
alias: '[Work] Notify when finished work'
trigger:
2021-12-06 23:07:47 +00:00
- platform: state
entity_id: device_tracker.amdn4684
for:
hours: 8
to: home
2021-06-15 07:32:51 +00:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
2021-10-24 18:58:06 +00:00
- service: script.vacuum_today
2021-06-15 07:32:51 +00:00
- 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
2022-04-19 22:14:08 +00:00
entity_id: light.office_light_up
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
2022-04-19 22:14:08 +00:00
entity_id: light.office_light_up
2021-07-06 21:55:15 +00:00
- delay:
minutes: 5
- service: light.turn_off
2022-04-19 22:14:08 +00:00
entity_id: light.office_light_up
2020-11-04 00:56:36 +00:00
mode: single
2021-06-15 07:32:51 +00:00
2022-08-19 18:29:03 +00:00
- id: work-cool-down-home
alias: '[Work] Cool down home after leaving work'
mode: single
trigger:
- platform: zone
entity_id: person.przemek
zone: zone.work
event: leave
condition:
- condition: or
conditions:
- condition: numeric_state
2023-06-06 11:25:12 +00:00
entity_id: sensor.sensor.office_sensor_temperature
2022-08-19 18:29:03 +00:00
above: "23"
action:
- service: script.ac_on
2022-08-19 18:29:03 +00:00
- service: climate.set_temperature
data:
2023-01-13 23:17:38 +00:00
temperature: 23
2022-08-19 18:29:03 +00:00
hvac_mode: cool
target:
entity_id: climate.ac