Hi!
I have air-water heatpump for hot water and under floor water heating.
From the heater I can get heat meter values (produced heat) for hot water:
and under floor heating:
I have made template sensor to sum them up:
- platform: template
sensors:
total_heating_energy:
friendly_name: 'Total Heating Energy'
value_template: "{{ (states('sensor.nibe_heat_meter_heat_cpr_total_system_2')|float +
states('sensor.nibe_heat_meter_hw_cpr_total_system_2')|float)|round(3) }}"
unit_of_measurement: "kWh"
availability_template: >-
{{
is_number(states('sensor.nibe_heat_meter_heat_cpr_total_system_2')) and
is_number(states('sensor.nibe_heat_meter_hw_cpr_total_system_2'))
}}
with a result:
I laso have Shelly EM3 measuring energy for the heat pump. I use template sensor to sum up three phases:
- platform: template
sensors:
heat_pump_energy:
friendly_name: 'Heat Pump Energy'
device_class: energy
unit_of_measurement: "kWh"
value_template: "{{ (states('sensor.heat_pump_phase_1_energy')|float +
states('sensor.heat_pump_phase_2_energy')|float +
states('sensor.heat_pump_phase_3_energy')|float )|round(3) }}"
availability_template: >-
{{
is_number(states('sensor.heat_pump_phase_1_energy')) and
is_number(states('sensor.heat_pump_phase_2_energy')) and
is_number(states('sensor.heat_pump_phase_3_energy'))
}}
With a result:
Now what i want to do is to calculate COP ( Coefficient of performance) which is a calulation of
Where : * is the useful heat supplied or removed by the considered system (machine).
- is the net work put into the considered system in one cycle.
Q is Total Heating Energy
W is Heating Pump Energy
So it would be simple just to divide the heating energy with spent energy, but it has to be the same period.
My idea was to have Utility Meter helper for both sensors and divide the utility meter sensors. Only drawback is that when the utility meter resets (day, hour etc.) i get the spike in COP value and the graph will have so called errors.
Also when for whatever reason either of the sensors will be unavailable there will be errors as well.
In the end I would like to compare COP with outdoor temperature and as I have also gas heater on hot standby, I would like to calculate when it will be cheaper to use gas instead of heat pump. In really cold outside temperatures like -20 degrees, heat pump COP would be 1.