fix target temp
This commit is contained in:
@@ -88,7 +88,7 @@ blueprint:
|
||||
- domain: alarm_control_panel
|
||||
away_temperature:
|
||||
name: Abwesenheitstemperatur
|
||||
description: Temperatur die eingestellt wird, wenn der Alarm im Abwesendmodus ist (Default = 16°C)
|
||||
description: Temperatur die eingestellt wird, wenn der Alarm im Abwesendmodus ist (Default = 18°C)
|
||||
default: 18
|
||||
selector:
|
||||
number:
|
||||
@@ -139,10 +139,12 @@ variables:
|
||||
{% endfor %}
|
||||
{{ ns.current_temperature }}
|
||||
target_temperature: >
|
||||
{% if alarm_control_panel is not none and alarm_control_panel is defined and is_state(alarm_control_panel, 'armed_away') %}
|
||||
{% if alarm_control_panel and is_state(alarm_control_panel, 'armed_away') %}
|
||||
{{ away_temperature }}
|
||||
{% elif scheduled_temperature is not none %}
|
||||
{{ scheduled_temperature }}
|
||||
{% else %}
|
||||
{{ scheduled_temperature | default(away_temperature) }}
|
||||
{{ away_temperature }}
|
||||
{% endif %}
|
||||
|
||||
triggers:
|
||||
|
||||
Reference in New Issue
Block a user