ESPHome
2023.8.3
|
Struct used to save the state of the climate device in restore memory. More...
#include <climate.h>
Public Member Functions | |
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 |
union { | |
float target_temperature | |
struct { | |
float target_temperature_low | |
float target_temperature_high | |
} | |
}; | |
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.
void esphome::climate::ClimateDeviceRestoreState::apply | ( | Climate * | climate | ) |
Apply these settings to the climate device.
Definition at line 466 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 445 of file climate.cpp.
union { ... } |
union { ... } |
union { ... } |
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_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} |