14#define LOG_CLIMATE(prefix, type, obj) \
15 if ((obj) != nullptr) { \
16 ESP_LOGCONFIG(TAG, "%s%s '%s'", prefix, LOG_STR_LITERAL(type), (obj)->get_name().c_str()); \
BedjetMode mode
BedJet operating mode.
This class is used to encode all control actions on a climate device.
const optional< ClimateSwingMode > & get_swing_mode() const
optional< float > target_temperature_high_
const optional< float > & get_target_humidity() const
ClimateCall & set_target_temperature(float target_temperature)
Set the target temperature of the climate device.
const optional< std::string > & get_custom_preset() const
const optional< float > & get_target_temperature_low() const
ClimateCall & set_swing_mode(ClimateSwingMode swing_mode)
Set the swing mode of the climate device.
optional< ClimateFanMode > fan_mode_
ClimateCall & set_target_temperature_low(float target_temperature_low)
Set the low point target temperature of the climate device.
optional< float > target_temperature_
const optional< float > & get_target_temperature() const
const optional< ClimatePreset > & get_preset() const
optional< std::string > custom_fan_mode_
optional< ClimateSwingMode > swing_mode_
optional< ClimateMode > mode_
ClimateCall & set_preset(ClimatePreset preset)
Set the preset of the climate device.
const optional< float > & get_target_temperature_high() const
optional< std::string > custom_preset_
const optional< ClimateFanMode > & get_fan_mode() const
optional< float > target_humidity_
ClimateCall & set_fan_mode(ClimateFanMode fan_mode)
Set the fan mode of the climate device.
optional< ClimatePreset > preset_
ClimateCall & set_target_humidity(float target_humidity)
Set the target humidity of the climate device.
ClimateCall(Climate *parent)
optional< float > target_temperature_low_
ClimateCall & set_target_temperature_high(float target_temperature_high)
Set the high point target temperature of the climate device.
ClimateCall & set_mode(ClimateMode mode)
Set the mode of the climate device.
const optional< std::string > & get_custom_fan_mode() const
const optional< ClimateMode > & get_mode() const
ClimateDevice - This is the base class for all climate integrations.
ClimateMode mode
The active mode of the climate device.
bool set_custom_fan_mode_(const std::string &mode)
Set custom fan mode. Reset primary fan mode. Return true if fan mode has been changed.
optional< ClimateFanMode > fan_mode
The active fan mode of the climate device.
optional< float > visual_max_humidity_override_
bool set_custom_preset_(const std::string &preset)
Set custom preset. Reset primary preset. Return true if preset has been changed.
ClimateTraits get_traits()
Get the traits of this climate device with all overrides applied.
float target_temperature
The target temperature of the climate device.
float current_humidity
The current humidity of the climate device, as reported from the integration.
void set_visual_min_humidity_override(float visual_min_humidity_override)
optional< float > visual_current_temperature_step_override_
void dump_traits_(const char *tag)
CallbackManager< void(ClimateCall &)> control_callback_
CallbackManager< void(Climate &)> state_callback_
optional< std::string > custom_fan_mode
The active custom fan mode of the climate device.
ClimateSwingMode swing_mode
The active swing mode of the climate device.
optional< float > visual_target_temperature_step_override_
void save_state_()
Internal method to save the state of the climate device to recover memory.
float target_temperature_low
The minimum target temperature of the climate device, for climate devices with split target temperatu...
void set_visual_max_humidity_override(float visual_max_humidity_override)
void add_on_state_callback(std::function< void(Climate &)> &&callback)
Add a callback for the climate device state, each time the state of the climate device is updated (us...
virtual ClimateTraits traits()=0
Get the default traits of this climate device.
bool set_preset_(ClimatePreset preset)
Set preset. Reset custom preset. Return true if preset has been changed.
optional< std::string > custom_preset
The active custom preset mode of the climate device.
void set_visual_max_temperature_override(float visual_max_temperature_override)
optional< float > visual_min_humidity_override_
optional< float > visual_max_temperature_override_
bool set_fan_mode_(ClimateFanMode mode)
Set fan mode. Reset custom fan mode. Return true if fan mode has been changed.
optional< float > visual_min_temperature_override_
void add_on_control_callback(std::function< void(ClimateCall &)> &&callback)
Add a callback for the climate device configuration; each time the configuration parameters of a clim...
float current_temperature
The current temperature of the climate device, as reported from the integration.
ClimateAction action
The active state of the climate device.
ClimateCall make_call()
Make a climate device control call, this is used to control the climate device, see the ClimateCall d...
virtual void control(const ClimateCall &call)=0
Control the climate device, this is a virtual method that each climate integration must implement.
void publish_state()
Publish the state of the climate device, to be called from integrations.
void set_visual_temperature_step_override(float target, float current)
optional< ClimatePreset > preset
The active preset of the climate device.
void set_visual_min_temperature_override(float visual_min_temperature_override)
optional< ClimateDeviceRestoreState > restore_state_()
Restore the state of the climate device, call this from your setup() method.
float target_humidity
The target humidity of the climate device.
float target_temperature_high
The maximum target temperature of the climate device, for climate devices with split target temperatu...
This class contains all static data for climate devices.
float target_temperature_high
ClimateSwingMode swing_mode
float target_temperature_low
ClimatePreset
Enum for all preset modes.
ClimateSwingMode
Enum for all modes a climate swing can be in.
ClimateMode
Enum for all modes a climate device can be in.
@ CLIMATE_MODE_OFF
The climate device is off.
esphome::climate::Climate __attribute__
ClimateAction
Enum for the current action of the climate device. Values match those of ClimateMode.
@ CLIMATE_ACTION_OFF
The climate device is off (inactive or no power)
Providing packet encoding functions for exchanging data with a remote host.
Struct used to save the state of the climate device in restore memory.
ClimateCall to_call(Climate *climate)
Convert this struct to a climate call that can be performed.
float target_temperature_high
void apply(Climate *climate)
Apply these settings to the climate device.
struct esphome::climate::ClimateDeviceRestoreState::@59::@60 __attribute__
bool uses_custom_fan_mode
ClimateSwingMode swing_mode
float target_temperature_low