Hi there,
I’m stuggling to get a dataarray, which is hold in an attribute, into plotly.
It holds the data of a solar forcast of the next 5 days and I would like to display it in the plotly-graph-card in HA.
Here is the sensor data (shortend for display here, it normally holds data for 5 days, 488 entries):
state_class: measurement
scale: 1.137400354295837
today:
energy: 40510.5519597371
complete: true
tomorrow:
energy: 32448.26784207961
complete: true
dayAfterTomorrow:
energy: 43844.20355849278
complete: true
timeseries:
start_utc: "2026-08-02T22:00:00+00:00"
deltas_in_minutes:
- 15
- 15
- 15
- 15
- 15
- 15
- 15
- 15
- 15
- 15
values:
- 0
- 0
- 0
- 296.497
- 652.6528
- 631.8647
- 786.8721
- 1184.7118
- 1469.6895
- 1778.54
unit_of_measurement: W
icon: mdi:solar-power
friendly_name: "[evcc] PV-Prognose"
I am not able to figure out, how I can get the data from the timeseries into the x/y data of plotly.
Any hint would be appreciated.