Mon problème
Bonjour je souhaiterais faire un sensor qui afficherais la température maximum du forecast de météofrance
Voici les attribus
temperature: 28.3
humidity: 45
pressure: 1016.8
wind_speed: 4
attribution: Data provided by Météo-France
forecast:
- datetime: '2021-06-15T02:00:00+02:00'
condition: cloudy
temperature: 29.9
templow: 12.1
precipitation: 0
- datetime: '2021-06-16T02:00:00+02:00'
condition: sunny
temperature: 31.8
templow: 14.3
precipitation: 0
- datetime: '2021-06-17T02:00:00+02:00'
condition: sunny
temperature: 33.5
templow: 16.6
precipitation: 0.2
- datetime: '2021-06-18T02:00:00+02:00'
condition: rainy
temperature: 30.8
templow: 19.3
precipitation: 1
- datetime: '2021-06-19T02:00:00+02:00'
condition: partlycloudy
temperature: 29.4
templow: 16.8
precipitation: 0.3
- datetime: '2021-06-20T02:00:00+02:00'
condition: lightning
temperature: 30.8
templow: 17.6
precipitation: 1.1
- datetime: '2021-06-21T02:00:00+02:00'
condition: lightning
temperature: 25.6
templow: 16.5
precipitation: 1.3
- datetime: '2021-06-22T02:00:00+02:00'
condition: rainy
temperature: 22.2
templow: 14.1
precipitation: 0.9
- datetime: '2021-06-23T02:00:00+02:00'
condition: partlycloudy
temperature: 22.4
templow: 13.1
precipitation: 0.3
- datetime: '2021-06-24T02:00:00+02:00'
condition: partlycloudy
temperature: 23.3
templow: 12.4
precipitation: 0.1
- datetime: '2021-06-25T02:00:00+02:00'
condition: sunny
temperature: 25.2
templow: 13.2
precipitation: 0
- datetime: '2021-06-26T02:00:00+02:00'
condition: partlycloudy
temperature: 25.7
templow: 14.1
precipitation: 0.2
- datetime: '2021-06-27T02:00:00+02:00'
condition: rainy
temperature: 26.5
templow: 14.4
precipitation: 0.4
- datetime: '2021-06-28T02:00:00+02:00'
condition: sunny
temperature: 26.1
templow: 14.4
precipitation: 0.4
- datetime: '2021-06-29T02:00:00+02:00'
condition: sunny
temperature: 26.2
templow: 13.9
precipitation: 0.4
friendly_name: XXXXXX
Et si je fais un template
{{ state_attr('weather.XXXXXX', 'forecast') | map(attribute='temperature') | list | max }}
Cela me donne la valeur maximum de tous le forecast (33.5) et pas seulement du jour
Si quelqu’un à une idée afin de récupérer la température maximum du jour je serais preneur.