26 void control(
const climate::ClimateCall &
call)
override;
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, std::set< climate::ClimateFanMode > fan_modes={}, std::set< climate::ClimateSwingMode > swing_modes={}, std::set< climate::ClimatePreset > presets={})
bool on_midea_(const MideaData &data)
void transmit_state() override
Transmit via IR the state of this climate controller.
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
bool on_receive(remote_base::RemoteReceiveData data) override
Handle received IR Buffer.
void set_fahrenheit(bool value)
Set use of Fahrenheit units.
void transmit_(MideaData &data)
@ CLIMATE_PRESET_NONE
No preset is active.
@ CLIMATE_PRESET_BOOST
Device is in boost preset.
@ CLIMATE_PRESET_SLEEP
Device is prepared for sleep.
@ CLIMATE_SWING_OFF
The swing mode is set to Off.
@ CLIMATE_SWING_VERTICAL
The fan mode is set to Vertical.
@ 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 uint8_t MIDEA_TEMPC_MAX
const uint8_t MIDEA_TEMPF_MAX
const uint8_t MIDEA_TEMPC_MIN
const uint8_t MIDEA_TEMPF_MIN
Providing packet encoding functions for exchanging data with a remote host.