Fix office lights at night
This commit is contained in:
parent
ace89c2420
commit
3b3a12f415
1 changed files with 31 additions and 12 deletions
|
@ -27,21 +27,40 @@ office_lights_on:
|
|||
- 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.office
|
||||
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.office
|
||||
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.office
|
||||
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.office
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
brightness_pct: 40
|
||||
hs_color:
|
||||
- 360
|
||||
- 100
|
||||
target:
|
||||
entity_id: light.office
|
||||
|
|
Loading…
Reference in a new issue