Ems-esp Bosch Heatpump Power calculation

Hi all,
I have a Bosch heatpump (wlw196i) with ems-esp gateway connected to my home assistant via mqtt. It works nice.
Now I am trying to make sense of the numbers.
Most important, I would like to obtain the power consumption of the device to be able to have the device as a separate consumer apart from my house power consumption,which it is currently included in.

I can get only one power consumption from the ems-esp, which is “compressor outlet power”. However, that is in the order of 8 kW. The entire heatpump should not consume much more than 2-3 kW. Therefore, apparently the “compressor outlet power” should be the actual heating power downstream of the compressor, like (heat from ambient + compressor power) in a ratio of 3:1 according to the current COP.

Has anyone been successful in calculating the actual power based on ems-esp readings?
I have a couple of energy readings, however they are only in discrete 1kWh steps. Seems to be a bit coarse for a derivative sensor, especially if it is summer and only hot water is produced with 1-2 kWh a day…
Cheers!
Has anyone be

Hi, same problem here.
I created an utility meter for a daily compressor consumption using nrgconscomptotal entity, but I’m not able to see instant power from EMS. I can see compressor outlet power and even for me is in the order of 8kW

I have a template sensor for the total SCOP.

{% set thermal_power = states('sensor.boiler_total_energy_supplied') | float(0) + states('sensor.solar_total_energy') | float(0)%}
{% set electrical_power = states('sensor.warmepumpe_total_active_energy') | float(0) %}
{% if thermal_power >= 0 and electrical_power > 0 %}
{{ (thermal_power/electrical_power)| round(2) }}
{% else %}
0
{% endif %}

Where sensor.boiler_total_energy_supplied is supplied by the EMS-ESP and sensor.warmepumpe_total_active_energy is from my Shelly 3EM instead of the EMS-ESP provided boiler_total_energy_consumption.

To calculate the current COP I am taking the power measurements.

{% set q = states('sensor.boiler_total_power') | float * 1000.0 %}
{% set p = states('sensor.warmepumpe_total_active_power') | float %}
{% if q >= 0 and p > 0 %}
{{ (q / p) | round(2) }}
{% else %}
  0.0
{% endif %}

Where sensor.boiler_total_power is a derivative sensor of sensor.boiler_total_energy over the time window of 10 minutes and sensor.warmepumpe_total_active_power is the power sensor provided by the Shelly 3EM. Due to the mismatch of the one being only a derivative and the other a direct measurement the COP does from time to time spike, so potentially I will harmonize and use another derivative sensor from the boiler_total_energy_consumption instead.

What I am now looking for is to generate a yearly SCOP, for which I assume I need a utility meter of the sensors above, which resets at a yearly basis. Would it then be furthermore possible somehow to compare SCOP from year to year basis?