Fix invalid template
This commit is contained in:
@ -314,7 +314,7 @@ script:
|
||||
- if:
|
||||
- condition: 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
|
||||
{% else %}
|
||||
false
|
||||
@ -330,7 +330,7 @@ script:
|
||||
- if:
|
||||
- condition: 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
|
||||
{% else %}
|
||||
false
|
||||
|
Reference in New Issue
Block a user