ESPHome  2024.11.0
Data Structures | Enumerations | Variables
esphome::haier::hon_protocol Namespace Reference

Data Structures

struct  DeviceVersionAnswer
 
struct  HaierPacketBigData
 
struct  HaierPacketControl
 
struct  HaierPacketSensors
 

Enumerations

enum  VerticalSwingMode : uint8_t {
  VerticalSwingMode::HEALTH_UP = 0x01, VerticalSwingMode::MAX_UP = 0x02, VerticalSwingMode::HEALTH_DOWN = 0x03, VerticalSwingMode::UP = 0x04,
  VerticalSwingMode::CENTER = 0x06, VerticalSwingMode::DOWN = 0x08, VerticalSwingMode::MAX_DOWN = 0x0A, VerticalSwingMode::AUTO = 0x0C,
  VerticalSwingMode::AUTO_SPECIAL = 0x0E
}
 
enum  HorizontalSwingMode : uint8_t {
  HorizontalSwingMode::CENTER = 0x00, HorizontalSwingMode::MAX_LEFT = 0x03, HorizontalSwingMode::LEFT = 0x04, HorizontalSwingMode::RIGHT = 0x05,
  HorizontalSwingMode::MAX_RIGHT = 0x06, HorizontalSwingMode::AUTO = 0x07
}
 
enum  ConditioningMode : uint8_t {
  ConditioningMode::AUTO = 0x00, ConditioningMode::COOL = 0x01, ConditioningMode::DRY = 0x02, ConditioningMode::HEALTHY_DRY = 0x03,
  ConditioningMode::HEAT = 0x04, ConditioningMode::ENERGY_SAVING = 0x05, ConditioningMode::FAN = 0x06
}
 
enum  DataParameters : uint8_t {
  DataParameters::AC_POWER = 0x01, DataParameters::SET_POINT = 0x02, DataParameters::VERTICAL_SWING_MODE = 0x03, DataParameters::AC_MODE = 0x04,
  DataParameters::FAN_MODE = 0x05, DataParameters::USE_FAHRENHEIT = 0x07, DataParameters::DISPLAY_STATUS = 0x09, DataParameters::TEN_DEGREE = 0x0A,
  DataParameters::HEALTH_MODE = 0x0B, DataParameters::HORIZONTAL_SWING_MODE = 0x0C, DataParameters::SELF_CLEANING = 0x0D, DataParameters::BEEPER_STATUS = 0x16,
  DataParameters::LOCK_REMOTE = 0x17, DataParameters::QUIET_MODE = 0x19, DataParameters::FAST_MODE = 0x1A, DataParameters::SLEEP_MODE = 0x1B
}
 
enum  SpecialMode : uint8_t { SpecialMode::NONE = 0x00, SpecialMode::ELDERLY = 0x01, SpecialMode::CHILDREN = 0x02, SpecialMode::PREGNANT = 0x03 }
 
enum  FanMode : uint8_t { FanMode::FAN_HIGH = 0x01, FanMode::FAN_MID = 0x02, FanMode::FAN_LOW = 0x03, FanMode::FAN_AUTO = 0x05 }
 
enum  SubcommandsControl : uint16_t {
  SubcommandsControl::GET_PARAMETERS = 0x4C01, SubcommandsControl::GET_USER_DATA = 0x4D01, SubcommandsControl::GET_BIG_DATA = 0x4DFE, SubcommandsControl::SET_PARAMETERS = 0x5C01,
  SubcommandsControl::SET_SINGLE_PARAMETER = 0x5D00, SubcommandsControl::SET_GROUP_PARAMETERS = 0x6001
}
 

Variables

const std::string HON_ALARM_MESSAGES []
 
constexpr size_t HON_ALARM_COUNT = sizeof(HON_ALARM_MESSAGES) / sizeof(HON_ALARM_MESSAGES[0])
 

Enumeration Type Documentation

◆ ConditioningMode

Enumerator
AUTO 
COOL 
DRY 
HEALTHY_DRY 
HEAT 
ENERGY_SAVING 
FAN 

Definition at line 31 of file hon_packet.h.

◆ DataParameters

Enumerator
AC_POWER 
SET_POINT 
VERTICAL_SWING_MODE 
AC_MODE 
FAN_MODE 
USE_FAHRENHEIT 
DISPLAY_STATUS 
TEN_DEGREE 
HEALTH_MODE 
HORIZONTAL_SWING_MODE 
SELF_CLEANING 
BEEPER_STATUS 
LOCK_REMOTE 
QUIET_MODE 
FAST_MODE 
SLEEP_MODE 

Definition at line 41 of file hon_packet.h.

◆ FanMode

Enumerator
FAN_HIGH 
FAN_MID 
FAN_LOW 
FAN_AUTO 

Definition at line 62 of file hon_packet.h.

◆ HorizontalSwingMode

Enumerator
CENTER 
MAX_LEFT 
LEFT 
RIGHT 
MAX_RIGHT 
AUTO 

Definition at line 22 of file hon_packet.h.

◆ SpecialMode

Enumerator
NONE 
ELDERLY 
CHILDREN 
PREGNANT 

Definition at line 60 of file hon_packet.h.

◆ SubcommandsControl

Enumerator
GET_PARAMETERS 
GET_USER_DATA 
GET_BIG_DATA 
SET_PARAMETERS 
SET_SINGLE_PARAMETER 
SET_GROUP_PARAMETERS 

Definition at line 189 of file hon_packet.h.

◆ VerticalSwingMode

Enumerator
HEALTH_UP 
MAX_UP 
HEALTH_DOWN 
UP 
CENTER 
DOWN 
MAX_DOWN 
AUTO 
AUTO_SPECIAL 

Definition at line 9 of file hon_packet.h.

Variable Documentation

◆ HON_ALARM_COUNT

constexpr size_t esphome::haier::hon_protocol::HON_ALARM_COUNT = sizeof(HON_ALARM_MESSAGES) / sizeof(HON_ALARM_MESSAGES[0])

Definition at line 256 of file hon_packet.h.

◆ HON_ALARM_MESSAGES

const std::string esphome::haier::hon_protocol::HON_ALARM_MESSAGES[]

Definition at line 202 of file hon_packet.h.