27 ClimateIR(
float minimum_temperature,
float maximum_temperature,
float temperature_step = 1.0f,
28 bool supports_dry =
false,
bool supports_fan_only =
false,
37 if (supports_fan_only)
44 void setup()
override;
45 void dump_config()
override;
48 void set_supports_heat_cool(
bool supports_heat_cool) {
66 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 control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
ESPHOME_ALWAYS_INLINE void set_mode_supported_(climate::ClimateMode mode, bool supported)
climate::ClimateTraits traits() override
Return the traits of this controller.
float maximum_temperature_
virtual void transmit_state()=0
Transmit via IR the state of this climate controller.
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_
float minimum_temperature_
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.