kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.85k stars 231 forks source link

feat: state sum to show sum of available points #1076

Open jasonlewis opened 4 months ago

jasonlewis commented 4 months ago

I wanted a way to show the default state of the graph as a sum of the available points rather than the current/last point.

This adds a new sum value for state which sums the available points. This does rely on the fix within #1075 for it to work as it expects points to always be defined.

aaaaahaaaaa commented 2 months ago

This is actually relevant to the issue is just opened: https://github.com/kalkih/mini-graph-card/issues/1095

I think your solution should be more holistics and cover all the aggregate_func types, not just sum. That feature would defo be a great addition.