21 this->current_temperature = 20.0;
34 this->current_temperature = 21.5;
43 this->publish_state();
79 this->publish_state();
85 traits.set_supports_current_temperature(
true);
86 traits.set_supported_modes({
90 traits.set_supports_action(
true);
91 traits.set_visual_temperature_step(0.5);
94 traits.set_supports_current_temperature(
false);
95 traits.set_supported_modes({
103 traits.set_supports_action(
true);
104 traits.set_supported_fan_modes({
116 traits.set_supported_custom_fan_modes({
"Auto Low",
"Auto High"});
117 traits.set_supported_swing_modes({
123 traits.set_supported_custom_presets({
"My Preset"});
126 traits.set_supports_current_temperature(
true);
127 traits.set_supports_two_point_target_temperature(
true);
128 traits.set_supported_modes({
134 traits.set_supported_custom_fan_modes({
"Auto Low",
"Auto High"});
135 traits.set_supported_swing_modes({
139 traits.set_supported_presets({
This class is used to encode all control actions on a climate device.
The fan mode is set to Low.
The fan mode is set to Quiet.
float target_temperature_low
The fan mode is set to Both.
climate::ClimateTraits traits() override
Device is in home preset.
const optional< ClimateMode > & get_mode() const
The fan mode is set to Middle.
This class contains all static data for climate devices.
The climate device is set to heat to reach the target temperature.
void control(const climate::ClimateCall &call) override
const optional< float > & get_target_temperature_low() const
The fan mode is set to Diffuse.
The climate device is set to dry/humidity mode.
float target_temperature_high
ClimateSwingMode swing_mode
Device is prepared for sleep.
Device is in away preset.
Device is in comfort preset.
const optional< std::string > & get_custom_preset() const
The fan mode is set to Horizontal.
The climate device is set to cool to reach the target temperature.
Device is reacting to activity (e.g., movement sensors)
const optional< ClimatePreset > & get_preset() const
The fan mode is set to Auto.
BedjetMode mode
BedJet operating mode.
The climate device is adjusting the temperatre dynamically.
The climate device is set to heat/cool to reach the target temperature.
The fan mode is set to Vertical.
The climate device is actively heating.
void set_type(DemoClimateType type)
The fan mode is set to Focus.
const optional< std::string > & get_custom_fan_mode() const
The fan mode is set to Off.
const optional< float > & get_target_temperature() const
The fan mode is set to High.
The swing mode is set to Off.
The climate device is off.
const optional< ClimateFanMode > & get_fan_mode() const
Device is in boost preset.
The fan mode is set to On.
const optional< ClimateSwingMode > & get_swing_mode() const
Implementation of SPI Controller mode.
Device is running an energy-saving preset.
The fan mode is set to Medium.
const optional< float > & get_target_temperature_high() const
The climate device only has the fan enabled, no heating or cooling is taking place.
The climate device is actively cooling.
ClimateDevice - This is the base class for all climate integrations.