kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.89k stars 233 forks source link

Feature request: get values from attribute (list/array) #942

Open holmbom opened 1 year ago

holmbom commented 1 year ago

Hi, not been using Github much so don't know how to make a feature request. But I saw that someone had made one for attributes wich are great, but is there a way to get attributes like this.

Maybe the raw one or the "clean" one.

Its electricity prices for today and tomorrow, and they are in the attribute.

today: 0.823, 0.823, 0.799, 0.762, 0.779, 0.831, 0.807, 0.82, 0.851, 0.835, 0.823, 0.819, 0.814, 0.794, 0.792, 0.817, 0.857, 0.901, 0.884, 0.871, 0.864, 0.896, 0.878, 0.864 tomorrow: 0.756, 0.755, 0.753, 0.753, 0.762, 0.868, 0.971, 1.157, 1.288, 1.349, 1.017, 0.777, 0.732, 0.717, 0.812, 0.896, 0.844, 0.863, 0.9, 0.806, 0.744, 0.687, 0.6, 0.561 raw_today:

akloeckner commented 1 year ago

I believe this will be hard to implement. The plot data is retrieved from history internally. So, plotting attributes will require a major change in the code, which is not likely to happen. See #527