139 lines
2.9 KiB
YAML
139 lines
2.9 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-daily-off
|
|
alias: '[Work] Daily notification off'
|
|
trigger:
|
|
- platform: time
|
|
at: '10:00'
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id: light.desk_lightbar_ambilight
|
|
mode: single
|
|
|
|
- id: work-finished
|
|
alias: '[Work] Notify when finished work'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: device_tracker.amdn4684
|
|
for:
|
|
hours: 8
|
|
to: home
|
|
condition:
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
action:
|
|
- service: script.vacuum_today
|
|
- service: light.turn_on
|
|
data:
|
|
brightness_pct: 100
|
|
rgb_color:
|
|
- 0
|
|
- 200
|
|
- 83
|
|
entity_id: light.office_light_up
|
|
- service: light.turn_on
|
|
data:
|
|
flash: long
|
|
brightness_pct: 100
|
|
rgb_color:
|
|
- 0
|
|
- 200
|
|
- 83
|
|
entity_id: light.office_light_up
|
|
- delay:
|
|
minutes: 5
|
|
- service: light.turn_off
|
|
entity_id: light.office_light_up
|
|
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.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
|