My sensor responses in exaclty this way with all the keys, example of the state itself (incl. formatting):
forecast:
- datetime: "2024-04-09"
condition: rainy
temperature: 21
templow: 6
precipitation: 8.7
- datetime: "2024-04-10"
condition: rainy
temperature: 10
templow: 5
precipitation: 2.3
However, when putting the sensor into the template the format is weird, the array is no longer structured (if that makes sense):
forecast_daily_template: "{{ state_attr('sensor.weather_daily_forecast', 'forecast') }}"
the response is this:
forecast_daily_template: "[{'datetime': '2024-04-09', 'condition': 'rainy', 'temperature': 21.0, 'templow': 7.0, 'precipitation': 8.7}, {'datetime': '2024-04-10', 'condition': 'rainy', 'temperature': 10.0, 'templow': 5.0, 'precipitation': 2.3}, {'datetime': '2024-04-11', 'condition': 'partlycloudy', 'temperature': 18.0, 'templow': 5.0, 'precipitation': 0.0}, {'datetime': '2024-04-12', 'condition': 'partlycloudy', 'temperature': 21.0, 'templow': 7.0, 'precipitation': 0.0}, {'datetime': '2024-04-13', 'condition': 'sunny', 'temperature': 25.0, 'templow': 9.0, 'precipitation': 0.0}, {'datetime': '2024-04-14', 'condition': 'sunny', 'temperature': 24.0, 'templow': 13.0, 'precipitation': 0.0}]"
→
you mentioned you got the template weather sensor up and running, can you post an example from the devtools using this?: forecast_daily_template: "{{ state_attr('sensor.weather_daily_forecast', 'forecast') }}"
Thank you