I created a template sensor in Yaml (although now it’s easier to do with helper)
It was like this :
“{{ state_attr(‘weather.home_gw’,‘forecast’).0.wind_speed }}”
It gave me the wind speed for tomorrow as a sensor. K had the same for tomorrow’s temperature. It was pretty convinent to have it. But now this doesn’t work anymore ? How can I create a template sensor now that shows me the value of tomorrow’s wind or temperature. ? Is it even possible with new changes ?
I had this as a TTS to give me the forecast for tomorrow in an evening report. Its not working now of course, how do I accomplish the same using the Weather: Get Forecasts service?
Tomorrow, it is expected to be {{ state_attr("weather.home_2", "forecast")
[1].temperature }} and {{ state_attr("weather.home_2", "forecast")
[1].condition }}
- service: weather.get_forecasts
target:
entity_id: "weather.home_2"
data:
type: daily
response_variable: response
- service: script.simple_tts
data:
who: media_player.chromecast9871
message: >-
Good morning. Currently outside it is {{ states("weather.home_2")}} and {{ states("sensor.outside_temp_temperature")}} degrees. It is
expected to be a high of {{ response["weather.home_2"].forecast[0].temperature }} degrees and {{ response["weather.home_2"].forecast[0].condition }}.
Tomorrow, it is expected to be {{ response["weather.home_2"].forecast[1].temperature }} and {{ response["weather.home_2"].forecast[1].condition }}.
Hi! I would like to create an automation where every evening I get a notification if the temperature is forecasted to fall below a specific value (for example below the freezing point). Could someone please help me get started? I tried testing the script posted above in the template editor but I get an error stating: “None has no element 1”
I used this: “{{ state_attr(“weather.home.”, “forecast”) [1].temperature }}”