IRremoteESP8266
IRac.h
Go to the documentation of this file.
1 #ifndef IRAC_H_
2 #define IRAC_H_
3 
4 // Copyright 2019 David Conran
5 
6 #ifndef UNIT_TEST
7 #include <Arduino.h>
8 #endif
9 #include "IRremoteESP8266.h"
10 #include "ir_Airwell.h"
11 #include "ir_Amcor.h"
12 #include "ir_Argo.h"
13 #include "ir_Carrier.h"
14 #include "ir_Coolix.h"
15 #include "ir_Corona.h"
16 #include "ir_Daikin.h"
17 #include "ir_Delonghi.h"
18 #include "ir_Fujitsu.h"
19 #include "ir_Ecoclim.h"
20 #include "ir_Electra.h"
21 #include "ir_Goodweather.h"
22 #include "ir_Gree.h"
23 #include "ir_Haier.h"
24 #include "ir_Hitachi.h"
25 #include "ir_Kelon.h"
26 #include "ir_Kelvinator.h"
27 #include "ir_LG.h"
28 #include "ir_Midea.h"
29 #include "ir_Mirage.h"
30 #include "ir_Mitsubishi.h"
31 #include "ir_MitsubishiHeavy.h"
32 #include "ir_Neoclima.h"
33 #include "ir_Panasonic.h"
34 #include "ir_Rhoss.h"
35 #include "ir_Samsung.h"
36 #include "ir_Sanyo.h"
37 #include "ir_Sharp.h"
38 #include "ir_Tcl.h"
39 #include "ir_Technibel.h"
40 #include "ir_Teco.h"
41 #include "ir_Toshiba.h"
42 #include "ir_Transcold.h"
43 #include "ir_Trotec.h"
44 #include "ir_Truma.h"
45 #include "ir_Vestel.h"
46 #include "ir_Voltas.h"
47 #include "ir_Whirlpool.h"
48 
49 // Constants
50 const int8_t kGpioUnused = -1;
51 
52 // Class
54 class IRac {
55  public:
56  explicit IRac(const uint16_t pin, const bool inverted = false,
57  const bool use_modulation = true);
58  static bool isProtocolSupported(const decode_type_t protocol);
59  static void initState(stdAc::state_t *state,
60  const decode_type_t vendor, const int16_t model,
61  const bool power, const stdAc::opmode_t mode,
62  const float degrees, const bool celsius,
63  const stdAc::fanspeed_t fan,
64  const stdAc::swingv_t swingv,
65  const stdAc::swingh_t swingh,
66  const bool quiet, const bool turbo, const bool econo,
67  const bool light, const bool filter, const bool clean,
68  const bool beep, const int16_t sleep,
69  const int16_t clock);
70  static void initState(stdAc::state_t *state);
71  void markAsSent(void);
72  bool sendAc(void);
73  bool sendAc(const stdAc::state_t desired, const stdAc::state_t *prev = NULL);
74  bool sendAc(const decode_type_t vendor, const int16_t model,
75  const bool power, const stdAc::opmode_t mode, const float degrees,
76  const bool celsius, const stdAc::fanspeed_t fan,
77  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
78  const bool quiet, const bool turbo, const bool econo,
79  const bool light, const bool filter, const bool clean,
80  const bool beep, const int16_t sleep = -1,
81  const int16_t clock = -1);
82  static bool cmpStates(const stdAc::state_t a, const stdAc::state_t b);
83  static bool strToBool(const char *str, const bool def = false);
84  static int16_t strToModel(const char *str, const int16_t def = -1);
86  const char *str, const stdAc::opmode_t def = stdAc::opmode_t::kAuto);
88  const char *str,
91  const char *str, const stdAc::swingv_t def = stdAc::swingv_t::kOff);
93  const char *str, const stdAc::swingh_t def = stdAc::swingh_t::kOff);
94  static String boolToString(const bool value);
95  static String opmodeToString(const stdAc::opmode_t mode,
96  const bool ha = false);
97  static String fanspeedToString(const stdAc::fanspeed_t speed);
98  static String swingvToString(const stdAc::swingv_t swingv);
99  static String swinghToString(const stdAc::swingh_t swingh);
100  stdAc::state_t getState(void);
102  bool hasStateChanged(void);
104 #ifndef UNIT_TEST
105 
106  private:
107 #endif
108  uint16_t _pin;
109  bool _inverted;
110  bool _modulation;
112 #if SEND_AIRWELL
113  void airwell(IRAirwellAc *ac,
114  const bool on, const stdAc::opmode_t mode, const float degrees,
115  const stdAc::fanspeed_t fan);
116 #endif // SEND_AIRWELL
117 #if SEND_AMCOR
118  void amcor(IRAmcorAc *ac,
119  const bool on, const stdAc::opmode_t mode, const float degrees,
120  const stdAc::fanspeed_t fan);
121 #endif // SEND_AMCOR
122 #if SEND_ARGO
123  void argo(IRArgoAC *ac,
124  const bool on, const stdAc::opmode_t mode, const float degrees,
125  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
126  const bool turbo, const int16_t sleep = -1);
127 #endif // SEND_ARGO
128 #if SEND_CARRIER_AC64
129 void carrier64(IRCarrierAc64 *ac,
130  const bool on, const stdAc::opmode_t mode,
131  const float degrees, const stdAc::fanspeed_t fan,
132  const stdAc::swingv_t swingv, const int16_t sleep = -1);
133 #endif // SEND_CARRIER_AC64
134 #if SEND_COOLIX
135  void coolix(IRCoolixAC *ac,
136  const bool on, const stdAc::opmode_t mode, const float degrees,
137  const stdAc::fanspeed_t fan,
138  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
139  const bool turbo, const bool light, const bool clean,
140  const int16_t sleep = -1);
141 #endif // SEND_COOLIX
142 #if SEND_CORONA_AC
143  void corona(IRCoronaAc *ac,
144  const bool on, const stdAc::opmode_t mode,
145  const float degrees, const stdAc::fanspeed_t fan,
146  const stdAc::swingv_t swingv, const bool econo);
147 #endif // SEND_CORONA_AC
148 #if SEND_DAIKIN
149  void daikin(IRDaikinESP *ac,
150  const bool on, const stdAc::opmode_t mode, const float degrees,
151  const stdAc::fanspeed_t fan,
152  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
153  const bool quiet, const bool turbo, const bool econo,
154  const bool clean);
155 #endif // SEND_DAIKIN
156 #if SEND_DAIKIN128
157  void daikin128(IRDaikin128 *ac,
158  const bool on, const stdAc::opmode_t mode,
159  const float degrees, const stdAc::fanspeed_t fan,
160  const stdAc::swingv_t swingv,
161  const bool quiet, const bool turbo, const bool light,
162  const bool econo, const int16_t sleep = -1,
163  const int16_t clock = -1);
164 #endif // SEND_DAIKIN128
165 #if SEND_DAIKIN152
166  void daikin152(IRDaikin152 *ac,
167  const bool on, const stdAc::opmode_t mode,
168  const float degrees, const stdAc::fanspeed_t fan,
169  const stdAc::swingv_t swingv,
170  const bool quiet, const bool turbo, const bool econo);
171 #endif // SEND_DAIKIN152
172 #if SEND_DAIKIN160
173  void daikin160(IRDaikin160 *ac,
174  const bool on, const stdAc::opmode_t mode,
175  const float degrees, const stdAc::fanspeed_t fan,
176  const stdAc::swingv_t swingv);
177 #endif // SEND_DAIKIN160
178 #if SEND_DAIKIN176
179  void daikin176(IRDaikin176 *ac,
180  const bool on, const stdAc::opmode_t mode,
181  const float degrees, const stdAc::fanspeed_t fan,
182  const stdAc::swingh_t swingh);
183 #endif // SEND_DAIKIN176
184 #if SEND_DAIKIN2
185  void daikin2(IRDaikin2 *ac,
186  const bool on, const stdAc::opmode_t mode,
187  const float degrees, const stdAc::fanspeed_t fan,
188  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
189  const bool quiet, const bool turbo, const bool light,
190  const bool econo, const bool filter, const bool clean,
191  const bool beep, const int16_t sleep = -1,
192  const int16_t clock = -1);
193 #endif // SEND_DAIKIN2
194 #if SEND_DAIKIN216
195 void daikin216(IRDaikin216 *ac,
196  const bool on, const stdAc::opmode_t mode,
197  const float degrees, const stdAc::fanspeed_t fan,
198  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
199  const bool quiet, const bool turbo);
200 #endif // SEND_DAIKIN216
201 #if SEND_DAIKIN64
202  void daikin64(IRDaikin64 *ac,
203  const bool on, const stdAc::opmode_t mode,
204  const float degrees, const stdAc::fanspeed_t fan,
205  const stdAc::swingv_t swingv,
206  const bool quiet, const bool turbo,
207  const int16_t sleep = -1, const int16_t clock = -1);
208 #endif // SEND_DAIKIN64
209 #if SEND_DELONGHI_AC
210  void delonghiac(IRDelonghiAc *ac,
211  const bool on, const stdAc::opmode_t mode, const bool celsius,
212  const float degrees, const stdAc::fanspeed_t fan,
213  const bool turbo, const int16_t sleep = -1);
214 #endif // SEND_DELONGHI_AC
215 #if SEND_ECOCLIM
216 void ecoclim(IREcoclimAc *ac,
217  const bool on, const stdAc::opmode_t mode,
218  const float degrees, const stdAc::fanspeed_t fan,
219  const int16_t sleep = -1, const int16_t clock = -1);
220 #endif // SEND_ECOCLIM
221 #if SEND_ELECTRA_AC
222 void electra(IRElectraAc *ac,
223  const bool on, const stdAc::opmode_t mode,
224  const float degrees, const stdAc::fanspeed_t fan,
225  const stdAc::swingv_t swingv,
226  const stdAc::swingh_t swingh, const bool turbo,
227  const bool lighttoggle, const bool clean);
228 #endif // SEND_ELECTRA_AC
229 #if SEND_FUJITSU_AC
230  void fujitsu(IRFujitsuAC *ac, const fujitsu_ac_remote_model_t model,
231  const bool on, const stdAc::opmode_t mode,
232  const bool celsius, const float degrees,
233  const stdAc::fanspeed_t fan,
234  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
235  const bool quiet, const bool turbo, const bool econo,
236  const bool filter, const bool clean, const int16_t sleep = -1);
237 #endif // SEND_FUJITSU_AC
238 #if SEND_GOODWEATHER
239  void goodweather(IRGoodweatherAc *ac,
240  const bool on, const stdAc::opmode_t mode,
241  const float degrees,
242  const stdAc::fanspeed_t fan,
243  const stdAc::swingv_t swingv,
244  const bool turbo, const bool light,
245  const int16_t sleep = -1);
246 #endif // SEND_GOODWEATHER
247 #if SEND_GREE
248  void gree(IRGreeAC *ac, const gree_ac_remote_model_t model,
249  const bool on, const stdAc::opmode_t mode, const bool celsius,
250  const float degrees, const stdAc::fanspeed_t fan,
251  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
252  const bool turbo, const bool econo, const bool light,
253  const bool clean, const int16_t sleep = -1);
254 #endif // SEND_GREE
255 #if SEND_HAIER_AC
256  void haier(IRHaierAC *ac,
257  const bool on, const stdAc::opmode_t mode, const float degrees,
258  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
259  const bool filter, const int16_t sleep = -1,
260  const int16_t clock = -1);
261 #endif // SEND_HAIER_AC
262 #if SEND_HAIER_AC176
263  void haier176(IRHaierAC176 *ac,
264  const haier_ac176_remote_model_t model, const bool on,
265  const stdAc::opmode_t mode, const bool celsius,
266  const float degrees, const stdAc::fanspeed_t fan,
267  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
268  const bool turbo, const bool quiet, const bool filter,
269  const int16_t sleep = -1);
270 #endif // SEND_HAIER_AC176
271 #if SEND_HAIER_AC_YRW02
272  void haierYrwo2(IRHaierACYRW02 *ac,
273  const bool on, const stdAc::opmode_t mode,
274  const bool celsius, const float degrees,
275  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
276  const stdAc::swingh_t swingh, const bool turbo,
277  const bool quiet, const bool filter,
278  const int16_t sleep = -1);
279 #endif // SEND_HAIER_AC_YRW02
280 #if SEND_HITACHI_AC
281  void hitachi(IRHitachiAc *ac,
282  const bool on, const stdAc::opmode_t mode,
283  const float degrees, const stdAc::fanspeed_t fan,
284  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
285 #endif // SEND_HITACHI_AC
286 #if SEND_HITACHI_AC1
287  void hitachi1(IRHitachiAc1 *ac, const hitachi_ac1_remote_model_t model,
288  const bool on, const bool power_toggle,
289  const stdAc::opmode_t mode,
290  const float degrees, const stdAc::fanspeed_t fan,
291  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
292  const bool swing_toggle, const int16_t sleep = -1);
293 #endif // SEND_HITACHI_AC1
294 #if SEND_HITACHI_AC344
295  void hitachi344(IRHitachiAc344 *ac,
296  const bool on, const stdAc::opmode_t mode,
297  const float degrees, const stdAc::fanspeed_t fan,
298  const stdAc::swingv_t swingv,
299  const stdAc::swingh_t swingh);
300 #endif // SEND_HITACHI_AC344
301 #if SEND_HITACHI_AC424
302  void hitachi424(IRHitachiAc424 *ac,
303  const bool on, const stdAc::opmode_t mode,
304  const float degrees, const stdAc::fanspeed_t fan,
305  const stdAc::swingv_t swingv);
306 #endif // SEND_HITACHI_AC424
307 #if SEND_KELON
308  void kelon(IRKelonAc *ac, const bool togglePower, const stdAc::opmode_t mode,
309  const int8_t dryGrade, const float degrees,
310  const stdAc::fanspeed_t fan, const bool toggleSwing,
311  const bool superCool, const int16_t sleep);
312 #endif // SEND_KELON
313 #if SEND_KELVINATOR
314  void kelvinator(IRKelvinatorAC *ac,
315  const bool on, const stdAc::opmode_t mode,
316  const float degrees, const stdAc::fanspeed_t fan,
317  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
318  const bool quiet, const bool turbo, const bool light,
319  const bool filter, const bool clean);
320 #endif // SEND_KELVINATOR
321 #if SEND_LG
322  void lg(IRLgAc *ac, const lg_ac_remote_model_t model,
323  const bool on, const stdAc::opmode_t mode,
324  const float degrees, const stdAc::fanspeed_t fan,
325  const stdAc::swingv_t swingv, const stdAc::swingv_t swingv_prev,
326  const stdAc::swingh_t swingh, const bool light);
327 #endif // SEND_LG
328 #if SEND_MIDEA
329  void midea(IRMideaAC *ac,
330  const bool on, const stdAc::opmode_t mode, const bool celsius,
331  const float degrees, const stdAc::fanspeed_t fan,
332  const stdAc::swingv_t swingv, const bool turbo, const bool econo,
333  const bool light, const int16_t sleep = -1);
334 #endif // SEND_MIDEA
335 #if SEND_MIRAGE
336  void mirage(IRMirageAc *ac, const stdAc::state_t state);
337 #endif // SEND_MIRAGE
338 #if SEND_MITSUBISHI_AC
339  void mitsubishi(IRMitsubishiAC *ac,
340  const bool on, const stdAc::opmode_t mode,
341  const float degrees,
342  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
343  const stdAc::swingh_t swingh,
344  const bool quiet, const int16_t clock = -1);
345 #endif // SEND_MITSUBISHI_AC
346 #if SEND_MITSUBISHI112
348  const bool on, const stdAc::opmode_t mode,
349  const float degrees, const stdAc::fanspeed_t fan,
350  const stdAc::swingv_t swingv,
351  const stdAc::swingh_t swingh,
352  const bool quiet);
353 #endif // SEND_MITSUBISHI112
354 #if SEND_MITSUBISHI136
356  const bool on, const stdAc::opmode_t mode,
357  const float degrees, const stdAc::fanspeed_t fan,
358  const stdAc::swingv_t swingv, const bool quiet);
359 #endif // SEND_MITSUBISHI136
360 #if SEND_MITSUBISHIHEAVY
362  const bool on, const stdAc::opmode_t mode,
363  const float degrees, const stdAc::fanspeed_t fan,
364  const stdAc::swingv_t swingv,
365  const stdAc::swingh_t swingh,
366  const bool turbo, const bool econo, const bool clean);
368  const bool on, const stdAc::opmode_t mode,
369  const float degrees, const stdAc::fanspeed_t fan,
370  const stdAc::swingv_t swingv,
371  const stdAc::swingh_t swingh,
372  const bool quiet, const bool turbo, const bool econo,
373  const bool filter, const bool clean,
374  const int16_t sleep = -1);
375 #endif // SEND_MITSUBISHIHEAVY
376 #if SEND_NEOCLIMA
377  void neoclima(IRNeoclimaAc *ac, const bool on, const stdAc::opmode_t mode,
378  const bool celsius, const float degrees,
379  const stdAc::fanspeed_t fan,
380  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
381  const bool turbo, const bool econo, const bool light,
382  const bool filter, const int16_t sleep = -1);
383 #endif // SEND_NEOCLIMA
384 #if SEND_PANASONIC_AC
386  const bool on, const stdAc::opmode_t mode, const float degrees,
387  const stdAc::fanspeed_t fan,
388  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
389  const bool quiet, const bool turbo, const bool filter,
390  const int16_t clock = -1);
391 #endif // SEND_PANASONIC_AC
392 #if SEND_PANASONIC_AC32
393  void panasonic32(IRPanasonicAc32 *ac,
394  const bool on, const stdAc::opmode_t mode,
395  const float degrees, const stdAc::fanspeed_t fan,
396  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
397 #endif // SEND_PANASONIC_AC32
398 #if SEND_RHOSS
399  void rhoss(IRRhossAc *ac,
400  const bool on, const stdAc::opmode_t mode, const float degrees,
401  const stdAc::fanspeed_t fan, const stdAc::swingv_t swing);
402 #endif // SEND_RHOSS
403 #if SEND_SAMSUNG_AC
404  void samsung(IRSamsungAc *ac,
405  const bool on, const stdAc::opmode_t mode, const float degrees,
406  const stdAc::fanspeed_t fan,
407  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
408  const bool quiet, const bool turbo, const bool econo,
409  const bool light, const bool filter, const bool clean,
410  const bool beep, const int16_t sleep = -1,
411  const bool prevpower = true, const int16_t prevsleep = -1,
412  const bool forceextended = true);
413 #endif // SEND_SAMSUNG_AC
414 #if SEND_SANYO_AC
415  void sanyo(IRSanyoAc *ac,
416  const bool on, const stdAc::opmode_t mode, const float degrees,
417  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
418  const bool beep, const int16_t sleep = -1);
419 #endif // SEND_SANYO_AC
420 #if SEND_SANYO_AC88
421  void sanyo88(IRSanyoAc88 *ac,
422  const bool on, const stdAc::opmode_t mode,
423  const float degrees, const stdAc::fanspeed_t fan,
424  const stdAc::swingv_t swingv, const bool turbo,
425  const bool filter,
426  const int16_t sleep = -1, const int16_t clock = -1);
427 #endif // SEND_SANYO_AC88
428 #if SEND_SHARP_AC
429  void sharp(IRSharpAc *ac, const sharp_ac_remote_model_t model,
430  const bool on, const bool prev_power, const stdAc::opmode_t mode,
431  const float degrees, const stdAc::fanspeed_t fan,
432  const stdAc::swingv_t swingv, const stdAc::swingv_t swingv_prev,
433  const bool turbo, const bool light,
434  const bool filter, const bool clean);
435 #endif // SEND_SHARP_AC
436 #if SEND_TCL112AC
437  void tcl112(IRTcl112Ac *ac, const tcl_ac_remote_model_t model,
438  const bool on, const stdAc::opmode_t mode, const float degrees,
439  const stdAc::fanspeed_t fan,
440  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
441  const bool quiet, const bool turbo, const bool light,
442  const bool econo, const bool filter);
443 #endif // SEND_TCL112AC
444 #if SEND_TECHNIBEL_AC
445  void technibel(IRTechnibelAc *ac,
446  const bool on, const stdAc::opmode_t mode, const bool celsius,
447  const float degrees, const stdAc::fanspeed_t fan,
448  const stdAc::swingv_t swingv, const int16_t sleep = -1);
449 #endif // SEND_TECHNIBEL_AC
450 #if SEND_TECO
451  void teco(IRTecoAc *ac,
452  const bool on, const stdAc::opmode_t mode, const float degrees,
453  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
454  const bool light, const int16_t sleep = -1);
455 #endif // SEND_TECO
456 #if SEND_TOSHIBA_AC
457  void toshiba(IRToshibaAC *ac,
458  const bool on, const stdAc::opmode_t mode, const float degrees,
459  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
460  const bool turbo, const bool econo);
461 #endif // SEND_TOSHIBA_AC
462 #if SEND_TROTEC
463  void trotec(IRTrotecESP *ac,
464  const bool on, const stdAc::opmode_t mode, const float degrees,
465  const stdAc::fanspeed_t fan, const int16_t sleep = -1);
466 #endif // SEND_TROTEC
467 #if SEND_TROTEC_3550
468  void trotec3550(IRTrotec3550 *ac,
469  const bool on, const stdAc::opmode_t mode,
470  const bool celsius, const float degrees,
471  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv);
472 #endif // SEND_TROTEC_3550
473 #if SEND_TRUMA
474  void truma(IRTrumaAc *ac,
475  const bool on, const stdAc::opmode_t mode, const float degrees,
476  const stdAc::fanspeed_t fan, const bool quiet);
477 #endif // SEND_TRUMA
478 #if SEND_VESTEL_AC
479  void vestel(IRVestelAc *ac,
480  const bool on, const stdAc::opmode_t mode, const float degrees,
481  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
482  const bool turbo, const bool filter,
483  const int16_t sleep = -1, const int16_t clock = -1,
484  const bool sendNormal = true);
485 #endif // SEND_VESTEL_AC
486 #if SEND_VOLTAS
487  void voltas(IRVoltas *ac, const voltas_ac_remote_model_t model,
488  const bool on, const stdAc::opmode_t mode,
489  const float degrees, const stdAc::fanspeed_t fan,
490  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
491  const bool turbo, const bool econo, const bool light,
492  const int16_t sleep = -1);
493 #endif // SEND_VOLTAS
494 #if SEND_WHIRLPOOL_AC
496  const bool on, const stdAc::opmode_t mode, const float degrees,
497  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
498  const bool turbo, const bool light,
499  const int16_t sleep = -1, const int16_t clock = -1);
500 #endif // SEND_WHIRLPOOL_AC
501 #if SEND_TRANSCOLD
502  void transcold(IRTranscoldAc *ac,
503  const bool on, const stdAc::opmode_t mode, const float degrees,
504  const stdAc::fanspeed_t fan,
505  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
506 #endif // SEND_TRANSCOLD
507 static stdAc::state_t cleanState(const stdAc::state_t state);
508 static stdAc::state_t handleToggles(const stdAc::state_t desired,
509  const stdAc::state_t *prev = NULL);
510 }; // IRac class
511 
513 namespace IRAcUtils {
514  String resultAcToString(const decode_results * const results);
515  bool decodeToState(const decode_results *decode, stdAc::state_t *result,
516  const stdAc::state_t *prev = NULL);
517 } // namespace IRAcUtils
518 #endif // IRAC_H_
IRPanasonicAc
Class for handling detailed Panasonic A/C messages.
Definition: ir_Panasonic.h:104
IRac::airwell
void airwell(IRAirwellAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan)
Send an Airwell A/C message with the supplied settings.
Definition: IRac.cpp:336
ir_Kelvinator.h
Support for Kelvinator A/C protocols.
IRSamsungAc
Class for handling detailed Samsung A/C messages.
Definition: ir_Samsung.h:185
IRac::hitachi
void hitachi(IRHitachiAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh)
Send a Hitachi A/C message with the supplied settings.
Definition: IRac.cpp:1207
IRToshibaAC
Class for handling detailed Toshiba A/C messages.
Definition: ir_Toshiba.h:121
decode_type_t
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:866
IRac::getStatePrev
stdAc::state_t getStatePrev(void)
Get the previous internal A/C climate state that should have already been sent to the device....
Definition: IRac.cpp:148
IRac::getState
stdAc::state_t getState(void)
Get the current internal A/C climate state.
Definition: IRac.cpp:143
IRMitsubishiHeavy152Ac
Class for handling detailed Mitsubishi Heavy 152-bit A/C messages.
Definition: ir_MitsubishiHeavy.h:184
IRac::strToSwingH
static stdAc::swingh_t strToSwingH(const char *str, const stdAc::swingh_t def=stdAc::swingh_t::kOff)
Convert the supplied str into the appropriate enum.
Definition: IRac.cpp:3282
IRac::hitachi344
void hitachi344(IRHitachiAc344 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh)
Send a Hitachi 344-bit A/C message with the supplied settings.
Definition: IRac.cpp:1283
stdAc::opmode_t::kAuto
@ kAuto
ir_Electra.h
Support for Electra A/C protocols.
IRac::ecoclim
void ecoclim(IREcoclimAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const int16_t sleep=-1, const int16_t clock=-1)
Send an EcoClim A/C message with the supplied settings.
Definition: IRac.cpp:854
IRac::markAsSent
void markAsSent(void)
Update the previous state to the current one.
Definition: IRac.cpp:3139
stdAc::swingv_t
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
ir_Airwell.h
Airwell "Manchester code" based protocol. Some other Airwell products use the COOLIX protocol.
IRac::daikin2
void daikin2(IRDaikin2 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool light, const bool econo, const bool filter, const bool clean, const bool beep, const int16_t sleep=-1, const int16_t clock=-1)
Send a Daikin2 A/C message with the supplied settings.
Definition: IRac.cpp:731
ir_Trotec.h
Support for Trotec protocols.
IRac::sanyo
void sanyo(IRSanyoAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool beep, const int16_t sleep=-1)
Send a Sanyo A/C message with the supplied settings.
Definition: IRac.cpp:1877
IRDaikinESP
Class for handling detailed Daikin 280-bit A/C messages.
Definition: ir_Daikin.h:693
IRDelonghiAc
Class for handling detailed Delonghi A/C messages.
Definition: ir_Delonghi.h:73
IRCoronaAc
Class for handling detailed Corona A/C messages.
Definition: ir_Corona.h:107
IRac::kelvinator
void kelvinator(IRKelvinatorAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool light, const bool filter, const bool clean)
Send a Kelvinator A/C message with the supplied settings.
Definition: IRac.cpp:1386
IRDaikin2
Class for handling detailed Daikin 312-bit A/C messages.
Definition: ir_Daikin.h:775
IRac::fujitsu
void fujitsu(IRFujitsuAC *ac, const fujitsu_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool econo, const bool filter, const bool clean, const int16_t sleep=-1)
Send a Fujitsu A/C message with the supplied settings.
Definition: IRac.cpp:939
ir_Neoclima.h
Support for Neoclima protocols. Analysis by crankyoldgit & AndreyShpilevoy.
IRDaikin128
Class for handling detailed Daikin 128-bit A/C messages.
Definition: ir_Daikin.h:1040
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
ir_Sharp.h
Support for Sharp protocols.
IRac::fanspeedToString
static String fanspeedToString(const stdAc::fanspeed_t speed)
Convert the supplied fan speed enum into the appropriate String.
Definition: IRac.cpp:3457
whirlpool_ac_remote_model_t
whirlpool_ac_remote_model_t
Whirlpool A/C model numbers.
Definition: IRsend.h:188
ir_Carrier.h
Carrier A/C.
IRac::whirlpool
void whirlpool(IRWhirlpoolAc *ac, const whirlpool_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool light, const int16_t sleep=-1, const int16_t clock=-1)
Send a Whirlpool A/C message with the supplied settings.
Definition: IRac.cpp:2339
decode_results
Results returned from the decoder.
Definition: IRrecv.h:92
IRac::daikin64
void daikin64(IRDaikin64 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool quiet, const bool turbo, const int16_t sleep=-1, const int16_t clock=-1)
Send a Daikin 64-bit A/C message with the supplied settings.
Definition: IRac.cpp:800
IRac::samsung
void samsung(IRSamsungAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool econo, const bool light, const bool filter, const bool clean, const bool beep, const int16_t sleep=-1, const bool prevpower=true, const int16_t prevsleep=-1, const bool forceextended=true)
Send a Samsung A/C message with the supplied settings.
Definition: IRac.cpp:1833
IRac::voltas
void voltas(IRVoltas *ac, const voltas_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool econo, const bool light, const int16_t sleep=-1)
Send a Voltas A/C message with the supplied settings.
Definition: IRac.cpp:2298
IRac::transcold
void transcold(IRTranscoldAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh)
Send a Transcold A/C message with the supplied settings.
Definition: IRac.cpp:2376
tcl_ac_remote_model_t
tcl_ac_remote_model_t
TCL A/C model numbers.
Definition: IRsend.h:176
IRac::sendAc
bool sendAc(void)
Send an A/C message based soley on our internal state.
Definition: IRac.cpp:3145
IRac::cmpStates
static bool cmpStates(const stdAc::state_t a, const stdAc::state_t b)
Compare two AirCon states.
Definition: IRac.cpp:3156
ir_Midea.h
Support for Midea protocols. Midea added by crankyoldgit & bwze.
ir_Daikin.h
Support for Daikin A/C protocols.
gree_ac_remote_model_t
gree_ac_remote_model_t
Gree A/C model numbers.
Definition: IRsend.h:134
IRDaikin64
Class for handling detailed Daikin 64-bit A/C messages.
Definition: ir_Daikin.h:1170
IRac::haierYrwo2
void haierYrwo2(IRHaierACYRW02 *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool quiet, const bool filter, const int16_t sleep=-1)
Send a Haier YRWO2 A/C message with the supplied settings.
Definition: IRac.cpp:1171
ir_Coolix.h
Support for Coolix A/C protocols.
IRac::vestel
void vestel(IRVestelAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool filter, const int16_t sleep=-1, const int16_t clock=-1, const bool sendNormal=true)
Send a Vestel A/C message with the supplied settings.
Definition: IRac.cpp:2256
IRRhossAc
Class for handling detailed Rhoss A/C messages.
Definition: ir_Rhoss.h:94
IRHitachiAc424
Class for handling detailed Hitachi 53-byte/424-bit A/C messages.
Definition: ir_Hitachi.h:371
IRac::daikin
void daikin(IRDaikinESP *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool econo, const bool clean)
Send a Daikin A/C message with the supplied settings.
Definition: IRac.cpp:567
IRac::IRac
IRac(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: IRac.cpp:69
IRDaikin216
Class for handling detailed Daikin 216-bit A/C messages.
Definition: ir_Daikin.h:873
IRVoltas
Class for handling detailed Voltas A/C messages.
Definition: ir_Voltas.h:90
IRac::sharp
void sharp(IRSharpAc *ac, const sharp_ac_remote_model_t model, const bool on, const bool prev_power, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingv_t swingv_prev, const bool turbo, const bool light, const bool filter, const bool clean)
Send a Sharp A/C message with the supplied settings.
Definition: IRac.cpp:1960
hitachi_ac1_remote_model_t
hitachi_ac1_remote_model_t
HITACHI_AC1 A/C model numbers.
Definition: IRsend.h:146
IRac::haier176
void haier176(IRHaierAC176 *ac, const haier_ac176_remote_model_t model, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool quiet, const bool filter, const int16_t sleep=-1)
Send a Haier 176 bit A/C message with the supplied settings.
Definition: IRac.cpp:1129
IRac::daikin128
void daikin128(IRDaikin128 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool quiet, const bool turbo, const bool light, const bool econo, const int16_t sleep=-1, const int16_t clock=-1)
Send a Daikin 128-bit A/C message with the supplied settings.
Definition: IRac.cpp:607
IRHitachiAc
Class for handling detailed Hitachi 224-bit A/C messages.
Definition: ir_Hitachi.h:246
kGpioUnused
const int8_t kGpioUnused
A placeholder for not using an actual GPIO.
Definition: IRac.h:50
IRAcUtils
Common functions for use with all A/Cs supported by the IRac class.
Definition: IRac.cpp:3502
IRSanyoAc
Class for handling detailed Sanyo A/C messages.
Definition: ir_Sanyo.h:108
IRac::haier
void haier(IRHaierAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool filter, const int16_t sleep=-1, const int16_t clock=-1)
Send a Haier A/C message with the supplied settings.
Definition: IRac.cpp:1088
IRKelonAc
Definition: ir_Kelon.h:70
IRWhirlpoolAc
Class for handling detailed Whirlpool A/C messages.
Definition: ir_Whirlpool.h:132
IRHitachiAc344
Class for handling detailed Hitachi 344-bit A/C messages.
Definition: ir_Hitachi.h:459
IRac::boolToString
static String boolToString(const bool value)
Convert the supplied boolean into the appropriate String.
Definition: IRac.cpp:3434
IRac::next
stdAc::state_t next
The state we want the device to be in after we send.
Definition: IRac.h:103
String
std::string String
Definition: IRremoteESP8266.h:1309
IRMitsubishiAC
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:252
IRac::trotec
void trotec(IRTrotecESP *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const int16_t sleep=-1)
Send a Trotec A/C message with the supplied settings.
Definition: IRac.cpp:2155
IRac::strToModel
static int16_t strToModel(const char *str, const int16_t def=-1)
Convert the supplied str into the appropriate enum.
Definition: IRac.cpp:3323
IRAmcorAc
Class for handling detailed Amcor A/C messages.
Definition: ir_Amcor.h:90
IRMitsubishi112
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:374
ir_Ecoclim.h
EcoClim A/C protocol.
IRTcl112Ac
Class for handling detailed TCL A/C messages.
Definition: ir_Tcl.h:122
IRac::daikin176
void daikin176(IRDaikin176 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingh_t swingh)
Send a Daikin 176-bit A/C message with the supplied settings.
Definition: IRac.cpp:699
IRElectraAc
Class for handling detailed Electra A/C messages.
Definition: ir_Electra.h:112
ir_Tcl.h
Support for TCL protocols.
IRac::hasStateChanged
bool hasStateChanged(void)
Check if the internal state has changed from what was previously sent.
Definition: IRac.cpp:3168
IRac::daikin216
void daikin216(IRDaikin216 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo)
Send a Daikin 216-bit A/C message with the supplied settings.
Definition: IRac.cpp:770
ir_Transcold.h
Support for Transcold A/C protocols.
ir_Hitachi.h
Support for Hitachi A/C protocols.
ir_Panasonic.h
Support for Panasonic protocols.
IRac::rhoss
void rhoss(IRRhossAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swing)
Send an Rhoss A/C message with the supplied settings.
Definition: IRac.cpp:2415
IRac::handleToggles
static stdAc::state_t handleToggles(const stdAc::state_t desired, const stdAc::state_t *prev=NULL)
Create a new state base on desired & previous states but handle any state changes for options that ne...
Definition: IRac.cpp:2454
IRMitsubishi136
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:320
panasonic_ac_remote_model_t
panasonic_ac_remote_model_t
Panasonic A/C model numbers.
Definition: IRsend.h:158
IRremoteESP8266.h
stdAc::swingh_t
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
IRac::mitsubishi112
void mitsubishi112(IRMitsubishi112 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet)
Send a Mitsubishi 112-bit A/C message with the supplied settings.
Definition: IRac.cpp:1554
IRAcUtils::decodeToState
bool decodeToState(const decode_results *decode, stdAc::state_t *result, const stdAc::state_t *prev)
Convert a valid IR A/C remote message that we understand enough into a Common A/C state.
Definition: IRac.cpp:3924
IRHitachiAc1
Class for handling detailed Hitachi 104-bit A/C messages.
Definition: ir_Hitachi.h:303
IRMirageAc
Class for handling detailed Mirage 120-bit A/C messages.
Definition: ir_Mirage.h:196
IRac::hitachi424
void hitachi424(IRHitachiAc424 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv)
Send a Hitachi 424-bit A/C message with the supplied settings.
Definition: IRac.cpp:1317
ir_Samsung.h
Support for Samsung protocols. Samsung originally added from https://github.com/shirriff/Arduino-IRre...
IRac::opmodeToString
static String opmodeToString(const stdAc::opmode_t mode, const bool ha=false)
Convert the supplied operation mode into the appropriate String.
Definition: IRac.cpp:3442
IRAcUtils::resultAcToString
String resultAcToString(const decode_results *const result)
Display the human readable state of an A/C message if we can.
Definition: IRac.cpp:3508
IRac::daikin152
void daikin152(IRDaikin152 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool quiet, const bool turbo, const bool econo)
Send a Daikin 152-bit A/C message with the supplied settings.
Definition: IRac.cpp:644
fujitsu_ac_remote_model_t
fujitsu_ac_remote_model_t
Fujitsu A/C model numbers.
Definition: IRsend.h:120
ir_Gree.h
Support for Gree A/C protocols.
IRCarrierAc64
Class for handling detailed Carrier 64 bit A/C messages.
Definition: ir_Carrier.h:84
ir_Mirage.h
Support for Mirage protocol.
IRMideaAC
Class for handling detailed Midea A/C messages.
Definition: ir_Midea.h:153
IRKelvinatorAC
Class for handling detailed Kelvinator A/C messages.
Definition: ir_Kelvinator.h:121
IRac::_inverted
bool _inverted
IR LED is lit when GPIO is LOW (true) or HIGH (false)?
Definition: IRac.h:109
IRFujitsuAC
Class for handling detailed Fujitsu A/C messages.
Definition: ir_Fujitsu.h:169
ir_MitsubishiHeavy.h
Support for Mitsubishi Heavy Industry protocols. Code to emulate Mitsubishi Heavy Industries A/C IR r...
IRCoolixAC
Class for handling detailed Coolix A/C messages.
Definition: ir_Coolix.h:116
IRac::midea
void midea(IRMideaAC *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool econo, const bool light, const int16_t sleep=-1)
Send a Midea A/C message with the supplied settings.
Definition: IRac.cpp:1468
IRac::panasonic
void panasonic(IRPanasonicAc *ac, const panasonic_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool filter, const int16_t clock=-1)
Send a Panasonic A/C message with the supplied settings.
Definition: IRac.cpp:1751
IRac::swingvToString
static String swingvToString(const stdAc::swingv_t swingv)
Convert the supplied enum into the appropriate String.
Definition: IRac.cpp:3472
ir_Mitsubishi.h
Support for Mitsubishi protocols. Mitsubishi (TV) decoding added from https://github....
IRac
A universal/common/generic interface for controling supported A/Cs.
Definition: IRac.h:54
ir_Teco.h
Support for Teco protocols.
IRTrotec3550
Class for handling detailed Trotec 3550 A/C messages.
Definition: ir_Trotec.h:198
ir_Delonghi.h
Delonghi A/C.
IRac::electra
void electra(IRElectraAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool lighttoggle, const bool clean)
Send an Electra A/C message with the supplied settings.
Definition: IRac.cpp:896
IRac::cleanState
static stdAc::state_t cleanState(const stdAc::state_t state)
Create a new state base on the provided state that has been suitably fixed.
Definition: IRac.cpp:2441
ir_Argo.h
Support for Argo Ulisse 13 DCI Mobile Split ACs.
IRac::mitsubishi
void mitsubishi(IRMitsubishiAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const int16_t clock=-1)
Send a Mitsubishi A/C message with the supplied settings.
Definition: IRac.cpp:1517
IRac::amcor
void amcor(IRAmcorAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan)
Send an Amcor A/C message with the supplied settings.
Definition: IRac.cpp:364
IRTechnibelAc
Class for handling detailed Technibel A/C messages.
Definition: ir_Technibel.h:77
IREcoclimAc
Class for handling detailed EcoClim A/C 56 bit messages.
Definition: ir_Ecoclim.h:84
IRAirwellAc
Class for handling detailed Airwell A/C messages.
Definition: ir_Airwell.h:60
ir_Voltas.h
Support for Voltas A/C protocol.
IRDaikin152
Class for handling detailed Daikin 152-bit A/C messages.
Definition: ir_Daikin.h:1110
IRLgAc
Class for handling detailed LG A/C messages.
Definition: ir_LG.h:112
ir_Fujitsu.h
Support for Fujitsu A/C protocols. Fujitsu A/C support added by Jonny Graham.
IRac::trotec3550
void trotec3550(IRTrotec3550 *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv)
Send a Trotec 3550 A/C message with the supplied settings.
Definition: IRac.cpp:2187
IRHaierAC
Class for handling detailed Haier A/C messages.
Definition: ir_Haier.h:292
IRac::neoclima
void neoclima(IRNeoclimaAc *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool econo, const bool light, const bool filter, const int16_t sleep=-1)
Send a Neoclima A/C message with the supplied settings.
Definition: IRac.cpp:1710
IRDaikin160
Class for handling detailed Daikin 160-bit A/C messages.
Definition: ir_Daikin.h:929
IRSharpAc
Class for handling detailed Sharp A/C messages.
Definition: ir_Sharp.h:153
IRac::toshiba
void toshiba(IRToshibaAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool econo)
Send a Toshiba A/C message with the supplied settings.
Definition: IRac.cpp:2119
IRHaierAC176
Class for handling detailed Haier 176 bit A/C messages.
Definition: ir_Haier.h:362
ir_Goodweather.h
Support for Goodweather compatible HVAC protocols.
IRac::argo
void argo(IRArgoAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const int16_t sleep=-1)
Send an Argo A/C message with the supplied settings.
Definition: IRac.cpp:396
lg_ac_remote_model_t
lg_ac_remote_model_t
LG A/C model numbers.
Definition: IRsend.h:194
IRac::mitsubishi136
void mitsubishi136(IRMitsubishi136 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool quiet)
Send a Mitsubishi 136-bit A/C message with the supplied settings.
Definition: IRac.cpp:1590
stdAc::fanspeed_t::kAuto
@ kAuto
ir_Rhoss.h
Support for Rhoss A/C protocol.
IRac::_modulation
bool _modulation
Is frequency modulation to be used?
Definition: IRac.h:110
IRac::teco
void teco(IRTecoAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool light, const int16_t sleep=-1)
Send a Teco A/C message with the supplied settings.
Definition: IRac.cpp:2086
IRac::strToOpmode
static stdAc::opmode_t strToOpmode(const char *str, const stdAc::opmode_t def=stdAc::opmode_t::kAuto)
Convert the supplied str into the appropriate enum.
Definition: IRac.cpp:3174
ir_Sanyo.h
Support for Sanyo protocols. Sanyo LC7461 support originally by marcosamarinho Sanyo SA 8650B origina...
IRac::hitachi1
void hitachi1(IRHitachiAc1 *ac, const hitachi_ac1_remote_model_t model, const bool on, const bool power_toggle, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool swing_toggle, const int16_t sleep=-1)
Send a Hitachi1 A/C message with the supplied settings.
Definition: IRac.cpp:1244
IRTranscoldAc
Class for handling detailed Transcold A/C messages.
Definition: ir_Transcold.h:120
stdAc::swingh_t::kOff
@ kOff
IRac::panasonic32
void panasonic32(IRPanasonicAc32 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh)
Send a Panasonic A/C message with the supplied settings.
Definition: IRac.cpp:1787
ir_Whirlpool.h
Support for Whirlpool protocols. Decoding help from: @redmusicxd, @josh929800, @raducostea.
IRac::strToBool
static bool strToBool(const char *str, const bool def=false)
Convert the supplied str into the appropriate boolean value.
Definition: IRac.cpp:3416
IRac::sanyo88
void sanyo88(IRSanyoAc88 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool filter, const int16_t sleep=-1, const int16_t clock=-1)
Send a Sanyo 88-bit A/C message with the supplied settings.
Definition: IRac.cpp:1918
IRac::mitsubishiHeavy88
void mitsubishiHeavy88(IRMitsubishiHeavy88Ac *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool econo, const bool clean)
Send a Mitsubishi Heavy 88-bit A/C message with the supplied settings.
Definition: IRac.cpp:1625
IRac::strToSwingV
static stdAc::swingv_t strToSwingV(const char *str, const stdAc::swingv_t def=stdAc::swingv_t::kOff)
Convert the supplied str into the appropriate enum.
Definition: IRac.cpp:3241
IRVestelAc
Class for handling detailed Vestel A/C messages.
Definition: ir_Vestel.h:100
IRPanasonicAc32
Class for handling detailed Panasonic 32bit A/C messages.
Definition: ir_Panasonic.h:223
IRac::tcl112
void tcl112(IRTcl112Ac *ac, const tcl_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool light, const bool econo, const bool filter)
Send a TCL 112-bit A/C message with the supplied settings.
Definition: IRac.cpp:2016
IRac::mirage
void mirage(IRMirageAc *ac, const stdAc::state_t state)
Send a Mirage 120-bit A/C message with the supplied settings.
Definition: IRac.cpp:1498
IRTrotecESP
Class for handling detailed Trotec A/C messages.
Definition: ir_Trotec.h:133
ir_Truma.h
Support for Truma protocol.
IRTecoAc
Class for handling detailed Teco A/C messages.
Definition: ir_Teco.h:62
IRac::truma
void truma(IRTrumaAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const bool quiet)
Send a Truma A/C message with the supplied settings.
Definition: IRac.cpp:2219
IRac::swinghToString
static String swinghToString(const stdAc::swingh_t swingh)
Convert the supplied enum into the appropriate String.
Definition: IRac.cpp:3488
IRTrumaAc
Class for handling detailed Truma A/C messages.
Definition: ir_Truma.h:69
ir_Technibel.h
Support for Technibel protocol.
IRac::delonghiac
void delonghiac(IRDelonghiAc *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const bool turbo, const int16_t sleep=-1)
Send a Delonghi A/C message with the supplied settings.
Definition: IRac.cpp:830
IRac::kelon
void kelon(IRKelonAc *ac, const bool togglePower, const stdAc::opmode_t mode, const int8_t dryGrade, const float degrees, const stdAc::fanspeed_t fan, const bool toggleSwing, const bool superCool, const int16_t sleep)
Send a Kelon A/C message with the supplied settings.
Definition: IRac.cpp:1352
ir_Kelon.h
Support for Kelan AC protocol. Both sending and decoding should be functional for models of series KE...
IRac::_prev
stdAc::state_t _prev
The state we expect the device to currently be in.
Definition: IRac.h:111
IRHaierACYRW02
Class for handling detailed Haier ACYRW02 A/C messages.
Definition: ir_Haier.h:460
IRac::daikin160
void daikin160(IRDaikin160 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv)
Send a Daikin 160-bit A/C message with the supplied settings.
Definition: IRac.cpp:677
IRac::corona
void corona(IRCoronaAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool econo)
Send a Corona A/C message with the supplied settings.
Definition: IRac.cpp:532
IRac::initState
static void initState(stdAc::state_t *state, const decode_type_t vendor, const int16_t model, const bool power, const stdAc::opmode_t mode, const float degrees, const bool celsius, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool econo, const bool light, const bool filter, const bool clean, const bool beep, const int16_t sleep, const int16_t clock)
Initialise the given state with the supplied settings.
Definition: IRac.cpp:100
IRac::lg
void lg(IRLgAc *ac, const lg_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingv_t swingv_prev, const stdAc::swingh_t swingh, const bool light)
Send a LG A/C message with the supplied settings.
Definition: IRac.cpp:1424
IRac::mitsubishiHeavy152
void mitsubishiHeavy152(IRMitsubishiHeavy152Ac *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool quiet, const bool turbo, const bool econo, const bool filter, const bool clean, const int16_t sleep=-1)
Send a Mitsubishi Heavy 152-bit A/C message with the supplied settings.
Definition: IRac.cpp:1666
stdAc::swingv_t::kOff
@ kOff
ir_Haier.h
Support for Haier A/C protocols. The specifics of reverse engineering the protocols details:
IRMitsubishiHeavy88Ac
Class for handling detailed Mitsubishi Heavy 88-bit A/C messages.
Definition: ir_MitsubishiHeavy.h:271
IRGreeAC
Class for handling detailed Gree A/C messages.
Definition: ir_Gree.h:152
IRac::coolix
void coolix(IRCoolixAC *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool light, const bool clean, const int16_t sleep=-1)
Send a Coolix A/C message with the supplied settings.
Definition: IRac.cpp:465
IRac::strToFanspeed
static stdAc::fanspeed_t strToFanspeed(const char *str, const stdAc::fanspeed_t def=stdAc::fanspeed_t::kAuto)
Convert the supplied str into the appropriate enum.
Definition: IRac.cpp:3210
ir_Toshiba.h
Support for Toshiba protocols.
IRac::gree
void gree(IRGreeAC *ac, const gree_ac_remote_model_t model, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const stdAc::swingh_t swingh, const bool turbo, const bool econo, const bool light, const bool clean, const int16_t sleep=-1)
Send a Gree A/C message with the supplied settings.
Definition: IRac.cpp:1048
IRac::goodweather
void goodweather(IRGoodweatherAc *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const bool turbo, const bool light, const int16_t sleep=-1)
Send a Goodweather A/C message with the supplied settings.
Definition: IRac.cpp:1004
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
IRGoodweatherAc
Class for handling detailed Goodweather A/C messages.
Definition: ir_Goodweather.h:100
ir_Vestel.h
Support for Vestel protocols. Vestel added by Erdem U. Altinyurt.
ir_Corona.h
IRArgoAC
Class for handling detailed Argo A/C messages.
Definition: ir_Argo.h:127
IRSanyoAc88
Class for handling detailed Sanyo A/C messages.
Definition: ir_Sanyo.h:226
IRNeoclimaAc
Class for handling detailed Neoclima A/C messages.
Definition: ir_Neoclima.h:120
IRac::isProtocolSupported
static bool isProtocolSupported(const decode_type_t protocol)
Is the given protocol supported by the IRac class?
Definition: IRac.cpp:153
IRDaikin176
Class for handling detailed Daikin 176-bit A/C messages.
Definition: ir_Daikin.h:981
ir_Amcor.h
Amcor A/C protocol.
IRac::_pin
uint16_t _pin
The GPIO to use to transmit messages from.
Definition: IRac.h:108
IRac::technibel
void technibel(IRTechnibelAc *ac, const bool on, const stdAc::opmode_t mode, const bool celsius, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const int16_t sleep=-1)
Send a Technibel A/C message with the supplied settings.
Definition: IRac.cpp:2053
voltas_ac_remote_model_t
voltas_ac_remote_model_t
Voltas A/C model numbers.
Definition: IRsend.h:182
sharp_ac_remote_model_t
sharp_ac_remote_model_t
Sharp A/C model numbers.
Definition: IRsend.h:169
ir_LG.h
Support for LG protocols.
IRac::carrier64
void carrier64(IRCarrierAc64 *ac, const bool on, const stdAc::opmode_t mode, const float degrees, const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv, const int16_t sleep=-1)
Send a Carrier 64-bit A/C message with the supplied settings.
Definition: IRac.cpp:428
haier_ac176_remote_model_t
haier_ac176_remote_model_t
HAIER_AC176 A/C model numbers.
Definition: IRsend.h:140
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46