Fix invalid template
This commit is contained in:
@ -314,7 +314,7 @@ script:
|
|||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{% if state_attr('sensor.current_forecast','high_temp') >= states('input_number.hot_day_threshold') %}
|
{% if state_attr('sensor.current_forecast','high_temp') | int >= states('input_number.hot_day_threshold') | int %}
|
||||||
true
|
true
|
||||||
{% else %}
|
{% else %}
|
||||||
false
|
false
|
||||||
@ -330,7 +330,7 @@ script:
|
|||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{% if state_attr('sensor.current_forecast','high_temp') >= states('input_number.cold_day_threshold') %}
|
{% if state_attr('sensor.current_forecast','high_temp') | int <= states('input_number.cold_day_threshold') | int %}
|
||||||
true
|
true
|
||||||
{% else %}
|
{% else %}
|
||||||
false
|
false
|
||||||
|
Reference in New Issue
Block a user