Template sensor from two total_increasing statistical calculation

Juat found your topic. I asked the same question today and @petro guided me in the right direction. You can find what i did here: Heating COP calculation

Still testing the solution, but i think i’m in a right direction.