diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index 4162b4c..30ff25e 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -169,7 +169,7 @@ sensor: 'Later Today ', 'For the rest of the day ' ] | 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')%} {{ [ 'and sunny. ', @@ -264,7 +264,7 @@ sensor: 'Later tonight expect a low of ', 'Overnight expect a low of ' ] | random }} - {{ state_attr('sensor.current_forecast','overnight_low') }} degrees. + {{ states('sensor.tonights_low_temp') }} degrees. {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} {%- macro cleanup(data) -%} @@ -518,7 +518,7 @@ sensor: 'Later Today ', 'For the rest of the day ' ] | 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')%} {{ [ 'and sunny. ', @@ -611,13 +611,13 @@ sensor: 'Later tonight expect a low of ', 'Overnight expect a low of ' ] | random }} - {{ state_attr('sensor.current_forecast','overnight_low') }} degrees. + {{ states('sensor.tonights_low_temp') }} degrees. {%- else -%} {{ [ 'Tonight expect a low of ', 'Overnight expect a low of ' ] | random }} - {{ state_attr('sensor.current_forecast','overnight_low') }} degrees. + {{ states('sensor.tonights_low_temp') }} degrees. {% endif %} {%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} diff --git a/templates/speech/kallen_morning_briefing.yaml b/templates/speech/kallen_morning_briefing.yaml index 130fd13..3167c4b 100644 --- a/templates/speech/kallen_morning_briefing.yaml +++ b/templates/speech/kallen_morning_briefing.yaml @@ -35,7 +35,7 @@ {% endif %}

- 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') }}