1#if (defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)) || defined(USE_ESP_IDF)
12 case MideaMode::MODE_AUTO:
14 case MideaMode::MODE_COOL:
16 case MideaMode::MODE_DRY:
18 case MideaMode::MODE_FAN_ONLY:
20 case MideaMode::MODE_HEAT:
30 return MideaMode::MODE_AUTO;
32 return MideaMode::MODE_COOL;
34 return MideaMode::MODE_DRY;
36 return MideaMode::MODE_FAN_ONLY;
38 return MideaMode::MODE_HEAT;
40 return MideaMode::MODE_OFF;
46 case MideaSwingMode::SWING_VERTICAL:
48 case MideaSwingMode::SWING_HORIZONTAL:
50 case MideaSwingMode::SWING_BOTH:
60 return MideaSwingMode::SWING_VERTICAL;
62 return MideaSwingMode::SWING_HORIZONTAL;
64 return MideaSwingMode::SWING_BOTH;
66 return MideaSwingMode::SWING_OFF;
73 return MideaFanMode::FAN_LOW;
75 return MideaFanMode::FAN_MEDIUM;
77 return MideaFanMode::FAN_HIGH;
79 return MideaFanMode::FAN_AUTO;
85 case MideaFanMode::FAN_LOW:
87 case MideaFanMode::FAN_MEDIUM:
89 case MideaFanMode::FAN_HIGH:
98 case MideaFanMode::FAN_SILENT:
99 case MideaFanMode::FAN_TURBO:
108 case MideaFanMode::FAN_SILENT:
117 return MideaFanMode::FAN_SILENT;
118 return MideaFanMode::FAN_TURBO;
124 return MideaPreset::PRESET_SLEEP;
126 return MideaPreset::PRESET_ECO;
128 return MideaPreset::PRESET_TURBO;
130 return MideaPreset::PRESET_NONE;
136 case MideaPreset::PRESET_SLEEP:
138 case MideaPreset::PRESET_ECO:
140 case MideaPreset::PRESET_TURBO:
154 if (capabilities.supportAutoMode())
156 if (capabilities.supportCoolMode())
158 if (capabilities.supportHeatMode())
160 if (capabilities.supportDryMode())
162 if (capabilities.supportTurboPreset())
164 if (capabilities.supportEcoPreset())
BedjetMode mode
BedJet operating mode.
void add_supported_preset(ClimatePreset preset)
void add_supported_mode(ClimateMode mode)
static constexpr const char * FREEZE_PROTECTION
static constexpr const char * SILENT
static constexpr const char * TURBO
static ClimateFanMode to_climate_fan_mode(MideaFanMode fan_mode)
static ClimateSwingMode to_climate_swing_mode(MideaSwingMode mode)
static MideaSwingMode to_midea_swing_mode(ClimateSwingMode mode)
static MideaPreset to_midea_preset(ClimatePreset preset)
static const char * to_custom_climate_preset(MideaPreset preset)
static ClimateMode to_climate_mode(MideaMode mode)
static MideaFanMode to_midea_fan_mode(ClimateFanMode fan_mode)
static ClimatePreset to_climate_preset(MideaPreset preset)
static bool is_custom_midea_fan_mode(MideaFanMode fan_mode)
static const char * to_custom_climate_fan_mode(MideaFanMode fan_mode)
static bool is_custom_midea_preset(MideaPreset preset)
static MideaMode to_midea_mode(ClimateMode mode)
static void to_climate_traits(ClimateTraits &traits, const dudanov::midea::ac::Capabilities &capabilities)
ClimatePreset
Enum for all preset modes NOTE: If adding values, update ClimatePresetMask in climate_traits....
@ CLIMATE_PRESET_NONE
No preset is active.
@ CLIMATE_PRESET_BOOST
Device is in boost preset.
@ CLIMATE_PRESET_SLEEP
Device is prepared for sleep.
@ CLIMATE_PRESET_ECO
Device is running an energy-saving preset.
ClimateSwingMode
Enum for all modes a climate swing can be in NOTE: If adding values, update ClimateSwingModeMask in c...
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_HORIZONTAL
The fan mode is set to Horizontal.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ CLIMATE_SWING_BOTH
The fan mode is set to Both.
ClimateMode
Enum for all modes a climate device can be in.
@ CLIMATE_MODE_DRY
The climate device is set to dry/humidity mode.
@ CLIMATE_MODE_FAN_ONLY
The climate device only has the fan enabled, no heating or cooling is taking place.
@ CLIMATE_MODE_HEAT
The climate device is set to heat to reach the target temperature.
@ CLIMATE_MODE_COOL
The climate device is set to cool to reach the target temperature.
@ CLIMATE_MODE_HEAT_COOL
The climate device is set to heat/cool to reach the target temperature.
@ CLIMATE_MODE_OFF
The climate device is off.
ClimateFanMode
NOTE: If adding values, update ClimateFanModeMask in climate_traits.h to use the new last value.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_AUTO
The fan mode is set to Auto.
@ CLIMATE_FAN_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.
const char Constants::TAG[] PROGMEM
dudanov::midea::ac::Mode MideaMode
dudanov::midea::ac::FanMode MideaFanMode
dudanov::midea::ac::Preset MideaPreset
dudanov::midea::ac::SwingMode MideaSwingMode