mirror of
https://github.com/geoffdavis/esphome-mitsubishiheatpump
synced 2024-08-30 18:12:13 +00:00
Merge pull request #8 from geoffdavis/drying
Add "idle" states during heating and cooling.
This commit is contained in:
commit
896157f028
@ -310,13 +310,20 @@ void MitsubishiHeatPump::hpSettingsChanged() {
|
|||||||
if (this->current_temperature < this->target_temperature) {
|
if (this->current_temperature < this->target_temperature) {
|
||||||
this->action = climate::CLIMATE_ACTION_HEATING;
|
this->action = climate::CLIMATE_ACTION_HEATING;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
this->action = climate::CLIMATE_ACTION_IDLE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case climate::CLIMATE_MODE_COOL:
|
case climate::CLIMATE_MODE_COOL:
|
||||||
case climate::CLIMATE_MODE_DRY:
|
|
||||||
if (this->current_temperature > this->target_temperature) {
|
if (this->current_temperature > this->target_temperature) {
|
||||||
this->action = climate::CLIMATE_ACTION_COOLING;
|
this->action = climate::CLIMATE_ACTION_COOLING;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
this->action = climate::CLIMATE_ACTION_IDLE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
case climate::CLIMATE_MODE_DRY:
|
||||||
|
this->action = climate::CLIMATE_ACTION_DRYING;
|
||||||
default:
|
default:
|
||||||
this->action = climate::CLIMATE_ACTION_OFF;
|
this->action = climate::CLIMATE_ACTION_OFF;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user