12 void setup()
override;
This class is used to encode all control actions on a climate device.
GPIOPin * heating_state_pin_
void set_active_state_fanonly_value(uint8_t value)
optional< uint8_t > sleep_id_
optional< uint8_t > fan_speed_low_value_
optional< uint8_t > swing_vertical_id_
void switch_to_action_(climate::ClimateAction action)
Switch the climate device to the given climate mode.
This class contains all static data for climate devices.
void control_fan_mode_(const climate::ClimateCall &call)
Override control to change settings of fan mode.
void set_current_temperature_id(uint8_t current_temperature_id)
optional< uint8_t > fan_speed_medium_value_
GPIOPin * cooling_state_pin_
void set_tuya_parent(Tuya *parent)
float current_temperature_multiplier_
optional< uint8_t > active_state_cooling_value_
float manual_temperature_
optional< uint8_t > swing_horizontal_id_
void set_active_state_cooling_value(uint8_t value)
void set_fan_speed_id(uint8_t fan_speed_id)
void set_eco_temperature(float eco_temperature)
void set_target_temperature_multiplier(float temperature_multiplier)
void set_supports_cool(bool supports_cool)
optional< uint8_t > switch_id_
void compute_swingmode_()
Re-Compute the swing mode of this climate controller.
optional< uint8_t > fan_speed_auto_value_
void set_fan_speed_middle_value(uint8_t fan_speed_middle_value)
optional< uint8_t > active_state_drying_value_
void compute_target_temperature_()
Re-compute the target temperature of this climate controller.
void set_supports_heat(bool supports_heat)
void set_reports_fahrenheit()
void dump_config() override
void compute_fanmode_()
Re-Compute the fan mode of this climate controller.
void set_switch_id(uint8_t switch_id)
void control(const climate::ClimateCall &call) override
Override control to change settings of the climate device.
optional< uint8_t > active_state_fanonly_value_
optional< uint8_t > active_state_id_
optional< uint8_t > eco_id_
ClimateAction
Enum for the current action of the climate device. Values match those of ClimateMode.
void set_swing_horizontal_id(uint8_t swing_horizontal_id)
void set_sleep_id(uint8_t sleep_id)
optional< float > eco_temperature_
void set_fan_speed_high_value(uint8_t fan_speed_high_value)
void set_fan_speed_low_value(uint8_t fan_speed_low_value)
optional< uint8_t > fan_speed_middle_value_
optional< uint8_t > fan_speed_high_value_
void set_active_state_id(uint8_t state_id)
void set_heating_state_pin(GPIOPin *pin)
void set_current_temperature_multiplier(float temperature_multiplier)
optional< uint8_t > active_state_heating_value_
void set_fan_speed_medium_value(uint8_t fan_speed_medium_value)
climate::ClimateTraits traits() override
Return the traits of this controller.
void set_target_temperature_id(uint8_t target_temperature_id)
void set_active_state_heating_value(uint8_t value)
void set_fan_speed_auto_value(uint8_t fan_speed_auto_value)
void set_cooling_state_pin(GPIOPin *pin)
Implementation of SPI Controller mode.
optional< uint8_t > fan_speed_id_
void set_active_state_drying_value(uint8_t value)
void compute_state_()
Re-compute the state of this climate controller.
optional< uint8_t > target_temperature_id_
void control_swing_mode_(const climate::ClimateCall &call)
Override control to change settings of swing mode.
float target_temperature_multiplier_
void compute_preset_()
Re-compute the active preset of this climate controller.
void set_swing_vertical_id(uint8_t swing_vertical_id)
optional< uint8_t > current_temperature_id_
ClimateAction action
The active state of the climate device.
ClimateDevice - This is the base class for all climate integrations.
void set_eco_id(uint8_t eco_id)