25 ClimateIR(
float minimum_temperature,
float maximum_temperature,
float temperature_step = 1.0f,
26 bool supports_dry =
false,
bool supports_fan_only =
false,
35 if (supports_fan_only)
42 void setup()
override;
65 void setup_(optional<climate::ClimateDeviceRestoreState> restore);
constexpr void insert(ValueType value)
Add a single value to the set (std::set compatibility)
constexpr void erase(ValueType value)
Remove a value from the set (std::set compatibility)
This class is used to encode all control actions on a climate device.
ClimateDevice - This is the base class for all climate integrations.
ClimateMode mode
The active mode of the climate device.
climate::ClimatePresetMask presets_
climate::ClimateFanModeMask fan_modes_
climate::ClimateSwingModeMask swing_modes_
static constexpr climate::ClimateModeMask DEFAULT_MODES
void dump_config() override
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
sensor::Sensor * humidity_sensor_
ESPHOME_ALWAYS_INLINE void set_mode_supported_(climate::ClimateMode mode, bool supported)
climate::ClimateTraits traits() override
Return the traits of this controller.
void set_sensor(sensor::Sensor *sensor)
float maximum_temperature_
void set_supports_heat(bool supports_heat)
virtual void transmit_state()=0
Transmit via IR the state of this climate controller.
void set_humidity_sensor(sensor::Sensor *sensor)
bool on_receive(remote_base::RemoteReceiveData data) override
void setup_(optional< climate::ClimateDeviceRestoreState > restore)
setup() with the restored state already loaded, for subclasses that read it first.
climate::ClimateModeMask modes_
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, climate::ClimateFanModeMask fan_modes=climate::ClimateFanModeMask(), climate::ClimateSwingModeMask swing_modes=climate::ClimateSwingModeMask(), climate::ClimatePresetMask presets=climate::ClimatePresetMask())
float minimum_temperature_
void set_supports_heat_cool(bool supports_heat_cool)
void set_supports_cool(bool supports_cool)
Base-class for all sensors.
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.