Merge pull request #12 from am-io/fix-fan-controls

Fix fan speed control
This commit is contained in:
Geoff Davis 2020-07-05 21:54:28 -07:00 committed by GitHub
commit 6525c39340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ climate::ClimateTraits MitsubishiHeatPump::traits() {
traits.set_supports_fan_mode_off(false); traits.set_supports_fan_mode_off(false);
traits.set_supports_fan_mode_auto(true); traits.set_supports_fan_mode_auto(true);
traits.set_supports_fan_mode_focus(false); traits.set_supports_fan_mode_focus(false);
traits.set_supports_fan_mode_diffuse(false); traits.set_supports_fan_mode_diffuse(true);
traits.set_supports_fan_mode_low(true); traits.set_supports_fan_mode_low(true);
traits.set_supports_fan_mode_medium(true); traits.set_supports_fan_mode_medium(true);
traits.set_supports_fan_mode_middle(true); traits.set_supports_fan_mode_middle(true);
@ -158,23 +158,23 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_DIFFUSE: case climate::CLIMATE_FAN_DIFFUSE:
hp->setPowerSetting("QUIET"); hp->setFanSpeed("QUIET");
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_LOW: case climate::CLIMATE_FAN_LOW:
hp->setPowerSetting("1"); hp->setFanSpeed("1");
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_MEDIUM: case climate::CLIMATE_FAN_MEDIUM:
hp->setPowerSetting("2"); hp->setFanSpeed("2");
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_MIDDLE: case climate::CLIMATE_FAN_MIDDLE:
hp->setPowerSetting("3"); hp->setFanSpeed("3");
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_HIGH: case climate::CLIMATE_FAN_HIGH:
hp->setPowerSetting("4"); hp->setFanSpeed("4");
updated = true; updated = true;
break; break;
case climate::CLIMATE_FAN_ON: case climate::CLIMATE_FAN_ON: