Skip to content

Commit

Permalink
Switch rename, bugfix climate, input output power add immersion value
Browse files Browse the repository at this point in the history
  • Loading branch information
F1p committed Oct 11, 2024
1 parent 0508dd3 commit 05d61e8
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion ECODAN_Bridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,16 @@ void SystemReport(void) {

double OutputPower = (((float)HeatPump.Status.PrimaryFlowRate / 60) * (float)HeatPump.Status.HeaterDeltaT * 3.65); // Approx Heat Capacity of Water & Glycol
double EstInputPower = ((((((float)HeatPump.Status.CompressorFrequency * 2) * ((float)HeatPump.Status.HeaterOutputFlowTemperature * 0.8)) / 1000) / 2) - HeatPump.Status.InputPower) * ((HeatPump.Status.InputPower + 1) - HeatPump.Status.InputPower) / ((HeatPump.Status.InputPower + 1) - HeatPump.Status.InputPower) + HeatPump.Status.InputPower;
if (EstInputPower == 0 && (HeatPump.Status.ImmersionActive == 1 || HeatPump.Status.BoosterActive == 1)) { EstInputPower = HeatPump.Status.InputPower; } // Account for Immersion or Booster Instead of HP

if (OutputPower < 0) {
HeatOutputPower = 0;
CoolOutputPower = fabsf(OutputPower);
} else {
HeatOutputPower = OutputPower;
if (OutputPower == 0 && (HeatPump.Status.ImmersionActive == 1 || HeatPump.Status.BoosterActive == 1)) { HeatOutputPower = HeatPump.Status.OutputPower; } // Account for Immersion or Booster Instead of HP
else {
HeatOutputPower = OutputPower;
}
CoolOutputPower = 0;
}

Expand Down
6 changes: 3 additions & 3 deletions MQTTDiscovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const char MQTT_SENSOR_NAME[][40] PROGMEM = {
"Prohibit Zone 1 Cooling",
"Prohibit Zone 2 Heating", //80
"Prohibit Zone 2 Cooling",
"Eco DHW Boost",
"DHW Boost",

"Zone 1 Flow Setpoint",
"Zone 2 Flow Setpoint", //83
Expand Down Expand Up @@ -555,8 +555,8 @@ const char MQTT_CLIMATE_MODE[][127] PROGMEM = {

const char MQTT_CLIMATE_STATE_TOPIC[][494] PROGMEM = {
"{{ 'heat' if (value_json.SystemOperationMode=='Hot Water' or value_json.SystemOperationMode=='Legionella') else 'off' }}",
"{{ 'heat' if (value_json.SystemOperationMode=='Heating' and state_attr('climate.zone2_climate','current_temperature')==0) else 'heat' if (value_json.SystemOperationMode == 'Heating' and states('sensor.ecodan_ashp_zone_1_working')=='1') else 'cool' if (value_json.SystemOperationMode == 'Cooling' and state_attr('climate.zone2_climate','current_temperature')==0) else 'cool' if (value_json.SystemOperationMode == 'Cooling' and states('sensor.ecodan_ashp_zone_1_working')=='1') else 'off' }}",
"{{ 'heat' if (value_json.SystemOperationMode == 'Heating' and states('sensor.ecodan_ashp_zone_2_working')=='1') else 'cool' if (value_json.SystemOperationMode == 'Cooling' and states('sensor.ecodan_ashp_zone_2_working')=='1') else 'off' }}"
"{{ 'heat' if (value_json.SystemOperationMode=='Heating' and state_attr('climate.zone2_climate','current_temperature')=='0') else 'heat' if (value_json.SystemOperationMode=='Heating' and states('sensor.ecodan_ashp_zone_1_working')=='1') else 'cool' if (value_json.SystemOperationMode=='Cooling' and state_attr('climate.zone2_climate','current_temperature')=='0') else 'cool' if (value_json.SystemOperationMode=='Cooling' and states('sensor.ecodan_ashp_zone_1_working')=='1') else 'off' }}",
"{{ 'heat' if (value_json.SystemOperationMode=='Heating' and states('sensor.ecodan_ashp_zone_2_working')=='1') else 'cool' if (value_json.SystemOperationMode=='Cooling' and states('sensor.ecodan_ashp_zone_2_working')=='1') else 'off' }}"
};

const char MQTT_SELECT_VALUE_TOPIC[][405] PROGMEM = {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/esp8266.esp8266.generic/v5.2.6/ECODAN_Bridge_v5.2.6.bin
Binary file not shown.
Binary file not shown.

0 comments on commit 05d61e8

Please sign in to comment.