25 void setup()
override;
26 void dump_config()
override;
28 void set_supports_cool(
bool supports_cool) { this->
supports_cool_ = supports_cool; }
29 void set_supports_heat(
bool supports_heat) { this->
supports_heat_ = supports_heat; }
void compute_state_()
Re-compute the state of this climate controller.
BangBangClimateTargetTempConfig away_config_
bool supports_cool_
Whether the controller supports cooling/heating.
climate::ClimateTraits traits() override
Return the traits of this controller.
Trigger idle_trigger_
The trigger to call when the controller should switch to idle mode.
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
void change_away_(bool away)
Change the away setting, will reset target temperatures to defaults.
Trigger * prev_trigger_
A reference to the trigger that was previously active.
void switch_to_action_(climate::ClimateAction action)
Switch the climate device to the given climate mode.
Trigger cool_trigger_
The trigger to call when the controller should switch to cooling mode.
BangBangClimateTargetTempConfig normal_config_
Trigger heat_trigger_
The trigger to call when the controller should switch to heating mode.
This class is used to encode all control actions on a climate device.
ClimateDevice - This is the base class for all climate integrations.
ClimateAction action
The active state of the climate device.
ClimateAction
Enum for the current action of the climate device. Values match those of ClimateMode.
BangBangClimateTargetTempConfig()
float default_temperature_high
float default_temperature_low