8 namespace climate_ir_lg {
17 : climate_ir::
ClimateIR(TEMP_MIN, TEMP_MAX, 1.0f, true, true,
This class is used to encode all control actions on a climate device.
The fan mode is set to Low.
climate::ClimateMode mode_before_
ClimateSwingMode swing_mode
The active swing mode of the climate device.
void set_header_low(uint32_t header_low)
const optional< ClimateMode > & get_mode() const
void set_bit_one_low(uint32_t bit_one_low)
void set_header_high(uint32_t header_high)
void transmit_(uint32_t value)
void set_bit_zero_low(uint32_t bit_zero_low)
bool on_receive(remote_base::RemoteReceiveData data) override
Handle received IR Buffer.
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
void set_bit_high(uint32_t bit_high)
The fan mode is set to Auto.
void calc_checksum_(uint32_t &value)
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={})
The fan mode is set to Vertical.
void transmit_state() override
Transmit via IR the state of this climate controller.
The fan mode is set to High.
ClimateMode
Enum for all modes a climate device can be in.
The swing mode is set to Off.
The climate device is off.
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
const optional< ClimateSwingMode > & get_swing_mode() const
Implementation of SPI Controller mode.
The fan mode is set to Medium.