17 case MideaMode::MODE_AUTO:
23 case MideaMode::MODE_FAN_ONLY:
35 return MideaMode::MODE_AUTO;
41 return MideaMode::MODE_FAN_ONLY;
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;
80 return MideaFanMode::FAN_MEDIUM;
92 case MideaFanMode::FAN_MEDIUM:
103 case MideaFanMode::FAN_SILENT:
104 case MideaFanMode::FAN_TURBO:
113 case MideaFanMode::FAN_SILENT:
121 if (mode == Constants::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())
179 #endif // USE_ARDUINO
static ClimateFanMode to_climate_fan_mode(MideaFanMode fan_mode)
static const char *const TAG
static const std::string & to_custom_climate_fan_mode(MideaFanMode fan_mode)
This class contains all static data for climate devices.
static bool is_custom_midea_fan_mode(MideaFanMode fan_mode)
void add_supported_custom_preset(const std::string &preset)
static void to_climate_traits(ClimateTraits &traits, const dudanov::midea::ac::Capabilities &capabilities)
BedJet is in Dry mode (high speed, no heat)
BedJet is in Cool mode (actually "Fan only" mode)
void add_supported_preset(ClimatePreset preset)
static MideaPreset to_midea_preset(ClimatePreset preset)
dudanov::midea::ac::Mode MideaMode
BedJet is in Heat mode (limited to 4 hours)
static const std::string & to_custom_climate_preset(MideaPreset preset)
static const std::string TURBO
BedjetMode mode
BedJet operating mode.
static const std::string FREEZE_PROTECTION
static bool is_custom_midea_preset(MideaPreset preset)
static ClimatePreset to_climate_preset(MideaPreset preset)
static ClimateSwingMode to_climate_swing_mode(MideaSwingMode mode)
static MideaSwingMode to_midea_swing_mode(ClimateSwingMode mode)
static MideaMode to_midea_mode(ClimateMode mode)
Implementation of SPI Controller mode.
static ClimateMode to_climate_mode(MideaMode mode)
dudanov::midea::ac::SwingMode MideaSwingMode
dudanov::midea::ac::Preset MideaPreset
void add_supported_mode(ClimateMode mode)
static const std::string SILENT
dudanov::midea::ac::FanMode MideaFanMode
static MideaFanMode to_midea_fan_mode(ClimateFanMode fan_mode)