26 call.
set_mode(this->mode_.optional_value(x...));
30 if (away_.has_value()) {
34 call.
set_fan_mode(this->custom_fan_mode_.optional_value(x...));
35 call.
set_preset(this->preset_.optional_value(x...));
36 call.
set_preset(this->custom_preset_.optional_value(x...));
This class is used to encode all control actions on a climate device.
float target_temperature_low
ClimatePreset
Enum for all preset modes.
Device is in home preset.
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 target_temperature_high
ClimateCall & set_swing_mode(ClimateSwingMode swing_mode)
Set the swing mode of the climate device.
ClimateSwingMode swing_mode
ClimateSwingMode
Enum for all modes a climate swing can be in.
Device is in away preset.
TEMPLATABLE_VALUE(ClimateMode, mode) TEMPLATABLE_VALUE(float
ClimateCall & set_target_temperature_low(float target_temperature_low)
Set the low point target temperature of the climate device.
StateTrigger(Climate *climate)
ClimateCall make_call()
Make a climate device control call, this is used to control the climate device, see the ClimateCall d...
ClimateCall & set_target_temperature(float target_temperature)
Set the target temperature of the climate device.
ClimateCall & set_preset(ClimatePreset preset)
Set the preset of the climate device.
BedjetMode mode
BedJet operating mode.
ClimateCall & set_fan_mode(ClimateFanMode fan_mode)
Set the fan mode of the climate device.
ControlTrigger(Climate *climate)
ClimateMode
Enum for all modes a climate device can be in.
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...
ControlAction(Climate *climate)
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.
target_temperature target_temperature_high fan_mode preset swing_mode void play(Ts... x) override
ClimateDevice - This is the base class for all climate integrations.