Wakeup lights fading in is now a variable

This commit is contained in:
2023-05-01 16:42:15 -04:00
parent ab991a19f5
commit 2897a15396
4 changed files with 84 additions and 10 deletions

View File

@ -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