Weheat integration negative values

Hi I am owner of a weheat heatpump since 2 months now and I started a few weeks ago with adding the weheat integration in HA.
I have a Question abouth the COP Value
That one was negative and most of the time zero when I just used the COP value.
I already found that I can beter calculate the COP by Power out/Power In
But my Power Out (cooling) gives a negative value too
and also the Power out defrost gives a negative value
Is this possibly a bug In the integration ?
Who knows, I can’t question weheat they have an excelent support page but no entry to ask questions

Thanks, I found a similar answer through AI (Copilot) so I am using the next 2 sensors in my configuration.yaml and one of them is already working the other one not because the pomp is only cooling at this moment:
template:

  • sensor:
    • name: “Weheat COP Actueel”
      unit_of_measurement: “COP”
      state: >
      {% set uit = states(‘sensor.viviespomp_vermogen_uit’) | float(0) %}
      {% set inp = states(‘sensor.viviespomp_vermogen_in’) | float(0) %}
      {% if inp > 0 %}
      {{ (uit / inp) | round(2) }}
      {% else %}
      0
      {% endif %}
  • sensor:
    • name: “Weheat COP Verwarming”
      unit_of_measurement: “COP”
      state: >
      {% set warmte = states(‘sensor.viviespomp_energy_output_heating’) | float(0) %}
      {% set stroom = states(‘sensor.viviespomp_electricity_used_heating’) | float(0) %}
      {% if stroom > 0 %}
      {{ (warmte / stroom) | round(2) }}
      {% else %}
      0
      {% endif %}