File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3636 In {{ states('sensor.inside_temperature') | float | round(1) }}°C
3737 {%- endif %}
3838 2 : >
39- Out {{ hourly["weather.openweathermap_hourly"].forecast[0].temperature | round(0) | default('NA') }}°C
39+ {%- if hourly["weather.openweathermap"].forecast[0].temperature not in ['unavailable', 'unknown'] -%}
40+ {%- set temp = hourly["weather.openweathermap"].forecast[0].temperature | round(0) | default('NA') %}
41+ {%- else %}
42+ {%- set temp = "NA" %}
43+ {%- endif %}
44+ {%- if temp | string | length > 2 %}
45+ Out{{ temp }}°C
46+ {% else %}
47+ Out {{ temp }}°C
48+ {%- endif %}
4049
4150# Note that for 1: Inside temperature, it checks to see if it is available, otherwise it is blank - and the clock will skip over blanks!
You can’t perform that action at this time.
0 commit comments