Skip to content

Show sum in header? #573

Answered by FlySmack
CumpsD asked this question in Q&A
Discussion options

You must be logged in to vote

Calculating a sum in the header is not possible, as far as I know. But you can can use Utility Meters in HA: https://www.home-assistant.io/integrations/utility_meter/

I use this approach for energy sensors. I have defined 3 utility meters: One which is counting the the energy on a daily basis (resets itself every day) and a second one on weekly basis (resets itself every week).

Then I display the daily meter as a graph but not in the header. The weekly header I also add to the chart, but here I hide the graph and just show them in the header.
Because both are defined as series, they will have a different color. So, I also define the same color for both.

Here an example:

type: custom:apexc…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CumpsD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants