Basic handling of the new stairwell LED strip
This commit is contained in:
@ -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:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.early_night_mode
|
||||
state: 'off'
|
||||
sequence:
|
||||
- stop: "This scene does nothing during daytime"
|
||||
state: 'on'
|
||||
- choose:
|
||||
- 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
|
||||
|
@ -198,6 +198,17 @@ automation:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kallen_school_today
|
||||
state: 'on'
|
||||
- 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: 150
|
||||
- service: script.security_disarm
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
@ -279,9 +290,20 @@ automation:
|
||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||
state: disarmed
|
||||
- condition: time
|
||||
after: '04:30'
|
||||
after: '04:15'
|
||||
before: '13:30'
|
||||
then:
|
||||
- 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: 50
|
||||
- service: script.security_arm_home
|
||||
|
||||
- id: c7927c59-e0fe-48b9-b308-dd90fb774920
|
||||
@ -331,6 +353,7 @@ automation:
|
||||
- light.tina_lamp_side
|
||||
- light.tina_lamp_top
|
||||
- light.tina_desk_strip
|
||||
- light.stairwell_led_strip
|
||||
- delay:
|
||||
seconds: 1
|
||||
- service: switch.turn_off
|
||||
@ -344,6 +367,7 @@ automation:
|
||||
- light.living_room_lights
|
||||
- light.tina_lamp
|
||||
- light.tina_desk_strip
|
||||
- light.stairwell_led_strip
|
||||
data:
|
||||
color_name: red
|
||||
brightness_pct: 100
|
||||
|
@ -246,6 +246,13 @@ going_upstairs:
|
||||
- input_select.upstairs_hallway_scenes
|
||||
- input_select.living_room_scenes
|
||||
alias: Set scenes
|
||||
- service: light.turn_on
|
||||
data:
|
||||
kelvin: 2000
|
||||
brightness: 150
|
||||
target:
|
||||
entity_id: light.stairwell_led_strip
|
||||
alias: Turn up the stairwell LED strip
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.night_mode
|
||||
alias: Turn on Night Mode
|
||||
|
Reference in New Issue
Block a user