IRremoteESP8266
ir_Gree.h
Go to the documentation of this file.
1 // Copyright 2016 David Conran
2 
7 
8 // Supports:
9 // Brand: Ultimate, Model: Heat Pump
10 // Brand: EKOKAI, Model: A/C
11 // Brand: RusClimate, Model: EACS/I-09HAR_X/N3 A/C
12 // Brand: RusClimate, Model: YAW1F remote
13 // Brand: Green, Model: YBOFB remote
14 // Brand: Green, Model: YBOFB2 remote
15 // Brand: Gree, Model: YAA1FBF remote
16 // Brand: Gree, Model: YB1F2F remote
17 // Brand: Gree, Model: YAN1F1 remote
18 // Brand: Gree, Model: VIR09HP115V1AH A/C
19 // Brand: Gree, Model: VIR12HP230V1AH A/C
20 // Brand: Amana, Model: PBC093G00CC A/C
21 // Brand: Amana, Model: YX1FF remote
22 // Brand: Cooper & Hunter, Model: YB1F2 remote
23 // Brand: Cooper & Hunter, Model: CH-S09FTXG A/C
24 // Brand: Vailland, Model: YACIFB remote
25 // Brand: Vailland, Model: VAI5-035WNI A/C
26 
27 #ifndef IR_GREE_H_
28 #define IR_GREE_H_
29 
30 #define __STDC_LIMIT_MACROS
31 #include <stdint.h>
32 #ifndef UNIT_TEST
33 #include <Arduino.h>
34 #endif
35 #include "IRremoteESP8266.h"
36 #include "IRsend.h"
37 #ifdef UNIT_TEST
38 #include "IRsend_test.h"
39 #endif
40 
44  struct {
45  // Byte 0
46  uint8_t Mode :3;
47  uint8_t Power :1;
48  uint8_t Fan :2;
49  uint8_t SwingAuto :1;
50  uint8_t Sleep :1;
51  // Byte 1
52  uint8_t Temp :4;
53  uint8_t TimerHalfHr :1;
54  uint8_t TimerTensHr :2;
55  uint8_t TimerEnabled:1;
56  // Byte 2
57  uint8_t TimerHours:4;
58  uint8_t Turbo :1;
59  uint8_t Light :1;
60  uint8_t ModelA :1; // model==YAW1F
61  uint8_t Xfan :1;
62  // Byte 3
63  uint8_t :2;
64  uint8_t TempExtraDegreeF:1;
65  uint8_t UseFahrenheit :1;
66  uint8_t unknown1 :4; // value=0b0101
67  // Byte 4
68  uint8_t SwingV :4;
69  uint8_t SwingH :3;
70  uint8_t :1;
71  // Byte 5
72  uint8_t DisplayTemp :2;
73  uint8_t IFeel :1;
74  uint8_t unknown2 :3; // value = 0b100
75  uint8_t WiFi :1;
76  uint8_t :1;
77  // Byte 6
78  uint8_t :8;
79  // Byte 7
80  uint8_t :2;
81  uint8_t Econo :1;
82  uint8_t :1;
83  uint8_t Sum :4;
84  };
85 };
86 
87 // Constants
88 
89 const uint8_t kGreeAuto = 0;
90 const uint8_t kGreeCool = 1;
91 const uint8_t kGreeDry = 2;
92 const uint8_t kGreeFan = 3;
93 const uint8_t kGreeHeat = 4;
94 
95 const uint8_t kGreeFanAuto = 0;
96 const uint8_t kGreeFanMin = 1;
97 const uint8_t kGreeFanMed = 2;
98 const uint8_t kGreeFanMax = 3;
99 
100 const uint8_t kGreeMinTempC = 16; // Celsius
101 const uint8_t kGreeMaxTempC = 30; // Celsius
102 const uint8_t kGreeMinTempF = 61; // Fahrenheit
103 const uint8_t kGreeMaxTempF = 86; // Fahrenheit
104 const uint16_t kGreeTimerMax = 24 * 60;
105 
106 const uint8_t kGreeSwingLastPos = 0b0000; // 0
107 const uint8_t kGreeSwingAuto = 0b0001; // 1
108 const uint8_t kGreeSwingUp = 0b0010; // 2
109 const uint8_t kGreeSwingMiddleUp = 0b0011; // 3
110 const uint8_t kGreeSwingMiddle = 0b0100; // 4
111 const uint8_t kGreeSwingMiddleDown = 0b0101; // 5
112 const uint8_t kGreeSwingDown = 0b0110; // 6
113 const uint8_t kGreeSwingDownAuto = 0b0111; // 7
114 const uint8_t kGreeSwingMiddleAuto = 0b1001; // 9
115 const uint8_t kGreeSwingUpAuto = 0b1011; // 11
116 
117 const uint8_t kGreeSwingHOff = 0b000; // 0
118 const uint8_t kGreeSwingHAuto = 0b001; // 1
119 const uint8_t kGreeSwingHMaxLeft = 0b010; // 2
120 const uint8_t kGreeSwingHLeft = 0b011; // 3
121 const uint8_t kGreeSwingHMiddle = 0b100; // 4
122 const uint8_t kGreeSwingHRight = 0b101; // 5
123 const uint8_t kGreeSwingHMaxRight = 0b110; // 6
124 
125 const uint8_t kGreeDisplayTempOff = 0b00; // 0
126 const uint8_t kGreeDisplayTempSet = 0b01; // 1
127 const uint8_t kGreeDisplayTempInside = 0b10; // 2
128 const uint8_t kGreeDisplayTempOutside = 0b11; // 3
129 
130 // Legacy defines.
131 #define GREE_AUTO kGreeAuto
132 #define GREE_COOL kGreeCool
133 #define GREE_DRY kGreeDry
134 #define GREE_FAN kGreeFan
135 #define GREE_HEAT kGreeHeat
136 #define GREE_MIN_TEMP kGreeMinTempC
137 #define GREE_MAX_TEMP kGreeMaxTempC
138 #define GREE_FAN_MAX kGreeFanMax
139 #define GREE_SWING_LAST_POS kGreeSwingLastPos
140 #define GREE_SWING_AUTO kGreeSwingAuto
141 #define GREE_SWING_UP kGreeSwingUp
142 #define GREE_SWING_MIDDLE_UP kGreeSwingMiddleUp
143 #define GREE_SWING_MIDDLE kGreeSwingMiddle
144 #define GREE_SWING_MIDDLE_DOWN kGreeSwingMiddleDown
145 #define GREE_SWING_DOWN kGreeSwingDown
146 #define GREE_SWING_DOWN_AUTO kGreeSwingDownAuto
147 #define GREE_SWING_MIDDLE_AUTO kGreeSwingMiddleAuto
148 #define GREE_SWING_UP_AUTO kGreeSwingUpAuto
149 
150 // Classes
152 class IRGreeAC {
153  public:
154  explicit IRGreeAC(
155  const uint16_t pin,
157  const bool inverted = false, const bool use_modulation = true);
158  void stateReset(void);
159 #if SEND_GREE
160  void send(const uint16_t repeat = kGreeDefaultRepeat);
165  int8_t calibrate(void) { return _irsend.calibrate(); }
166 #endif // SEND_GREE
167  void begin(void);
168  void on(void);
169  void off(void);
170  void setModel(const gree_ac_remote_model_t model);
171  gree_ac_remote_model_t getModel(void) const;
172  void setPower(const bool on);
173  bool getPower(void) const;
174  void setTemp(const uint8_t temp, const bool fahrenheit = false);
175  uint8_t getTemp(void) const;
176  void setUseFahrenheit(const bool on);
177  bool getUseFahrenheit(void) const;
178  void setFan(const uint8_t speed);
179  uint8_t getFan(void) const;
180  void setMode(const uint8_t new_mode);
181  uint8_t getMode(void) const;
182  void setLight(const bool on);
183  bool getLight(void) const;
184  void setXFan(const bool on);
185  bool getXFan(void) const;
186  void setSleep(const bool on);
187  bool getSleep(void) const;
188  void setTurbo(const bool on);
189  bool getTurbo(void) const;
190  void setEcono(const bool on);
191  bool getEcono(void) const;
192  void setIFeel(const bool on);
193  bool getIFeel(void) const;
194  void setWiFi(const bool on);
195  bool getWiFi(void) const;
196  void setSwingVertical(const bool automatic, const uint8_t position);
197  bool getSwingVerticalAuto(void) const;
198  uint8_t getSwingVerticalPosition(void) const;
199  void setSwingHorizontal(const uint8_t position);
200  uint8_t getSwingHorizontal(void) const;
201  uint16_t getTimer(void) const;
202  void setTimer(const uint16_t minutes);
203  void setDisplayTempSource(const uint8_t mode);
204  uint8_t getDisplayTempSource(void) const;
205  static uint8_t convertMode(const stdAc::opmode_t mode);
206  static uint8_t convertFan(const stdAc::fanspeed_t speed);
207  static uint8_t convertSwingV(const stdAc::swingv_t swingv);
208  static uint8_t convertSwingH(const stdAc::swingh_t swingh);
209  static stdAc::opmode_t toCommonMode(const uint8_t mode);
210  static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
211  static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
212  static stdAc::swingh_t toCommonSwingH(const uint8_t pos);
213  stdAc::state_t toCommon(void);
214  uint8_t* getRaw(void);
215  void setRaw(const uint8_t new_code[]);
216  static bool validChecksum(const uint8_t state[],
217  const uint16_t length = kGreeStateLength);
218  String toString(void);
219 #ifndef UNIT_TEST
220 
221  private:
223 #else // UNIT_TEST
224  IRsendTest _irsend;
226 #endif // UNIT_TEST
230  void checksum(const uint16_t length = kGreeStateLength);
231  void fixup(void);
232  void setTimerEnabled(const bool on);
233  bool getTimerEnabled(void) const;
234 };
235 
236 #endif // IR_GREE_H_
IRGreeAC::setSwingVertical
void setSwingVertical(const bool automatic, const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Gree.cpp:364
GreeProtocol::ModelA
uint8_t ModelA
Definition: ir_Gree.h:60
kGreeSwingHLeft
const uint8_t kGreeSwingHLeft
Definition: ir_Gree.h:120
GreeProtocol::Temp
uint8_t Temp
Definition: ir_Gree.h:52
GreeProtocol::Mode
uint8_t Mode
Definition: ir_Gree.h:46
IRGreeAC::_
GreeProtocol _
Definition: ir_Gree.h:228
IRGreeAC::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Gree.cpp:303
IRGreeAC::getWiFi
bool getWiFi(void) const
Get the Wifi (enabled) setting of the A/C.
Definition: ir_Gree.cpp:327
kGreeStateLength
const uint16_t kGreeStateLength
Definition: IRremoteESP8266.h:1121
kGreeSwingUp
const uint8_t kGreeSwingUp
Definition: ir_Gree.h:108
stdAc::swingv_t
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
IRGreeAC::validChecksum
static bool validChecksum(const uint8_t state[], const uint16_t length=kGreeStateLength)
Verify the checksum is valid for a given state.
Definition: ir_Gree.cpp:178
IRGreeAC::toString
String toString(void)
Convert the current internal state into a human readable string.
Definition: ir_Gree.cpp:606
IRGreeAC::off
void off(void)
Change the power setting to Off.
Definition: ir_Gree.cpp:202
kGreeFan
const uint8_t kGreeFan
Definition: ir_Gree.h:92
IRGreeAC::setSwingHorizontal
void setSwingHorizontal(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Gree.cpp:406
IRGreeAC::setXFan
void setXFan(const bool on)
Set the XFan (Mould) setting of the A/C.
Definition: ir_Gree.cpp:331
IRGreeAC::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Gree.cpp:524
GreeProtocol::SwingH
uint8_t SwingH
Definition: ir_Gree.h:69
IRGreeAC::getIFeel
bool getIFeel(void) const
Get the IFeel setting of the A/C.
Definition: ir_Gree.cpp:319
kGreeSwingHRight
const uint8_t kGreeSwingHRight
Definition: ir_Gree.h:122
GreeProtocol::SwingV
uint8_t SwingV
Definition: ir_Gree.h:68
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
IRGreeAC::getLight
bool getLight(void) const
Get the Light (LED) setting of the A/C.
Definition: ir_Gree.cpp:311
GreeProtocol::SwingAuto
uint8_t SwingAuto
Definition: ir_Gree.h:49
GreeProtocol::TempExtraDegreeF
uint8_t TempExtraDegreeF
Definition: ir_Gree.h:64
IRGreeAC::convertMode
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Gree.cpp:468
kGreeDry
const uint8_t kGreeDry
Definition: ir_Gree.h:91
GreeProtocol::unknown1
uint8_t unknown1
Definition: ir_Gree.h:66
kGreeFanMax
const uint8_t kGreeFanMax
Definition: ir_Gree.h:98
GreeProtocol::Econo
uint8_t Econo
Definition: ir_Gree.h:81
kGreeMaxTempF
const uint8_t kGreeMaxTempF
Definition: ir_Gree.h:103
IRGreeAC::getTimer
uint16_t getTimer(void) const
Get the timer time value from the A/C.
Definition: ir_Gree.cpp:423
IRGreeAC::setMode
void setMode(const uint8_t new_mode)
Set the operating mode of the A/C.
Definition: ir_Gree.cpp:285
GreeProtocol::Fan
uint8_t Fan
Definition: ir_Gree.h:48
IRGreeAC::toCommon
stdAc::state_t toCommon(void)
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Gree.cpp:577
GreeProtocol::WiFi
uint8_t WiFi
Definition: ir_Gree.h:75
gree_ac_remote_model_t
gree_ac_remote_model_t
Gree A/C model numbers.
Definition: IRsend.h:134
IRGreeAC::convertSwingH
static uint8_t convertSwingH(const stdAc::swingh_t swingh)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Gree.cpp:509
IRGreeAC::send
void send(const uint16_t repeat=kGreeDefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Gree.cpp:142
kGreeSwingUpAuto
const uint8_t kGreeSwingUpAuto
Definition: ir_Gree.h:115
kGreeDisplayTempOutside
const uint8_t kGreeDisplayTempOutside
Definition: ir_Gree.h:128
kGreeSwingHAuto
const uint8_t kGreeSwingHAuto
Definition: ir_Gree.h:118
IRGreeAC::fixup
void fixup(void)
Fix up the internal state so it is correct.
Definition: ir_Gree.cpp:131
GreeProtocol::remote_state
uint8_t remote_state[kGreeStateLength]
The state in native IR code form.
Definition: ir_Gree.h:43
kGreeSwingDownAuto
const uint8_t kGreeSwingDownAuto
Definition: ir_Gree.h:113
IRsend.h
IRGreeAC::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Gree.cpp:207
IRGreeAC::setTimerEnabled
void setTimerEnabled(const bool on)
Set the timer enable setting of the A/C.
Definition: ir_Gree.cpp:415
IRGreeAC::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Gree.cpp:149
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:209
GreeProtocol::Turbo
uint8_t Turbo
Definition: ir_Gree.h:58
IRsend::calibrate
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
String
std::string String
Definition: IRremoteESP8266.h:1373
kGreeDisplayTempSet
const uint8_t kGreeDisplayTempSet
Definition: ir_Gree.h:126
kGreeSwingHMiddle
const uint8_t kGreeSwingHMiddle
Definition: ir_Gree.h:121
kGreeSwingHMaxRight
const uint8_t kGreeSwingHMaxRight
Definition: ir_Gree.h:123
GreeProtocol::TimerHours
uint8_t TimerHours
Definition: ir_Gree.h:57
GreeProtocol::TimerHalfHr
uint8_t TimerHalfHr
Definition: ir_Gree.h:53
kGreeSwingMiddleDown
const uint8_t kGreeSwingMiddleDown
Definition: ir_Gree.h:111
IRGreeAC::IRGreeAC
IRGreeAC(const uint16_t pin, const gree_ac_remote_model_t model=gree_ac_remote_model_t::YAW1F, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Gree.cpp:112
GreeProtocol::Sum
uint8_t Sum
Definition: ir_Gree.h:83
kGreeFanMed
const uint8_t kGreeFanMed
Definition: ir_Gree.h:97
IRremoteESP8266.h
stdAc::swingh_t
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
kGreeSwingMiddleAuto
const uint8_t kGreeSwingMiddleAuto
Definition: ir_Gree.h:114
IRGreeAC::convertFan
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Gree.cpp:481
kGreeHeat
const uint8_t kGreeHeat
Definition: ir_Gree.h:93
IRGreeAC::setSleep
void setSleep(const bool on)
Set the Sleep setting of the A/C.
Definition: ir_Gree.cpp:339
IRGreeAC::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Gree.cpp:137
kGreeTimerMax
const uint16_t kGreeTimerMax
Definition: ir_Gree.h:104
YAW1F
@ YAW1F
Definition: IRsend.h:135
kGreeMaxTempC
const uint8_t kGreeMaxTempC
Definition: ir_Gree.h:101
IRGreeAC::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Gree.h:165
GreeProtocol::Sleep
uint8_t Sleep
Definition: ir_Gree.h:50
kGreeMinTempF
const uint8_t kGreeMinTempF
Definition: ir_Gree.h:102
kGreeDisplayTempOff
const uint8_t kGreeDisplayTempOff
Definition: ir_Gree.h:125
IRGreeAC::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Gree.cpp:272
IRGreeAC::setUseFahrenheit
void setUseFahrenheit(const bool on)
Set the default temperature units to use.
Definition: ir_Gree.cpp:224
IRGreeAC::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Gree.cpp:537
GreeProtocol::unknown2
uint8_t unknown2
Definition: ir_Gree.h:74
IRGreeAC::getTurbo
bool getTurbo(void) const
Get the Turbo setting of the A/C.
Definition: ir_Gree.cpp:351
GreeProtocol::TimerTensHr
uint8_t TimerTensHr
Definition: ir_Gree.h:54
IRGreeAC::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Gree.cpp:216
IRGreeAC::getXFan
bool getXFan(void) const
Get the XFan (Mould) setting of the A/C.
Definition: ir_Gree.cpp:335
IRGreeAC::checksum
void checksum(const uint16_t length=kGreeStateLength)
Calculate and set the checksum values for the internal state.
Definition: ir_Gree.cpp:169
GreeProtocol::Xfan
uint8_t Xfan
Definition: ir_Gree.h:61
GreeProtocol::Light
uint8_t Light
Definition: ir_Gree.h:59
IRGreeAC::setTimer
void setTimer(const uint16_t minutes)
Set the A/C's timer to turn off in X many minutes.
Definition: ir_Gree.cpp:433
IRGreeAC::setModel
void setModel(const gree_ac_remote_model_t model)
Set the model of the A/C to emulate.
Definition: ir_Gree.cpp:186
IRGreeAC::getModel
gree_ac_remote_model_t getModel(void) const
Get/Detect the model of the A/C.
Definition: ir_Gree.cpp:196
kGreeAuto
const uint8_t kGreeAuto
Definition: ir_Gree.h:89
IRGreeAC::setWiFi
void setWiFi(const bool on)
Set the Wifi (enabled) setting of the A/C.
Definition: ir_Gree.cpp:323
IRGreeAC::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Gree.cpp:281
IRGreeAC::convertSwingV
static uint8_t convertSwingV(const stdAc::swingv_t swingv)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Gree.cpp:495
IRGreeAC::getUseFahrenheit
bool getUseFahrenheit(void) const
Get the default temperature units in use.
Definition: ir_Gree.cpp:228
IRGreeAC::setIFeel
void setIFeel(const bool on)
Set the IFeel setting of the A/C.
Definition: ir_Gree.cpp:315
kGreeSwingMiddleUp
const uint8_t kGreeSwingMiddleUp
Definition: ir_Gree.h:109
IRGreeAC::getTemp
uint8_t getTemp(void) const
Get the set temperature.
Definition: ir_Gree.cpp:259
GreeProtocol::IFeel
uint8_t IFeel
Definition: ir_Gree.h:73
kGreeFanMin
const uint8_t kGreeFanMin
Definition: ir_Gree.h:96
kGreeCool
const uint8_t kGreeCool
Definition: ir_Gree.h:90
IRGreeAC::getSwingVerticalPosition
uint8_t getSwingVerticalPosition(void) const
Get the Vertical Swing position setting of the A/C.
Definition: ir_Gree.cpp:398
kGreeSwingMiddle
const uint8_t kGreeSwingMiddle
Definition: ir_Gree.h:110
GreeProtocol
Native representation of a Gree A/C message.
Definition: ir_Gree.h:42
kGreeSwingLastPos
const uint8_t kGreeSwingLastPos
Definition: ir_Gree.h:106
IRGreeAC::setTemp
void setTemp(const uint8_t temp, const bool fahrenheit=false)
Set the temp. in degrees.
Definition: ir_Gree.cpp:236
IRGreeAC::getTimerEnabled
bool getTimerEnabled(void) const
Get the timer enabled setting of the A/C.
Definition: ir_Gree.cpp:419
IRGreeAC::_model
gree_ac_remote_model_t _model
Definition: ir_Gree.h:229
IRGreeAC::getSwingVerticalAuto
bool getSwingVerticalAuto(void) const
Get the Vertical Swing Automatic mode setting of the A/C.
Definition: ir_Gree.cpp:394
kGreeSwingHOff
const uint8_t kGreeSwingHOff
Definition: ir_Gree.h:117
IRGreeAC::setTurbo
void setTurbo(const bool on)
Set the Turbo setting of the A/C.
Definition: ir_Gree.cpp:347
kGreeSwingDown
const uint8_t kGreeSwingDown
Definition: ir_Gree.h:112
IRGreeAC::getEcono
bool getEcono(void) const
Get the Econo setting of the A/C.
Definition: ir_Gree.cpp:359
IRGreeAC::toCommonSwingV
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native Vertical Swing into its stdAc equivalent.
Definition: ir_Gree.cpp:549
kGreeFanAuto
const uint8_t kGreeFanAuto
Definition: ir_Gree.h:95
GreeProtocol::Power
uint8_t Power
Definition: ir_Gree.h:47
IRGreeAC::toCommonSwingH
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native Horizontal Swing into its stdAc equivalent.
Definition: ir_Gree.cpp:563
IRGreeAC::getSleep
bool getSleep(void) const
Get the Sleep setting of the A/C.
Definition: ir_Gree.cpp:343
GreeProtocol::TimerEnabled
uint8_t TimerEnabled
Definition: ir_Gree.h:55
kGreeSwingHMaxLeft
const uint8_t kGreeSwingHMaxLeft
Definition: ir_Gree.h:119
kGreeMinTempC
const uint8_t kGreeMinTempC
Definition: ir_Gree.h:100
IRGreeAC::getDisplayTempSource
uint8_t getDisplayTempSource(void) const
Get the temperature display mode. i.e. Internal, External temperature sensing.
Definition: ir_Gree.cpp:463
IRGreeAC::setDisplayTempSource
void setDisplayTempSource(const uint8_t mode)
Set temperature display mode. i.e. Internal, External temperature sensing.
Definition: ir_Gree.cpp:456
GreeProtocol::UseFahrenheit
uint8_t UseFahrenheit
Definition: ir_Gree.h:65
kGreeSwingAuto
const uint8_t kGreeSwingAuto
Definition: ir_Gree.h:107
IRGreeAC
Class for handling detailed Gree A/C messages.
Definition: ir_Gree.h:152
GreeProtocol::DisplayTemp
uint8_t DisplayTemp
Definition: ir_Gree.h:72
kGreeDisplayTempInside
const uint8_t kGreeDisplayTempInside
Definition: ir_Gree.h:127
IRGreeAC::stateReset
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Gree.cpp:120
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
IRGreeAC::setRaw
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Gree.cpp:156
IRGreeAC::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Gree.h:222
IRGreeAC::on
void on(void)
Change the power setting to On.
Definition: ir_Gree.cpp:199
IRGreeAC::setEcono
void setEcono(const bool on)
Set the Econo setting of the A/C.
Definition: ir_Gree.cpp:355
IRGreeAC::setLight
void setLight(const bool on)
Set the Light (LED) setting of the A/C.
Definition: ir_Gree.cpp:307
IRGreeAC::getSwingHorizontal
uint8_t getSwingHorizontal(void) const
Get the Horizontal Swing position setting of the A/C.
Definition: ir_Gree.cpp:402
kGreeDefaultRepeat
const uint16_t kGreeDefaultRepeat
Definition: IRremoteESP8266.h:1123
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46