correct hotwatertemp in outdoortemp
This commit is contained in:
@@ -1788,7 +1788,7 @@ action:
|
||||
##### NSPanel boot init - Outdoor Temp #####
|
||||
- variables:
|
||||
outdoor_temp: >-
|
||||
{%- if outdoortemp is match "sensor." and states(hotwatertemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- if outdoortemp is match "sensor." and states(outdoortemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- elif weather == "Default" and state_attr(ha_weather, "temperature") != None -%} {{state_attr(ha_weather,"temperature") | round(0)}}
|
||||
{%- elif weather == "AccuWeather" and state_attr(accuweather_value, "temperature") != None -%} {{state_attr(accuweather_value,"temperature") | round(0)}}
|
||||
{%- else -%} 0
|
||||
@@ -3130,7 +3130,7 @@ action:
|
||||
##### NSPanel Outdoor Temp #####
|
||||
- variables:
|
||||
outdoor_temp: >-
|
||||
{%- if outdoortemp is match "sensor." and states(hotwatertemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- if outdoortemp is match "sensor." and states(outdoortemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- elif weather == "Default" and state_attr(ha_weather, "temperature") != None -%} {{state_attr(ha_weather,"temperature") | round(0)}}
|
||||
{%- elif weather == "AccuWeather" and state_attr(accuweather_value, "temperature") != None -%} {{state_attr(accuweather_value,"temperature") | round(0)}}
|
||||
{%- else -%} 0
|
||||
@@ -4471,7 +4471,7 @@ action:
|
||||
- variables:
|
||||
hvac_mode: "{{ states(climate) }}"
|
||||
outdoor_temp: >-
|
||||
{%- if outdoortemp is match "sensor." and states(hotwatertemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- if outdoortemp is match "sensor." and states(outdoortemp).state != "unavailable" -%} {{ states(outdoortemp) |round(0) }}
|
||||
{%- elif weather == "Default" and state_attr(ha_weather, "temperature") != None -%} {{state_attr(ha_weather,"temperature") | round(0)}}
|
||||
{%- elif weather == "AccuWeather" and state_attr(accuweather_value, "temperature") != None -%} {{state_attr(accuweather_value,"temperature") | round(0)}}
|
||||
{%- else -%} 0
|
||||
|
||||
Reference in New Issue
Block a user