Skip to content

Commit

Permalink
Add missing Cool COP (rbroker#37)
Browse files Browse the repository at this point in the history
* Allow build with PlatformIO

* fix platform

* add missing COP
  • Loading branch information
gekkekoe committed Mar 19, 2024
1 parent 37d9a46 commit aeeddf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ecodan-ha-local/ehal_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,9 @@ off
if (!publish_ha_float_sensor_auto_discover(F("sh_cop"), SensorType::COP))
return;

if (!publish_ha_float_sensor_auto_discover(F("cool_cop"), SensorType::COP))
return;

// Diagnostic sensors
if (!publish_ha_diagnostic_sensor_auto_discover(F("Heat pump connection state"), SensorType::CONNECTIVITY))
return;
Expand Down Expand Up @@ -1191,6 +1194,9 @@ off

if (!publish_sensor_status<float>(F("sh_cop"), status.EnergyConsumedHeating > 0.0f ? status.EnergyDeliveredHeating / status.EnergyConsumedHeating : 0.0f))
return;

if (!publish_sensor_status<float>(F("cool_cop"), status.EnergyConsumedCooling > 0.0f ? status.EnergyDeliveredCooling / status.EnergyConsumedCooling : 0.0f))
return;

// Diagnostic
if (!publish_binary_sensor_status(F("Heat pump connection state"), hp::is_connected()))
Expand Down

0 comments on commit aeeddf4

Please sign in to comment.