Daikin Altherma, ESPAltherma & Home Assistant with OpenEnergyMonitor

I have just tweaked the COP Template to avoid, false peaks of COP, negative and positive while the ESPAltherma is waiting for state change from ‘heating’ (I think, the ESPAltherma updates every 30 secs, whereas the shelly is every second), I have set a condition that measures the power draw, ie below 80W the heat pump is idle or just the circulation pump running, so COP is zero, greater than 80W the heat pump its heating, so a COP should be calculated.

- name: "COP"
  unique_id: "espaltherma_cop_2"
  unit_of_measurement: 'COP'
  state: >
      {% if (states('sensor.heat_pump_power') | int >= 80) and is_state_attr('sensor.esp_altherma','Freeze Protection', 'OFF')  %} 
      {{ 
      ((state_attr('sensor.esp_altherma','Flow sensor (l/min)')| float * 0.06 * 1.16 * (state_attr('sensor.esp_altherma','Leaving water temp. before BUH (R1T)') | float - state_attr('sensor.esp_altherma','Inlet water temp.(R4T)')|float) )
      /
      (states('sensor.heat_pump_power') | float /1000 ))
      |round(2)
      }}
      {% else %} 0 {%endif%}

1 Like