Skip to content

Commit

Permalink
Add publish z1_flow_temp_target and z2_flow_temp_target sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
limkinZero committed Nov 29, 2023
1 parent 0028dc1 commit 4370c09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ecodan-ha-local/ehal_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,12 @@ off
if (!publish_ha_float_sensor_auto_discover(F("z1_room_temp"), SensorType::TEMPERATURE))
anyFailed = true;

if (!publish_ha_float_sensor_auto_discover(F("z1_flow_temp_target"), SensorType::TEMPERATURE))
anyFailed = true;

if (!publish_ha_float_sensor_auto_discover(F("z2_flow_temp_target"), SensorType::TEMPERATURE))
anyFailed = true;

if (!publish_ha_float_sensor_auto_discover(F("z2_room_temp"), SensorType::TEMPERATURE))
anyFailed = true;

Expand Down Expand Up @@ -905,7 +911,9 @@ off
publish_sensor_status<float>(F("dhw_consumed"), status.EnergyConsumedDhw);
publish_sensor_status<float>(F("dhw_delivered"), status.EnergyDeliveredDhw);
publish_sensor_status<float>(F("z1_room_temp"), status.Zone1RoomTemperature);
publish_sensor_status<float>(F("z1_flow_temp_target"), status.Zone1FlowTemperatureSetPoint);
publish_sensor_status<float>(F("z2_room_temp"), status.Zone2RoomTemperature);
publish_sensor_status<float>(F("z2_flow_temp_target"), status.Zone2FlowTemperatureSetPoint);
publish_sensor_status<float>(F("dhw_temp"), status.DhwTemperature);
publish_sensor_status<float>(F("dhw_cop"), status.EnergyConsumedDhw > 0.0f ? status.EnergyDeliveredDhw / status.EnergyConsumedDhw : 0.0f);
publish_sensor_status<float>(F("sh_cop"), status.EnergyConsumedHeating > 0.0f ? status.EnergyDeliveredHeating / status.EnergyConsumedHeating : 0.0f);
Expand Down

0 comments on commit 4370c09

Please sign in to comment.