11 namespace climate_ir {
26 ClimateIR(
float minimum_temperature,
float maximum_temperature,
float temperature_step = 1.0f,
27 bool supports_dry =
false,
bool supports_fan_only =
false, std::set<climate::ClimateFanMode> fan_modes = {},
28 std::set<climate::ClimateSwingMode> swing_modes = {}, std::set<climate::ClimatePreset> presets = {}) {
39 void setup()
override;
65 std::set<climate::ClimatePreset>
presets_ = {};
This class is used to encode all control actions on a climate device.
std::set< climate::ClimateSwingMode > swing_modes_
float maximum_temperature_
void set_sensor(sensor::Sensor *sensor)
This class contains all static data for climate devices.
virtual void transmit_state()=0
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.
void dump_config() override
float minimum_temperature_
std::set< climate::ClimatePreset > presets_
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={})
void set_supports_heat(bool supports_heat)
climate::ClimateTraits traits() override
Return the traits of this controller.
bool on_receive(remote_base::RemoteReceiveData data) override
Implementation of SPI Controller mode.
std::set< climate::ClimateFanMode > fan_modes_
Base-class for all sensors.
esphome::sensor::Sensor * sensor
ClimateDevice - This is the base class for all climate integrations.
void set_supports_cool(bool supports_cool)