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