COP Calculation #325
Replies: 4 comments 5 replies
-
Hi @tgeldhauser, When I got started with this integration, I made a SCOP sensor using a shelly smart plug (since the heat energy input was not yet available) but it never worked properly and it broke some time ago. This is a good opportunity to work on it together and maybe document our findings for others to use. Since the heat energy input was not available yet when the heatpump was installed, the heat amount is the total over the past 4 years while the energy input is the total for the past year. A simple division of the two values to calculate the lifetime COP won't work in my case. I'm starting with some basic measurements: Looking at the history, the heat energy input is not very smooth. It's updated every 2 hours or so. We need to keep this in mind. Calculating the COP for a given hour won't work. Calculating the COP over the past 2 hours, day, month or year is all possible. Got some other stuff to do now, so I'll pick it up later. Next step is to have a look at the utility meter helper to see if I can create daily and monthly sensors for heat energy and heat amount. Stay tuned ;) |
Beta Was this translation helpful? Give feedback.
-
I have a COP for heating and for warm water as well. I also use a power meter for my heat pumpe. So I have the power consumption from my heat pump. I have a template for the COP:
and then 2 other templates for the COP WW and COP heating
Sorry idk how to paste the code in the right way... Give me this statistics: Maybe this will help u as well. |
Beta Was this translation helpful? Give feedback.
-
Hi Mehli, thanks for sharing. Looks great. As i also have a powermeter (Shelly), this could work. I tried to sort it a bit: {{ (states('sensor.luxtronik2_current_heat_output') | float / states('sensor.wirkleistung_gesamt') | float) | round (1) }} template:
What are the sensors
My sensors look differently ? Are they defined previously ? Thanks, Tobias |
Beta Was this translation helpful? Give feedback.
-
Got distracted on some other stuff for a bit, but then I came across an example from someone else (Thanks Tim) and remembered to finish this. Option 1 This is relatively easy since the later firmware versions provides the total heat amount in watts.
Since the energy of the display is included, we should never divide by zero. SCOP *: describes the total efficiency including power consumption of the display unlike COP which only calculates the efficiency of the heat generator. Option 2 Since the energy input is only updated every two hours, we need a larger timeframe than hours (such as days) or we need to use the smart plug. While we're at it, lets split the SCOP for DHW and heating. There is a neat little trick to let Home Assistant split an energy sensor into multiple utility meters:
The automation above stores the "tariff" in a variable and switches the utility meter over to the right "tariff". The result should be two separate utility meters which reset hourly. You might want to add a trigger and tariff for idle and cooling to have it make more sense. Note: most of this can be created using the UI. Only the variable in the automation needs a bit of yaml editing. Next, we need an utility meter helper for the output energy. This is relatively straightforward. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i just added this great integration to read my AIT Heatpump. One thing i am very interested in is the statustics of the COP - somehow i am a bit struck here, as don't seem to get a statistics out of it. My current code is:
template:
unique_id: "WP_COP"
#unit_of_measurement: "Watt"
state_class: "measurement"
state:
"{{((states('sensor.luxtronik_0_00_heat_amount_heating') | float(0) / states('sensor.luxtronik_0_00_heat_energy_input') | float(0))) }}"
Also my issue is, that "heat_amount" is the sum and not the current heat - Does anyone have a working code for this he can share ?
Thanks,
Tobias
Beta Was this translation helpful? Give feedback.
All reactions