Hello all,
I have what I believe is a pretty cut and dry question about querying for a specific value when multiple are presented by a sensor.
I am attempting to pull information out of a forecast by using the states page along with the templating tab in the developer. Could someone show me an example of how to get 6-26-2022s temp low with a templating statement.
For instance to get the temperature, I would use:
{{states.weather.home.attributes.temperature}}
temperature: 87
humidity: 49
pressure: 30.03
wind_bearing: 210.7
wind_speed: 3
forecast:
- condition: partlycloudy
precipitation: 0.43
temperature: 100
templow: 76
datetime: '2022-06-26T16:00:00+00:00'
wind_bearing: 248.5
wind_speed: 16.2
- condition: cloudy
precipitation: 0.06
temperature: 90
templow: 74
datetime: '2022-06-27T16:00:00+00:00'
wind_bearing: 19.2
wind_speed: 13
- condition: cloudy
precipitation: 0
temperature: 88
templow: 66
datetime: '2022-06-28T16:00:00+00:00'
wind_bearing: 37.9
wind_speed: 10.4
- condition: sunny
precipitation: 0
temperature: 92
templow: 73
datetime: '2022-06-29T16:00:00+00:00'
wind_bearing: 262.7
wind_speed: 7.6
- condition: sunny
precipitation: 0
temperature: 96
templow: 72
datetime: '2022-06-30T16:00:00+00:00'
wind_bearing: 179
wind_speed: 9.4
attribution: >-
Weather forecast from met.no, delivered by the Norwegian Meteorological
Institute.
friendly_name: Home
The entity is weather.home in this instance if it matters
But how do I get the 6-26-22 templow with the same concept (it’s a level “deeper” and I don’t really know how to get it. Thank you all so much for your guidance!!-- And really, I guess what I mean since this date will change as days go on, how can I get the first “templow” in the list each time. I don’t really want to query an exact date after thinking about it, I would prefer it query the first “templow” in the list.