Compare commits
8 Commits
master
...
auto_horiz
Author | SHA1 | Date | |
---|---|---|---|
|
f3e3c814d3 | ||
|
a08a8536bf | ||
|
1b0ed62c91 | ||
|
52497998f3 | ||
|
612fecb4d7 | ||
|
dcb56c9f1f | ||
|
4a7da1f267 | ||
|
ad8c46d227 |
@ -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",
|
||||
)
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user