Compare commits

...

8 Commits

Author SHA1 Message Date
SGXander
f3e3c814d3 remove raw from other branch 2024-01-02 08:55:39 +00:00
SGXander
a08a8536bf remove branch @ as it doesn't work 2024-01-02 08:43:58 +00:00
SGXander
1b0ed62c91 update with ver again 2024-01-01 22:26:38 +00:00
SGXander
52497998f3 update cpp 2024-01-01 22:12:02 +00:00
SGXander
612fecb4d7 support auto 2024-01-01 22:06:04 +00:00
SGXander
dcb56c9f1f attempt 1 2024-01-01 22:05:24 +00:00
SGXander
4a7da1f267 update heatpump ver 2024-01-01 21:36:54 +00:00
SGXander
ad8c46d227 first pass, requires underlying lib change (forked) 2023-12-31 00:35:08 +00:00
2 changed files with 8 additions and 3 deletions

View File

@ -23,7 +23,7 @@ CONF_VERTICAL_SWING_SELECT = "vertical_vane_select"
DEFAULT_CLIMATE_MODES = ["HEAT_COOL", "COOL", "HEAT", "DRY", "FAN_ONLY"]
DEFAULT_FAN_MODES = ["AUTO", "DIFFUSE", "LOW", "MEDIUM", "MIDDLE", "HIGH"]
DEFAULT_SWING_MODES = ["OFF", "VERTICAL"]
HORIZONTAL_SWING_OPTIONS = ["left", "left_center", "center", "right_center", "right", "split", "swing"]
HORIZONTAL_SWING_OPTIONS = ["auto", "left", "left_center", "center", "right_center", "right", "split", "swing"]
VERTICAL_SWING_OPTIONS = ["auto", "up", "up_center", "center", "down_center", "down","swing"]
# Remote temperature timeout configuration
@ -143,6 +143,6 @@ def to_code(config):
yield climate.register_climate(var, config)
cg.add_library(
name="HeatPump",
repository="https://github.com/SwiCago/HeatPump",
version="5d1e146771d2f458907a855bf9d5d4b9bf5ff033",
repository="https://github.com/SGXander/HeatPump",
version="2ebb761e2fee9fb75c05bb391d20ae3d798d185a",
)

View File

@ -194,6 +194,9 @@ void MitsubishiHeatPump::on_horizontal_swing_change(const std::string &swing) {
if (swing == "swing") {
hp->setWideVaneSetting("SWING");
updated = true;
} else if (swing == "auto") {
hp->setWideVaneSetting("AUTO");
updated = true;
} else if (swing == "split") {
hp->setWideVaneSetting("<>");
updated = true;
@ -524,6 +527,8 @@ void MitsubishiHeatPump::hpSettingsChanged() {
if (strcmp(currentSettings.wideVane, "SWING") == 0) {
this->update_swing_horizontal("swing");
} else if (strcmp(currentSettings.wideVane, "AUTO") == 0) {
this->update_swing_horizontal("auto");
} else if (strcmp(currentSettings.wideVane, "<>") == 0) {
this->update_swing_horizontal("split");
} else if (strcmp(currentSettings.wideVane, "<<") == 0) {