1
0

Add notifcation cube for work

This commit is contained in:
Przemek Grondek 2023-08-27 23:50:04 +02:00
parent 153108ac82
commit 16150b31eb
2 changed files with 146 additions and 42 deletions

View File

@ -55,6 +55,149 @@
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: time
at: '10:30'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
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: time
at: '10:45'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
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: time
at: '10:55'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
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: time
at: '11:00'
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: time
at: '10:30'
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_daily_off
alias: '[Work] Daily notification off'
trigger:
@ -70,48 +213,7 @@
- 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
entity_id: light.notification_cube_light
mode: single
- id: work_cool_down_home

View File

@ -80,6 +80,7 @@ good_night:
- light.balcony
- light.table_lamp_lights
- light.lego_bookcase_light
- light.notification_cube_light
mode: single
icon: mdi:weather-night
@ -228,6 +229,7 @@ leave_home:
- light.balcony
- light.table_lamp_lights
- light.lego_bookcase_light
- light.notification_cube_light
mode: single
icon: mdi:home-export-outline