25 void play(Ts...
x)
override {
26 auto call = this->climate_->make_call();
27 call.set_mode(this->mode_.optional_value(
x...));
28 call.set_target_temperature(this->target_temperature_.optional_value(
x...));
29 call.set_target_temperature_low(this->target_temperature_low_.optional_value(
x...));
30 call.set_target_temperature_high(this->target_temperature_high_.optional_value(
x...));
31 call.set_target_humidity(this->target_humidity_.optional_value(
x...));
32 if (away_.has_value()) {
35 call.set_fan_mode(this->fan_mode_.optional_value(
x...));
36 call.set_fan_mode(this->custom_fan_mode_.optional_value(
x...));
37 call.set_preset(this->preset_.optional_value(
x...));
38 call.set_preset(this->custom_preset_.optional_value(
x...));
39 call.set_swing_mode(this->swing_mode_.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
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
StateTrigger(Climate *climate)
BedjetMode mode
BedJet operating mode.
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)
Implementation of SPI Controller mode.
virtual void play(Ts... x)=0
ClimateDevice - This is the base class for all climate integrations.