ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::gree Namespace Reference

Data Structures

class  GreeClimate
 
class  GreeClimateCodec
 
struct  GreeClimateData
 
class  GreeProtocol
 

Typedefs

using GreeState = std::array<uint8_t, GREE_STATE_FRAME_SIZE>
 

Enumerations

enum  Model : uint8_t {
  GREE_GENERIC , GREE_YAN , GREE_YAA , GREE_YAC ,
  GREE_YAC1FB9 , GREE_YB1FA , GREE_YX1FF , GREE_YAG ,
  GREE_YAW1F
}
 
enum  GreeFeature : uint8_t { GREE_FEATURE_TURBO = 0 , GREE_FEATURE_LIGHT = 1 , GREE_FEATURE_HEALTH = 2 , GREE_FEATURE_XFAN = 3 }
 

Functions

 ESPHOME_LOG_TAG (TAG, "gree.climate")
 
uint8_t fahrenheit_half_steps (float target_celsius)
 Return k = 2 * temp_field + half_degree_bit (0..28) for a Celsius target.
 

Typedef Documentation

◆ GreeState

using esphome::gree::GreeState = std::array<uint8_t, GREE_STATE_FRAME_SIZE>

Definition at line 131 of file gree.h.

Enumeration Type Documentation

◆ GreeFeature

Enumerator
GREE_FEATURE_TURBO 
GREE_FEATURE_LIGHT 
GREE_FEATURE_HEALTH 
GREE_FEATURE_XFAN 

Definition at line 122 of file gree.h.

◆ Model

enum esphome::gree::Model : uint8_t
Enumerator
GREE_GENERIC 
GREE_YAN 
GREE_YAA 
GREE_YAC 
GREE_YAC1FB9 
GREE_YB1FA 
GREE_YX1FF 
GREE_YAG 
GREE_YAW1F 

Definition at line 110 of file gree.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::gree::ESPHOME_LOG_TAG ( TAG ,
"gree.climate"  )

◆ fahrenheit_half_steps()

uint8_t esphome::gree::fahrenheit_half_steps ( float target_celsius)

Return k = 2 * temp_field + half_degree_bit (0..28) for a Celsius target.

The unit displays trunc(celsius_to_fahrenheit(GREE_TEMP_MIN + k / 2)), so k is the smallest value that shows the target in F.

Definition at line 36 of file gree.cpp.