Untitled

 avatar
unknown
plain_text
8 days ago
458 B
8
Indexable
- platform: template
    id: "${devicename}_coefficient_of_performance"
    name: "Coefficient of Performance"
    icon: mdi:copyleft
    accuracy_decimals: 2
    unit_of_measurement: "COP"
    lambda: |-
      // Verify that hp_energy_consumption is <> 0 to avoid division by 0 error
      if (id(${heat_pump_name}_143_dword).state != 0) {
        return id(${heat_pump_name}_145_dword).state / id(${heat_pump_name}_143_dword).state;
      } else return {};
Leave a Comment