Should fix #115
This commit is contained in:
@ -869,7 +869,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
# Lighting
|
# Lighting
|
||||||
- variables:
|
- variables:
|
||||||
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}"
|
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') | int }}"
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.basement_occupied
|
entity_id: binary_sensor.basement_occupied
|
||||||
@ -914,7 +914,7 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: light.emma_bedroom_light
|
entity_id: light.emma_bedroom_light
|
||||||
data:
|
data:
|
||||||
brightness_pct: "{{ brightness }}"
|
brightness_pct: "{{ brightness|default(40) }}"
|
||||||
transition: >
|
transition: >
|
||||||
{% from 'time.jinja' import timer_duration %}
|
{% from 'time.jinja' import timer_duration %}
|
||||||
{% if is_state('binary_sensor.early_night_mode','on') %}
|
{% if is_state('binary_sensor.early_night_mode','on') %}
|
||||||
|
Reference in New Issue
Block a user