1
0

Update bathroom automations

This commit is contained in:
Przemek Grondek 2021-09-22 22:54:07 +02:00
parent de422347bf
commit 89ed300406
2 changed files with 40 additions and 14 deletions

View File

@ -19,6 +19,10 @@
entity_id: light.bathroom_mirror_lights
- service: light.turn_off
entity_id: light.shower_lights
- service: light.turn_off
entity_id: light.bathroom_color_zha_group_0x0007
- service: media_player.turn_off
entity_id: media_player.bathroom_speaker
- conditions:
- condition: state
entity_id: light.bathroom_lights
@ -27,22 +31,40 @@
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
entity_id: input_select.home_mode
state: Day
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness_pct: 100
kelvin: 2000
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness_pct: 100
kelvin: 2000
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness_pct: 100
kelvin: 3200
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
entity_id: input_select.home_mode
state: Night
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
entity_id: light.bathroom_color_zha_group_0x0007
data:
brightness_pct: 100
kelvin: 3200
brightness_pct: 5
hs_color:
- 360
- 100
mode: single

View File

@ -41,10 +41,12 @@
state: Night
sequence:
- service: light.turn_on
entity_id: light.bathroom_lights
entity_id: light.bathroom_color_zha_group_0x0007
data:
brightness_pct: 5
kelvin: 2700
hs_color:
- 360
- 100
mode: single
- id: bathroom-lights-off
@ -77,3 +79,5 @@
entity_id: light.bathroom_mirror_lights
- service: light.turn_off
entity_id: light.shower_lights
- service: light.turn_off
entity_id: light.bathroom_color_zha_group_0x0007