Tweaks to temperature sensor usage
This commit is contained in:
@ -169,7 +169,7 @@ sensor:
|
|||||||
'Later Today ',
|
'Later Today ',
|
||||||
'For the rest of the day '
|
'For the rest of the day '
|
||||||
] | random }}
|
] | random }}
|
||||||
expect a high of {{ state_attr('sensor.current_forecast','high_temp') }}
|
expect a high of {{ states('sensor.todays_high_temp') }}
|
||||||
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
|
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
|
||||||
{{ [
|
{{ [
|
||||||
'and sunny. ',
|
'and sunny. ',
|
||||||
@ -264,7 +264,7 @@ sensor:
|
|||||||
'Later tonight expect a low of ',
|
'Later tonight expect a low of ',
|
||||||
'Overnight expect a low of '
|
'Overnight expect a low of '
|
||||||
] | random }}
|
] | random }}
|
||||||
{{ state_attr('sensor.current_forecast','overnight_low') }} degrees.
|
{{ states('sensor.tonights_low_temp') }} degrees.
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||||
{%- macro cleanup(data) -%}
|
{%- macro cleanup(data) -%}
|
||||||
@ -518,7 +518,7 @@ sensor:
|
|||||||
'Later Today ',
|
'Later Today ',
|
||||||
'For the rest of the day '
|
'For the rest of the day '
|
||||||
] | random }}
|
] | random }}
|
||||||
expect a high of {{ state_attr('sensor.current_forecast','high_temp') }}
|
expect a high of {{ states('sensor.todays_high_temp') }}
|
||||||
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
|
{%- if states('sensor.current_forecast') == 'sunny' and is_state('binary_sensor.night','off')%}
|
||||||
{{ [
|
{{ [
|
||||||
'and sunny. ',
|
'and sunny. ',
|
||||||
@ -611,13 +611,13 @@ sensor:
|
|||||||
'Later tonight expect a low of ',
|
'Later tonight expect a low of ',
|
||||||
'Overnight expect a low of '
|
'Overnight expect a low of '
|
||||||
] | random }}
|
] | random }}
|
||||||
{{ state_attr('sensor.current_forecast','overnight_low') }} degrees.
|
{{ states('sensor.tonights_low_temp') }} degrees.
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ [
|
{{ [
|
||||||
'Tonight expect a low of ',
|
'Tonight expect a low of ',
|
||||||
'Overnight expect a low of '
|
'Overnight expect a low of '
|
||||||
] | random }}
|
] | random }}
|
||||||
{{ state_attr('sensor.current_forecast','overnight_low') }} degrees.
|
{{ states('sensor.tonights_low_temp') }} degrees.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Today the high temperature will be {{ state_attr('sensor.current_forecast','high_temp') }} degrees.
|
Today the high temperature will be {{ states('sensor.todays_high_temp') }} degrees.
|
||||||
{{ states('sensor.clothing_forecast_detail') }}
|
{{ states('sensor.clothing_forecast_detail') }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user