Skip to content

Commit

Permalink
Changes to show cooling status in the HA climate
Browse files Browse the repository at this point in the history
  • Loading branch information
limkinZero committed Nov 11, 2023
1 parent f2fdd41 commit de28835
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions ecodan-ha-local/ehal_hp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ namespace ehal::hp
{
OFF = 0,
DHW_ON = 1,
SH_ON = 2,
SH_ON = 2, // Heating
COOL_ON = 3, // Cooling
FROST_PROTECT = 5,
LEGIONELLA_PREVENTION = 6
};
Expand Down Expand Up @@ -86,7 +87,19 @@ namespace ehal::hp
switch (Power)
{
case PowerMode::ON:
return F("heat");
switch (HeatingCoolingMode)
{
case HpMode::HEAT_ROOM_TEMP:
[[fallthrough]]
case HpMode::HEAT_FLOW_TEMP:
[[fallthrough]]
case HpMode::HEAT_COMPENSATION_CURVE:
return F("heat");
case HpMode::COOL_ROOM_TEMP:
[[fallthrough]]
case HpMode::COOL_FLOW_TEMP:
return F("cool");
}
default:
return F("off");
}
Expand All @@ -98,9 +111,10 @@ namespace ehal::hp
{
case OperationMode::SH_ON:
[[fallthrough]]
case OperationMode::FROST_PROTECT:
case OperationMode::FROST_PROTECT:
return F("heating");

case OperationMode::COOL_ON:
return F("cooling");
case OperationMode::OFF:
[[fallthrough]]
case OperationMode::DHW_ON:
Expand Down Expand Up @@ -131,8 +145,10 @@ namespace ehal::hp
return F("Off");
case OperationMode::DHW_ON:
return F("Heating Water");
case OperationMode::SH_ON:
case OperationMode::SH_ON:
return F("Space Heating");
case OperationMode::COOL_ON:
return F("Space Cooling");
case OperationMode::FROST_PROTECT:
return F("Frost Protection");
case OperationMode::LEGIONELLA_PREVENTION:
Expand Down

0 comments on commit de28835

Please sign in to comment.