Total power and kw/h stats on entity card

Hi.
i would like to show total power used in last month and total power used currently in entity card like shown below.
stat

any one could help me with this?

While you could probably write some pretty complex SQL queries to help with that, you could also install Powercalc to help you organize and calculate your usage. Even if it’s just for this one area, it exposes a lot of great information. You could then take those values on the last day of the month and push them into a helper entity for “Power Used Last Month”.

I know how to sum up power usage to helper entity. but i dont know how to create card that will show it just like i show on picture. there is no way that i could put any entity in title section of card. and in this i need help.

Yes you can use multiple entities rows for that. It would look a bit different, but not by much.

Thx. i think it will be more than ok. first look on it seems to give me even more options than i wanted. :slight_smile:

1 Like

What are you trying to do with kW/h? kW is already a rate (1W = 1J/s). Diving by time again gives you acceleration (how fast the rate is changing). If what you want to convey is the average power used over a time period, then make a statistics sensor.