Hello, I’m a bit new to templates. I’m trying to achieve Alexa Announce using notify.alexa_media service, but with some state attributes.
For example, I can get this working easily:
message: It is currently {{states.weather.thermostat.state}} and {{state_attr(‘weather.thermostat’, ‘temperature’)}}
But I would also like to include the high/low forecast for today, which appears in state attributes, but it appears with the rest of the week’s forecast like below. How do I call those state attributes that have many with the same title? In the below example, I’d like to call the first set of temperature: and templow:
temperature: -4
humidity: 56
pressure: 1030
wind_bearing: 335
wind_speed: 7
visibility: 16
attribution: ‘Ecobee weather provided by FI:CYND at 2020-11-24 16:02:40 UTC’
forecast:
- condition: sunny
temperature: -2
templow: -8
wind_bearing: 335
wind_speed: 7
datetime: ‘2020-11-24T16:19:45.547530+00:00’- condition: snowy
temperature: 3
templow: -5
wind_bearing: 100
wind_speed: 6
datetime: ‘2020-11-25T16:19:45.547530+00:00’- condition: rainy
temperature: 5
templow: 1
wind_bearing: 94
wind_speed: 6
datetime: ‘2020-11-26T16:19:45.547530+00:00’- condition: rainy
temperature: 5
templow: 2
wind_bearing: 217
wind_speed: 3
datetime: ‘2020-11-27T16:19:45.547530+00:00’- condition: rainy
temperature: 5
templow: 1
wind_bearing: 259
wind_speed: 7
datetime: ‘2020-11-28T16:19:45.547530+00:00’
friendly_name: Thermostat
Thanks for bearing with me.