17 case MideaMode::MODE_AUTO:
19 case MideaMode::MODE_COOL:
21 case MideaMode::MODE_DRY:
23 case MideaMode::MODE_FAN_ONLY:
25 case MideaMode::MODE_HEAT:
35 return MideaMode::MODE_AUTO;
37 return MideaMode::MODE_COOL;
39 return MideaMode::MODE_DRY;
41 return MideaMode::MODE_FAN_ONLY;
43 return MideaMode::MODE_HEAT;
45 return MideaMode::MODE_OFF;
51 case MideaSwingMode::SWING_VERTICAL:
53 case MideaSwingMode::SWING_HORIZONTAL:
55 case MideaSwingMode::SWING_BOTH:
65 return MideaSwingMode::SWING_VERTICAL;
67 return MideaSwingMode::SWING_HORIZONTAL;
69 return MideaSwingMode::SWING_BOTH;
71 return MideaSwingMode::SWING_OFF;
78 return MideaFanMode::FAN_LOW;
80 return MideaFanMode::FAN_MEDIUM;
82 return MideaFanMode::FAN_HIGH;
84 return MideaFanMode::FAN_AUTO;
90 case MideaFanMode::FAN_LOW:
92 case MideaFanMode::FAN_MEDIUM:
94 case MideaFanMode::FAN_HIGH:
103 case MideaFanMode::FAN_SILENT:
104 case MideaFanMode::FAN_TURBO:
113 case MideaFanMode::FAN_SILENT:
122 return MideaFanMode::FAN_SILENT;
123 return MideaFanMode::FAN_TURBO;
129 return MideaPreset::PRESET_SLEEP;
131 return MideaPreset::PRESET_ECO;
133 return MideaPreset::PRESET_TURBO;
135 return MideaPreset::PRESET_NONE;
141 case MideaPreset::PRESET_SLEEP:
143 case MideaPreset::PRESET_ECO:
145 case MideaPreset::PRESET_TURBO:
159 if (capabilities.supportAutoMode())
161 if (capabilities.supportCoolMode())
163 if (capabilities.supportHeatMode())
165 if (capabilities.supportDryMode())
167 if (capabilities.supportTurboPreset())
169 if (capabilities.supportEcoPreset())
171 if (capabilities.supportFrostProtectionPreset())
BedjetMode mode
BedJet operating mode.
void add_supported_preset(ClimatePreset preset)
void add_supported_mode(ClimateMode mode)
void set_supported_custom_presets(std::initializer_list< const char * > presets)
static const char *const TAG
static const char *const SILENT
static const char *const FREEZE_PROTECTION
static const char *const 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.
dudanov::midea::ac::Mode MideaMode
dudanov::midea::ac::FanMode MideaFanMode
dudanov::midea::ac::Preset MideaPreset
dudanov::midea::ac::SwingMode MideaSwingMode
Providing packet encoding functions for exchanging data with a remote host.