7 static const char *
const TAG =
"climate_ir";
44 if (restore.has_value()) {
76 LOG_CLIMATE(
"",
"IR Climate",
this);
79 ESP_LOGCONFIG(TAG,
" Supports HEAT: %s", YESNO(this->
supports_heat_));
80 ESP_LOGCONFIG(TAG,
" Supports COOL: %s", YESNO(this->
supports_cool_));
This class is used to encode all control actions on a climate device.
std::set< climate::ClimateSwingMode > swing_modes_
ClimateSwingMode swing_mode
The active swing mode of the climate device.
void add_on_state_callback(std::function< void(float)> &&callback)
Add a callback that will be called every time a filtered value arrives.
void set_visual_temperature_step(float temperature_step)
float maximum_temperature_
float target_temperature
The target temperature of the climate device.
const optional< ClimateMode > & get_mode() const
This class contains all static data for climate devices.
void set_visual_min_temperature(float visual_min_temperature)
The climate device is set to heat to reach the target temperature.
virtual void transmit_state()=0
Transmit via IR the state of this climate controller.
ClimateMode mode
The active mode of the climate device.
float current_temperature
The current temperature of the climate device, as reported from the integration.
The climate device is set to dry/humidity mode.
void set_supported_presets(std::set< ClimatePreset > presets)
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)
void dump_config() override
The climate device is set to cool to reach the target temperature.
float state
This member variable stores the last state that has passed through all filters.
const optional< ClimatePreset > & get_preset() const
void set_supported_fan_modes(std::set< ClimateFanMode > modes)
The fan mode is set to Auto.
float minimum_temperature_
optional< ClimatePreset > preset
The active preset of the climate device.
void set_supported_modes(std::set< ClimateMode > modes)
std::set< climate::ClimatePreset > presets_
void set_visual_max_temperature(float visual_max_temperature)
The climate device is set to heat/cool to reach the target temperature.
const optional< float > & get_target_temperature() const
void publish_state()
Publish the state of the climate device, to be called from integrations.
The swing mode is set to Off.
The climate device is off.
climate::ClimateTraits traits() override
Return the traits of this controller.
optional< ClimateFanMode > fan_mode
The active fan mode of the climate device.
const optional< ClimateFanMode > & get_fan_mode() const
const optional< ClimateSwingMode > & get_swing_mode() const
Implementation of SPI Controller mode.
void set_supported_swing_modes(std::set< ClimateSwingMode > modes)
void set_supports_two_point_target_temperature(bool supports_two_point_target_temperature)
optional< ClimateDeviceRestoreState > restore_state_()
Restore the state of the climate device, call this from your setup() method.
void set_supports_current_temperature(bool supports_current_temperature)
std::set< climate::ClimateFanMode > fan_modes_
The climate device only has the fan enabled, no heating or cooling is taking place.
void add_supported_mode(ClimateMode mode)