Wakeup lights fading in is now a variable
This commit is contained in:
@ -321,7 +321,9 @@ script:
|
||||
entity_id: light.emma_bedroom_light
|
||||
data:
|
||||
brightness_pct: "{{ brightness }}"
|
||||
transition: 300
|
||||
transition: >
|
||||
{% from 'time.jinja' import timer_duration %}
|
||||
{{ timer_duration('input_number.wakeup_lights_fade_night') }}
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.hallway_overhead
|
||||
@ -347,10 +349,20 @@ script:
|
||||
entity_id: light.emma_bedroom_light
|
||||
data:
|
||||
brightness_pct: "{{ brightness }}"
|
||||
transition: 60
|
||||
transition: >
|
||||
{% from 'time.jinja' import timer_duration %}
|
||||
{{ timer_duration('input_number.wakeup_lights_fade_day') }}
|
||||
# Climate/White Noise
|
||||
- delay:
|
||||
minutes: 5
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.early_night_mode
|
||||
state: 'off'
|
||||
then:
|
||||
- delay:
|
||||
minutes: 5
|
||||
else:
|
||||
- delay:
|
||||
minutes: "{{ states('input_boolean.wakeup_lights_fade_night') }}"
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_emma_bedroom
|
||||
|
Reference in New Issue
Block a user