ESPHome
2024.11.0
|
#include <midea_data.h>
Public Member Functions | |
ControlData () | |
ControlData (const MideaData &data) | |
void | set_temp (float temp) |
float | get_temp () const |
void | set_mode (ClimateMode mode) |
ClimateMode | get_mode () const |
void | set_fan_mode (ClimateFanMode mode) |
ClimateFanMode | get_fan_mode () const |
void | set_sleep_preset (bool value) |
bool | get_sleep_preset () const |
void | set_fahrenheit (bool value) |
bool | get_fahrenheit () const |
void | fix () |
Public Member Functions inherited from esphome::remote_base::MideaData | |
MideaData () | |
MideaData (std::initializer_list< uint8_t > data) | |
MideaData (const std::vector< uint8_t > &data) | |
uint8_t * | data () |
const uint8_t * | data () const |
uint8_t | size () const |
bool | is_valid () const |
void | finalize () |
bool | is_compliment (const MideaData &rhs) const |
std::string | to_string () const |
bool | operator== (const MideaData &rhs) const |
MideaDataType | type () const |
template<typename T > | |
T | to () const |
uint8_t & | operator[] (size_t idx) |
const uint8_t & | operator[] (size_t idx) const |
Protected Types | |
enum | Mode : uint8_t { MODE_COOL, MODE_DRY, MODE_AUTO, MODE_HEAT, MODE_FAN_ONLY } |
enum | FanMode : uint8_t { FAN_AUTO, FAN_LOW, FAN_MEDIUM, FAN_HIGH } |
Protected Member Functions | |
void | set_fan_mode_ (FanMode mode) |
FanMode | get_fan_mode_ () const |
void | set_mode_ (Mode mode) |
Mode | get_mode_ () const |
void | set_power_ (bool value) |
bool | get_power_ () const |
Protected Member Functions inherited from esphome::remote_base::MideaData | |
uint8_t | get_value_ (uint8_t idx, uint8_t mask=255, uint8_t shift=0) const |
void | set_value_ (uint8_t idx, uint8_t value, uint8_t mask=255, uint8_t shift=0) |
void | set_mask_ (uint8_t idx, bool state, uint8_t mask=255) |
uint8_t | calc_cs_ () const |
Additional Inherited Members | |
Public Types inherited from esphome::remote_base::MideaData | |
enum | MideaDataType : uint8_t { MIDEA_TYPE_CONTROL = 0xA1, MIDEA_TYPE_SPECIAL = 0xA2, MIDEA_TYPE_FOLLOW_ME = 0xA4 } |
Protected Attributes inherited from esphome::remote_base::MideaData | |
std::array< uint8_t, 6 > | data_ |
Static Protected Attributes inherited from esphome::remote_base::MideaData | |
static const uint8_t | OFFSET_CS = 5 |
Definition at line 13 of file midea_data.h.
|
protected |
Enumerator | |
---|---|
FAN_AUTO | |
FAN_LOW | |
FAN_MEDIUM | |
FAN_HIGH |
Definition at line 45 of file midea_data.h.
|
protected |
Enumerator | |
---|---|
MODE_COOL | |
MODE_DRY | |
MODE_AUTO | |
MODE_HEAT | |
MODE_FAN_ONLY |
Definition at line 38 of file midea_data.h.
|
inline |
Definition at line 16 of file midea_data.h.
|
inline |
Definition at line 18 of file midea_data.h.
void esphome::midea_ir::ControlData::fix | ( | ) |
Definition at line 31 of file midea_ir.cpp.
|
inline |
Definition at line 33 of file midea_data.h.
ClimateFanMode esphome::midea_ir::ControlData::get_fan_mode | ( | ) | const |
Definition at line 99 of file midea_ir.cpp.
|
inlineprotected |
Definition at line 52 of file midea_data.h.
ClimateMode esphome::midea_ir::ControlData::get_mode | ( | ) | const |
Definition at line 65 of file midea_ir.cpp.
|
inlineprotected |
Definition at line 54 of file midea_data.h.
|
inlineprotected |
Definition at line 56 of file midea_data.h.
|
inline |
Definition at line 30 of file midea_data.h.
float esphome::midea_ir::ControlData::get_temp | ( | ) | const |
Definition at line 24 of file midea_ir.cpp.
|
inline |
Definition at line 32 of file midea_data.h.
void esphome::midea_ir::ControlData::set_fan_mode | ( | ClimateFanMode | mode | ) |
Definition at line 82 of file midea_ir.cpp.
|
inlineprotected |
Definition at line 51 of file midea_data.h.
void esphome::midea_ir::ControlData::set_mode | ( | ClimateMode | mode | ) |
Definition at line 41 of file midea_ir.cpp.
|
inlineprotected |
Definition at line 53 of file midea_data.h.
|
inlineprotected |
Definition at line 55 of file midea_data.h.
|
inline |
Definition at line 29 of file midea_data.h.
void esphome::midea_ir::ControlData::set_temp | ( | float | temp | ) |
Definition at line 12 of file midea_ir.cpp.