added idle action for climate (#859)

* added idle

* more clear state description

* Also add drying/fan

Putting it in this PR because it will be put in the same aioesphomeapi release anyway.

* Update bang_bang for idle action


Co-authored-by: root <root@mail.danman.eu>
Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Daniel Kucera
2019-11-26 16:56:04 +00:00
committed by Otto Winter
parent be36eef939
commit fe89dcdc08
6 changed files with 49 additions and 13 deletions
@@ -29,6 +29,12 @@ const char *climate_action_to_string(ClimateAction action) {
return "COOLING";
case CLIMATE_ACTION_HEATING:
return "HEATING";
case CLIMATE_ACTION_IDLE:
return "IDLE";
case CLIMATE_ACTION_DRYING:
return "DRYING";
case CLIMATE_ACTION_FAN:
return "FAN";
default:
return "UNKNOWN";
}
@@ -29,6 +29,12 @@ enum ClimateAction : uint8_t {
CLIMATE_ACTION_COOLING = 2,
/// The climate device is actively heating (usually in heat or auto mode)
CLIMATE_ACTION_HEATING = 3,
/// The climate device is idle (monitoring climate but no action needed)
CLIMATE_ACTION_IDLE = 4,
/// The climate device is drying (either mode DRY or AUTO)
CLIMATE_ACTION_DRYING = 5,
/// The climate device is in fan only mode (either mode FAN_ONLY or AUTO)
CLIMATE_ACTION_FAN = 6,
};
/// Enum for all modes a climate fan can be in