Hi,
I want to calculate the COP of my Heatpump. I have a flow meter (produced_heat) entity that outputs energy as a total_increasing (kWh) class. I also have a energy meter (used_electrical_energy) that outputs the energy as total_increasing.
How can I calculate cop = produced_heat/used_electrical_energy
Since the absolute values of the measurements are not usable the increased amount in both in the same statistical period needs to be used. How can I achieve that using a template sensor?
Thanks,
Marco