ESPHome  2021.11.3
Data Structures | Namespaces | Functions | Variables
climate.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::climate::ClimateCall
 This class is used to encode all control actions on a climate device. More...
 
struct  esphome::climate::ClimateDeviceRestoreState
 Struct used to save the state of the climate device in restore memory. More...
 
class  esphome::climate::Climate
 ClimateDevice - This is the base class for all climate integrations. More...
 

Namespaces

 esphome
 Library based on https://github.com/miguelbalboa/rfid and adapted to ESPHome by .
 
 esphome::climate
 

Functions

struct esphome::climate::ClimateDeviceRestoreState esphome::climate::__attribute__ ((packed))
 
ClimateCall to_call (Climate *climate)
 Convert this struct to a climate call that can be performed. More...
 
void apply (Climate *climate)
 Apply these settings to the climate device. More...
 

Variables

ClimateMode mode
 
bool uses_custom_fan_mode {false}
 
union {
   ClimateFanMode   fan_mode
 
   uint8_t   custom_fan_mode
 
}; 
 
bool uses_custom_preset {false}
 
union {
   ClimatePreset   preset
 
   uint8_t   custom_preset
 
}; 
 
ClimateSwingMode swing_mode
 
union {
   float   target_temperature
 
   struct {
      float   target_temperature_low
 
      float   target_temperature_high
 
   } 
 
}; 
 
esphome::climate::Climate esphome::climate::__attribute__
 

Function Documentation

◆ apply()

void __attribute__::apply ( Climate *  climate)

Apply these settings to the climate device.

◆ to_call()

ClimateCall __attribute__::to_call ( Climate *  climate)

Convert this struct to a climate call that can be performed.

Variable Documentation

◆ @14

union { ... }

◆ @16

union { ... }

◆ @18

union { ... }

◆ custom_fan_mode

uint8_t custom_fan_mode

Definition at line 538 of file climate.h.

◆ custom_preset

uint8_t custom_preset

Definition at line 543 of file climate.h.

◆ fan_mode

ClimateFanMode fan_mode

Definition at line 537 of file climate.h.

◆ mode

ClimateMode mode

Definition at line 534 of file climate.h.

◆ preset

ClimatePreset preset

Definition at line 542 of file climate.h.

◆ swing_mode

ClimateSwingMode swing_mode

Definition at line 545 of file climate.h.

◆ target_temperature

float target_temperature

Definition at line 547 of file climate.h.

◆ target_temperature_high

float target_temperature_high

Definition at line 550 of file climate.h.

◆ target_temperature_low

float target_temperature_low

Definition at line 549 of file climate.h.

◆ uses_custom_fan_mode

bool uses_custom_fan_mode {false}

Definition at line 535 of file climate.h.

◆ uses_custom_preset

bool uses_custom_preset {false}

Definition at line 540 of file climate.h.