Basic handling of the new stairwell LED strip

This commit is contained in:
2023-08-01 00:35:44 -04:00
parent 02991d9837
commit fbfbecfeac
3 changed files with 69 additions and 7 deletions

View File

@ -1161,6 +1161,22 @@ script:
adaptive_on_second_floor:
alias: 'Adaptive on Second Floor'
sequence:
- if:
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'on'
then:
- service: light.turn_on
target:
entity_id: light.stairwell_led_strip
data:
color_temp_kelvin: 2000
brightness: >
{% if is_state('input_boolean.give_me_darkness','on') %}
50
{% else %}
150
{% endif %}
- if:
- condition: state
entity_id: light.hallway_overhead
@ -1333,6 +1349,12 @@ script:
bright_on_second_floor:
alias: 'Bright on Second Floor'
sequence:
- service: light.turn_on
target:
entity_id: light.stairwell_led_strip
data:
color_temp_kelvin: 2000
brightness: 255
- service: light.turn_on
target:
entity_id:
@ -1540,18 +1562,21 @@ script:
evening_on_second_floor:
alias: 'Evening on Second Floor'
sequence:
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'on'
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'off'
sequence:
- stop: "This scene does nothing during daytime"
- conditions:
- condition: state
entity_id: input_boolean.give_me_darkness
state: 'on'
sequence:
- service: light.turn_on
target:
entity_id: light.stairwell_led_strip
data:
color_temp_kelvin: 2000
brightness: 50
- service: input_select.select_option
target:
entity_id:
@ -1606,6 +1631,12 @@ script:
entity_id: input_boolean.give_me_darkness
state: 'off'
sequence:
- service: light.turn_on
target:
entity_id: light.stairwell_led_strip
data:
color_temp_kelvin: 2000
brightness: 150
- service: input_select.select_option
target:
entity_id: input_select.upstairs_hallway_scenes