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

#include <gree.h>

Static Public Member Functions

static GreeState encode (Model model, const GreeClimateData &data)
 
static optional< GreeClimateData > decode (Model model, const GreeState &state)
 Decode a frame whose checksum the protocol layer already checked.
 

Static Protected Member Functions

static uint8_t encode_operation_mode (climate::ClimateMode mode)
 
static uint8_t encode_fan_mode (Model model, climate::ClimateFanMode fan_mode)
 
static uint8_t encode_horizontal_swing (climate::ClimateSwingMode swing_mode)
 
static uint8_t encode_vertical_swing (climate::ClimateSwingMode swing_mode)
 
static optional< GreeClimateData > decode_legacy (Model model, const GreeState &state)
 
static optional< GreeClimateData > decode_model_a (Model model, const GreeState &state)
 

Detailed Description

Definition at line 163 of file gree.h.

Member Function Documentation

◆ decode()

optional< GreeClimateData > esphome::gree::GreeClimateCodec::decode ( Model model,
const GreeState & state )
static

Decode a frame whose checksum the protocol layer already checked.

Definition at line 293 of file gree.cpp.

◆ decode_legacy()

optional< GreeClimateData > esphome::gree::GreeClimateCodec::decode_legacy ( Model model,
const GreeState & state )
staticprotected

Definition at line 355 of file gree.cpp.

◆ decode_model_a()

optional< GreeClimateData > esphome::gree::GreeClimateCodec::decode_model_a ( Model model,
const GreeState & state )
staticprotected

Definition at line 422 of file gree.cpp.

◆ encode()

GreeState esphome::gree::GreeClimateCodec::encode ( Model model,
const GreeClimateData & data )
static

Definition at line 234 of file gree.cpp.

◆ encode_fan_mode()

uint8_t esphome::gree::GreeClimateCodec::encode_fan_mode ( Model model,
climate::ClimateFanMode fan_mode )
staticprotected

Definition at line 314 of file gree.cpp.

◆ encode_horizontal_swing()

uint8_t esphome::gree::GreeClimateCodec::encode_horizontal_swing ( climate::ClimateSwingMode swing_mode)
staticprotected

Definition at line 334 of file gree.cpp.

◆ encode_operation_mode()

uint8_t esphome::gree::GreeClimateCodec::encode_operation_mode ( climate::ClimateMode mode)
staticprotected

Definition at line 300 of file gree.cpp.

◆ encode_vertical_swing()

uint8_t esphome::gree::GreeClimateCodec::encode_vertical_swing ( climate::ClimateSwingMode swing_mode)
staticprotected

Definition at line 344 of file gree.cpp.


The documentation for this class was generated from the following files: