ESPHome
2024.10.2
|
Struct used to save the state of the climate device in restore memory. More...
#include <climate.h>
Public Member Functions | |
union { | |
float target_temperature | |
struct { | |
float target_temperature_low | |
float target_temperature_high | |
} __attribute__ | |
} | __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... | |
Data Fields | |
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 |
float | target_humidity |
Struct used to save the state of the climate device in restore memory.
Make sure to update RESTORE_STATE_VERSION when changing the struct entries.
union esphome::climate::ClimateDeviceRestoreState::@59 esphome::climate::ClimateDeviceRestoreState::__attribute__ | ( | (packed) | ) |
void esphome::climate::ClimateDeviceRestoreState::apply | ( | Climate * | climate | ) |
Apply these settings to the climate device.
Definition at line 505 of file climate.cpp.
ClimateCall esphome::climate::ClimateDeviceRestoreState::to_call | ( | Climate * | climate | ) |
Convert this struct to a climate call that can be performed.
Definition at line 481 of file climate.cpp.
union { ... } |
union { ... } |
struct { ... } esphome::climate::ClimateDeviceRestoreState::__attribute__ |
uint8_t esphome::climate::ClimateDeviceRestoreState::custom_fan_mode |
uint8_t esphome::climate::ClimateDeviceRestoreState::custom_preset |
ClimateFanMode esphome::climate::ClimateDeviceRestoreState::fan_mode |
ClimateMode esphome::climate::ClimateDeviceRestoreState::mode |
ClimatePreset esphome::climate::ClimateDeviceRestoreState::preset |
ClimateSwingMode esphome::climate::ClimateDeviceRestoreState::swing_mode |
float esphome::climate::ClimateDeviceRestoreState::target_humidity |
float esphome::climate::ClimateDeviceRestoreState::target_temperature |
float esphome::climate::ClimateDeviceRestoreState::target_temperature_high |
float esphome::climate::ClimateDeviceRestoreState::target_temperature_low |
bool esphome::climate::ClimateDeviceRestoreState::uses_custom_fan_mode {false} |
bool esphome::climate::ClimateDeviceRestoreState::uses_custom_preset {false} |