Adding battery system with Ah counters as meters - how to?

I would like to enhance my plain energy dashboard by adding battery system to the equation. Originally I thought that Ah utility meter would be considered a valid source, but then I realized that I cannot use it, since the dashboard is expecting an energy source. I have detailed measurements of amps coming in and out of the battery + utility meters that count Ah values and provide detailed statistics.

What’s the easiest way to proceed now? Do I create some custom meters that will calculate Wh from Amps flowing by multiplying values by battery voltage, or is there any in-house method to do it quicker?

Use a template sensor to multiply the current by the voltage. This gives you power. Use the Riemann Sum integration to convert power to energy. Then only feed the energy sensor to utility meter(s) if you want hour/day/month totals outside the energy dashboard.

2 Likes

thanks, this works!

1 Like