207 lines
4.3 KiB
YAML
207 lines
4.3 KiB
YAML
- id: work_work_start_warning_bathroom
|
|
alias: '[Work] Work start warning'
|
|
trigger:
|
|
- platform: time
|
|
at: '9:30'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
entity_id: light.bathroom_color_zha_group_0x0007
|
|
- service: light.turn_on
|
|
data:
|
|
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
|
|
- delay:
|
|
seconds: 900
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
hs_color:
|
|
- 360
|
|
- 100
|
|
transition: 600
|
|
entity_id: light.bathroom_color_zha_group_0x0007
|
|
- delay:
|
|
seconds: 600
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
hs_color:
|
|
- 285
|
|
- 100
|
|
entity_id: light.bathroom_color_zha_group_0x0007
|
|
- delay:
|
|
minutes: 5
|
|
- service: light.turn_off
|
|
entity_id: light.bathroom_color_zha_group_0x0007
|
|
mode: single
|
|
|
|
- id: work_start
|
|
alias: '[Work] Start'
|
|
trigger:
|
|
- platform: time
|
|
at: '10:00'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: green
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
mode: single
|
|
|
|
- id: work_daily_minus_30m
|
|
alias: '[Work] Daily -30m'
|
|
trigger:
|
|
- platform: calendar
|
|
event: start
|
|
offset: '-0:30:0'
|
|
entity_id: calendar.automations_daily
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: yellow
|
|
transition: 2
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
|
|
- id: work_daily_minus_15m
|
|
alias: '[Work] Daily -15m'
|
|
trigger:
|
|
- platform: calendar
|
|
event: start
|
|
offset: '-0:15:0'
|
|
entity_id: calendar.automations_daily
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: orange
|
|
transition: 2
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
|
|
- id: work_daily_minus_5m
|
|
alias: '[Work] Daily -5m'
|
|
trigger:
|
|
- platform: calendar
|
|
event: start
|
|
offset: '-0:5:0'
|
|
entity_id: calendar.automations_daily
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: purple
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
|
|
- id: work_daily_start
|
|
alias: '[Work] Daily'
|
|
trigger:
|
|
- platform: calendar
|
|
event: start
|
|
entity_id: calendar.automations_daily
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: red
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
|
|
- id: work_dailY_end
|
|
alias: '[Work] Daily end'
|
|
trigger:
|
|
- platform: calendar
|
|
event: end
|
|
entity_id: calendar.automations_daily
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
color_name: green
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
mode: single
|
|
|
|
- id: work_end
|
|
alias: '[Work] End'
|
|
trigger:
|
|
- platform: time
|
|
at: '18:00'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.notification_cube_light
|
|
mode: single
|
|
|
|
- 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
|
|
entity_id: sensor.office_sensor_temperature
|
|
above: "23"
|
|
action:
|
|
- service: script.ac_on
|
|
- service: climate.set_temperature
|
|
data:
|
|
temperature: 23
|
|
hvac_mode: cool
|
|
target:
|
|
entity_id: climate.ac
|