Skip to content

Commit

Permalink
Update espmhp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
markalston committed Nov 7, 2023
1 parent e2be708 commit 5dbe1ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/mitsubishi_heatpump/espmhp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,35 +203,42 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {

this->fan_mode = *call.get_fan_mode();
ESP_LOGV(TAG,"Got fan mode");
// return;

switch (*call.get_fan_mode()) {
case climate::CLIMATE_FAN_OFF:
ESP_LOGV(TAG,"Setting Fan Off");
//hp->setPowerSetting("OFF");
//updated = true;
break;
case climate::CLIMATE_FAN_DIFFUSE:
ESP_LOGV(TAG,"Setting Fan Diffuse");
//hp->setFanSpeed("QUIET");
//updated = true;
break;
case climate::CLIMATE_FAN_LOW:
ESP_LOGV(TAG,"Setting Fan Low");
//hp->setFanSpeed("1");
//updated = true;
break;
case climate::CLIMATE_FAN_MEDIUM:
ESP_LOGV(TAG,"Setting Fan Medium");
//hp->setFanSpeed("2");
//updated = true;
break;
case climate::CLIMATE_FAN_MIDDLE:
ESP_LOGV(TAG,"Setting Fan Middle");
//hp->setFanSpeed("3");
//updated = true;
break;
case climate::CLIMATE_FAN_HIGH:
ESP_LOGV(TAG,"Setting Fan High");
//hp->setFanSpeed("4");
//updated = true;
break;
case climate::CLIMATE_FAN_ON:
case climate::CLIMATE_FAN_AUTO:
default:
ESP_LOGV(TAG,"Setting Fan Auto");
//hp->setFanSpeed("AUTO");
//updated = true;
break;
Expand Down

0 comments on commit 5dbe1ba

Please sign in to comment.