12 void setup()
override;
This class is used to encode all control actions on a climate device.
GPIOPin * heating_state_pin_
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 set_current_temperature_id(uint8_t current_temperature_id)
GPIOPin * cooling_state_pin_
void set_tuya_parent(Tuya *parent)
float current_temperature_multiplier_
optional< uint8_t > active_state_cooling_value_
float manual_temperature_
void set_active_state_cooling_value(uint8_t value)
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_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 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_id_
optional< uint8_t > eco_id_
ClimateAction
Enum for the current action of the climate device. Values match those of ClimateMode.
optional< float > eco_temperature_
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_
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_cooling_state_pin(GPIOPin *pin)
Implementation of SPI Controller mode.
void compute_state_()
Re-compute the state of this climate controller.
optional< uint8_t > target_temperature_id_
float target_temperature_multiplier_
void compute_preset_()
Re-compute the active preset of this climate controller.
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)