Fade in kids' bedroom lights for less setting eyes on fire
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: 58254e07de...a0432e373b
@@ -303,22 +303,28 @@ script:
|
|||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
# Lighting
|
# Lighting
|
||||||
|
- variables:
|
||||||
|
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}"
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.emma_bedroom_scenes
|
entity_id: switch.adaptive_lighting_emma_bedroom
|
||||||
|
- delay:
|
||||||
|
seconds: 1
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.emma_bedroom_light
|
||||||
data:
|
data:
|
||||||
option: Nightlight
|
brightness_pct: "{{ brightness }}"
|
||||||
|
transition: 300
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.hallway_overhead
|
entity_id: light.hallway_overhead
|
||||||
- delay:
|
|
||||||
seconds: 2
|
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@@ -331,14 +337,17 @@ script:
|
|||||||
entity_id: binary_sensor.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_emma_bedroom
|
||||||
|
- delay:
|
||||||
|
seconds: 1
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.emma_bedroom_light
|
entity_id: light.emma_bedroom_light
|
||||||
- service: input_select.select_option
|
|
||||||
target:
|
|
||||||
entity_id: input_select.emma_bedroom_scenes
|
|
||||||
data:
|
data:
|
||||||
option: Adaptive
|
brightness_pct: "{{ brightness }}"
|
||||||
|
transition: 60
|
||||||
# Climate/White Noise
|
# Climate/White Noise
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 5
|
minutes: 5
|
||||||
@@ -353,6 +362,11 @@ script:
|
|||||||
- service: script.turn_on
|
- service: script.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: script.emma_aircon_shutoff
|
entity_id: script.emma_aircon_shutoff
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.emma_bedroom_scenes
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
|
||||||
emma_aircon_shutoff:
|
emma_aircon_shutoff:
|
||||||
alias: 'Emma Air Conditioner Shutoff'
|
alias: 'Emma Air Conditioner Shutoff'
|
||||||
|
|||||||
Reference in New Issue
Block a user