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_Mitsubishi.h"
30 #include "ir_MitsubishiHeavy.h"
31 #include "ir_Neoclima.h"
32 #include "ir_Panasonic.h"
33 #include "ir_Samsung.h"
34 #include "ir_Sanyo.h"
35 #include "ir_Sharp.h"
36 #include "ir_Tcl.h"
37 #include "ir_Technibel.h"
38 #include "ir_Teco.h"
39 #include "ir_Toshiba.h"
40 #include "ir_Transcold.h"
41 #include "ir_Trotec.h"
42 #include "ir_Truma.h"
43 #include "ir_Vestel.h"
44 #include "ir_Voltas.h"
45 #include "ir_Whirlpool.h"
46 
47 // Constants
48 const int8_t kGpioUnused = -1;
49 
50 // Class
52 class IRac {
53  public:
54  explicit IRac(const uint16_t pin, const bool inverted = false,
55  const bool use_modulation = true);
56  static bool isProtocolSupported(const decode_type_t protocol);
57  static void initState(stdAc::state_t *state,
58  const decode_type_t vendor, const int16_t model,
59  const bool power, const stdAc::opmode_t mode,
60  const float degrees, const bool celsius,
61  const stdAc::fanspeed_t fan,
62  const stdAc::swingv_t swingv,
63  const stdAc::swingh_t swingh,
64  const bool quiet, const bool turbo, const bool econo,
65  const bool light, const bool filter, const bool clean,
66  const bool beep, const int16_t sleep,
67  const int16_t clock);
68  static void initState(stdAc::state_t *state);
69  void markAsSent(void);
70  bool sendAc(void);
71  bool sendAc(const stdAc::state_t desired, const stdAc::state_t *prev = NULL);
72  bool sendAc(const decode_type_t vendor, const int16_t model,
73  const bool power, const stdAc::opmode_t mode, const float degrees,
74  const bool celsius, const stdAc::fanspeed_t fan,
75  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
76  const bool quiet, const bool turbo, const bool econo,
77  const bool light, const bool filter, const bool clean,
78  const bool beep, const int16_t sleep = -1,
79  const int16_t clock = -1);
80  static bool cmpStates(const stdAc::state_t a, const stdAc::state_t b);
81  static bool strToBool(const char *str, const bool def = false);
82  static int16_t strToModel(const char *str, const int16_t def = -1);
84  const char *str, const stdAc::opmode_t def = stdAc::opmode_t::kAuto);
86  const char *str,
89  const char *str, const stdAc::swingv_t def = stdAc::swingv_t::kOff);
91  const char *str, const stdAc::swingh_t def = stdAc::swingh_t::kOff);
92  static String boolToString(const bool value);
93  static String opmodeToString(const stdAc::opmode_t mode);
94  static String fanspeedToString(const stdAc::fanspeed_t speed);
95  static String swingvToString(const stdAc::swingv_t swingv);
96  static String swinghToString(const stdAc::swingh_t swingh);
99  bool hasStateChanged(void);
101 #ifndef UNIT_TEST
102 
103  private:
104 #endif
105  uint16_t _pin;
106  bool _inverted;
107  bool _modulation;
109 #if SEND_AIRWELL
110  void airwell(IRAirwellAc *ac,
111  const bool on, const stdAc::opmode_t mode, const float degrees,
112  const stdAc::fanspeed_t fan);
113 #endif // SEND_AIRWELL
114 #if SEND_AMCOR
115  void amcor(IRAmcorAc *ac,
116  const bool on, const stdAc::opmode_t mode, const float degrees,
117  const stdAc::fanspeed_t fan);
118 #endif // SEND_AMCOR
119 #if SEND_ARGO
120  void argo(IRArgoAC *ac,
121  const bool on, const stdAc::opmode_t mode, const float degrees,
122  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
123  const bool turbo, const int16_t sleep = -1);
124 #endif // SEND_ARGO
125 #if SEND_CARRIER_AC64
126 void carrier64(IRCarrierAc64 *ac,
127  const bool on, const stdAc::opmode_t mode,
128  const float degrees, const stdAc::fanspeed_t fan,
129  const stdAc::swingv_t swingv, const int16_t sleep = -1);
130 #endif // SEND_CARRIER_AC64
131 #if SEND_COOLIX
132  void coolix(IRCoolixAC *ac,
133  const bool on, const stdAc::opmode_t mode, const float degrees,
134  const stdAc::fanspeed_t fan,
135  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
136  const bool turbo, const bool light, const bool clean,
137  const int16_t sleep = -1);
138 #endif // SEND_COOLIX
139 #if SEND_CORONA_AC
140  void corona(IRCoronaAc *ac,
141  const bool on, const stdAc::opmode_t mode,
142  const float degrees, const stdAc::fanspeed_t fan,
143  const stdAc::swingv_t swingv, const bool econo);
144 #endif // SEND_CORONA_AC
145 #if SEND_DAIKIN
146  void daikin(IRDaikinESP *ac,
147  const bool on, const stdAc::opmode_t mode, const float degrees,
148  const stdAc::fanspeed_t fan,
149  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
150  const bool quiet, const bool turbo, const bool econo,
151  const bool clean);
152 #endif // SEND_DAIKIN
153 #if SEND_DAIKIN128
154  void daikin128(IRDaikin128 *ac,
155  const bool on, const stdAc::opmode_t mode,
156  const float degrees, const stdAc::fanspeed_t fan,
157  const stdAc::swingv_t swingv,
158  const bool quiet, const bool turbo, const bool light,
159  const bool econo, const int16_t sleep = -1,
160  const int16_t clock = -1);
161 #endif // SEND_DAIKIN128
162 #if SEND_DAIKIN152
163  void daikin152(IRDaikin152 *ac,
164  const bool on, const stdAc::opmode_t mode,
165  const float degrees, const stdAc::fanspeed_t fan,
166  const stdAc::swingv_t swingv,
167  const bool quiet, const bool turbo, const bool econo);
168 #endif // SEND_DAIKIN152
169 #if SEND_DAIKIN160
170  void daikin160(IRDaikin160 *ac,
171  const bool on, const stdAc::opmode_t mode,
172  const float degrees, const stdAc::fanspeed_t fan,
173  const stdAc::swingv_t swingv);
174 #endif // SEND_DAIKIN160
175 #if SEND_DAIKIN176
176  void daikin176(IRDaikin176 *ac,
177  const bool on, const stdAc::opmode_t mode,
178  const float degrees, const stdAc::fanspeed_t fan,
179  const stdAc::swingh_t swingh);
180 #endif // SEND_DAIKIN176
181 #if SEND_DAIKIN2
182  void daikin2(IRDaikin2 *ac,
183  const bool on, const stdAc::opmode_t mode,
184  const float degrees, const stdAc::fanspeed_t fan,
185  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
186  const bool quiet, const bool turbo, const bool light,
187  const bool econo, const bool filter, const bool clean,
188  const bool beep, const int16_t sleep = -1,
189  const int16_t clock = -1);
190 #endif // SEND_DAIKIN2
191 #if SEND_DAIKIN216
192 void daikin216(IRDaikin216 *ac,
193  const bool on, const stdAc::opmode_t mode,
194  const float degrees, const stdAc::fanspeed_t fan,
195  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
196  const bool quiet, const bool turbo);
197 #endif // SEND_DAIKIN216
198 #if SEND_DAIKIN64
199  void daikin64(IRDaikin64 *ac,
200  const bool on, const stdAc::opmode_t mode,
201  const float degrees, const stdAc::fanspeed_t fan,
202  const stdAc::swingv_t swingv,
203  const bool quiet, const bool turbo,
204  const int16_t sleep = -1, const int16_t clock = -1);
205 #endif // SEND_DAIKIN64
206 #if SEND_DELONGHI_AC
207  void delonghiac(IRDelonghiAc *ac,
208  const bool on, const stdAc::opmode_t mode, const bool celsius,
209  const float degrees, const stdAc::fanspeed_t fan,
210  const bool turbo, const int16_t sleep = -1);
211 #endif // SEND_DELONGHI_AC
212 #if SEND_ECOCLIM
213 void ecoclim(IREcoclimAc *ac,
214  const bool on, const stdAc::opmode_t mode,
215  const float degrees, const stdAc::fanspeed_t fan,
216  const int16_t sleep = -1, const int16_t clock = -1);
217 #endif // SEND_ECOCLIM
218 #if SEND_ELECTRA_AC
219 void electra(IRElectraAc *ac,
220  const bool on, const stdAc::opmode_t mode,
221  const float degrees, const stdAc::fanspeed_t fan,
222  const stdAc::swingv_t swingv,
223  const stdAc::swingh_t swingh, const bool turbo,
224  const bool lighttoggle, const bool clean);
225 #endif // SEND_ELECTRA_AC
226 #if SEND_FUJITSU_AC
227  void fujitsu(IRFujitsuAC *ac, const fujitsu_ac_remote_model_t model,
228  const bool on, const stdAc::opmode_t mode,
229  const bool celsius, const float degrees,
230  const stdAc::fanspeed_t fan,
231  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
232  const bool quiet, const bool turbo, const bool econo,
233  const bool filter, const bool clean, const int16_t sleep = -1);
234 #endif // SEND_FUJITSU_AC
235 #if SEND_GOODWEATHER
236  void goodweather(IRGoodweatherAc *ac,
237  const bool on, const stdAc::opmode_t mode,
238  const float degrees,
239  const stdAc::fanspeed_t fan,
240  const stdAc::swingv_t swingv,
241  const bool turbo, const bool light,
242  const int16_t sleep = -1);
243 #endif // SEND_GOODWEATHER
244 #if SEND_GREE
245  void gree(IRGreeAC *ac, const gree_ac_remote_model_t model,
246  const bool on, const stdAc::opmode_t mode, const bool celsius,
247  const float degrees, const stdAc::fanspeed_t fan,
248  const stdAc::swingv_t swingv, const bool turbo, const bool light,
249  const bool clean, const int16_t sleep = -1);
250 #endif // SEND_GREE
251 #if SEND_HAIER_AC
252  void haier(IRHaierAC *ac,
253  const bool on, const stdAc::opmode_t mode, const float degrees,
254  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
255  const bool filter, const int16_t sleep = -1,
256  const int16_t clock = -1);
257 #endif // SEND_HAIER_AC
258 #if SEND_HAIER_AC176
259  void haier176(IRHaierAC176 *ac,
260  const bool on, const stdAc::opmode_t mode,
261  const float degrees, const stdAc::fanspeed_t fan,
262  const stdAc::swingv_t swingv,
263  const bool turbo, const bool filter,
264  const int16_t sleep = -1);
265 #endif // SEND_HAIER_AC176
266 #if SEND_HAIER_AC_YRW02
267  void haierYrwo2(IRHaierACYRW02 *ac,
268  const bool on, const stdAc::opmode_t mode,
269  const float degrees, const stdAc::fanspeed_t fan,
270  const stdAc::swingv_t swingv,
271  const bool turbo, const bool filter,
272  const int16_t sleep = -1);
273 #endif // SEND_HAIER_AC_YRW02
274 #if SEND_HITACHI_AC
275  void hitachi(IRHitachiAc *ac,
276  const bool on, const stdAc::opmode_t mode,
277  const float degrees, const stdAc::fanspeed_t fan,
278  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
279 #endif // SEND_HITACHI_AC
280 #if SEND_HITACHI_AC1
281  void hitachi1(IRHitachiAc1 *ac, const hitachi_ac1_remote_model_t model,
282  const bool on, const bool power_toggle,
283  const stdAc::opmode_t mode,
284  const float degrees, const stdAc::fanspeed_t fan,
285  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
286  const bool swing_toggle, const int16_t sleep = -1);
287 #endif // SEND_HITACHI_AC1
288 #if SEND_HITACHI_AC344
289  void hitachi344(IRHitachiAc344 *ac,
290  const bool on, const stdAc::opmode_t mode,
291  const float degrees, const stdAc::fanspeed_t fan,
292  const stdAc::swingv_t swingv,
293  const stdAc::swingh_t swingh);
294 #endif // SEND_HITACHI_AC344
295 #if SEND_HITACHI_AC424
296  void hitachi424(IRHitachiAc424 *ac,
297  const bool on, const stdAc::opmode_t mode,
298  const float degrees, const stdAc::fanspeed_t fan,
299  const stdAc::swingv_t swingv);
300 #endif // SEND_HITACHI_AC424
301 #if SEND_KELON
302  void kelon(IRKelonAc *ac, const bool togglePower, const stdAc::opmode_t mode,
303  const int8_t dryGrade, const float degrees,
304  const stdAc::fanspeed_t fan, const bool toggleSwing,
305  const bool superCool, const int16_t sleep);
306 #endif // SEND_KELON
307 #if SEND_KELVINATOR
308  void kelvinator(IRKelvinatorAC *ac,
309  const bool on, const stdAc::opmode_t mode,
310  const float degrees, const stdAc::fanspeed_t fan,
311  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
312  const bool quiet, const bool turbo, const bool light,
313  const bool filter, const bool clean);
314 #endif // SEND_KELVINATOR
315 #if SEND_LG
316  void lg(IRLgAc *ac, const lg_ac_remote_model_t model,
317  const bool on, const stdAc::opmode_t mode,
318  const float degrees, const stdAc::fanspeed_t fan,
319  const stdAc::swingv_t swingv, const stdAc::swingv_t swingv_prev,
320  const stdAc::swingh_t swingh, const bool light);
321 #endif // SEND_LG
322 #if SEND_MIDEA
323  void midea(IRMideaAC *ac,
324  const bool on, const stdAc::opmode_t mode, const bool celsius,
325  const float degrees, const stdAc::fanspeed_t fan,
326  const stdAc::swingv_t swingv, const bool turbo, const bool econo,
327  const bool light, const int16_t sleep = -1);
328 #endif // SEND_MIDEA
329 #if SEND_MITSUBISHI_AC
330  void mitsubishi(IRMitsubishiAC *ac,
331  const bool on, const stdAc::opmode_t mode,
332  const float degrees,
333  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
334  const stdAc::swingh_t swingh,
335  const bool quiet, const int16_t clock = -1);
336 #endif // SEND_MITSUBISHI_AC
337 #if SEND_MITSUBISHI112
339  const bool on, const stdAc::opmode_t mode,
340  const float degrees, const stdAc::fanspeed_t fan,
341  const stdAc::swingv_t swingv,
342  const stdAc::swingh_t swingh,
343  const bool quiet);
344 #endif // SEND_MITSUBISHI112
345 #if SEND_MITSUBISHI136
347  const bool on, const stdAc::opmode_t mode,
348  const float degrees, const stdAc::fanspeed_t fan,
349  const stdAc::swingv_t swingv, const bool quiet);
350 #endif // SEND_MITSUBISHI136
351 #if SEND_MITSUBISHIHEAVY
353  const bool on, const stdAc::opmode_t mode,
354  const float degrees, const stdAc::fanspeed_t fan,
355  const stdAc::swingv_t swingv,
356  const stdAc::swingh_t swingh,
357  const bool turbo, const bool econo, const bool clean);
359  const bool on, const stdAc::opmode_t mode,
360  const float degrees, const stdAc::fanspeed_t fan,
361  const stdAc::swingv_t swingv,
362  const stdAc::swingh_t swingh,
363  const bool quiet, const bool turbo, const bool econo,
364  const bool filter, const bool clean,
365  const int16_t sleep = -1);
366 #endif // SEND_MITSUBISHIHEAVY
367 #if SEND_NEOCLIMA
368  void neoclima(IRNeoclimaAc *ac, const bool on, const stdAc::opmode_t mode,
369  const bool celsius, const float degrees,
370  const stdAc::fanspeed_t fan,
371  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
372  const bool turbo, const bool econo, const bool light,
373  const bool filter, const int16_t sleep = -1);
374 #endif // SEND_NEOCLIMA
375 #if SEND_PANASONIC_AC
377  const bool on, const stdAc::opmode_t mode, const float degrees,
378  const stdAc::fanspeed_t fan,
379  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
380  const bool quiet, const bool turbo, const bool filter,
381  const int16_t clock = -1);
382 #endif // SEND_PANASONIC_AC
383 #if SEND_PANASONIC_AC32
384  void panasonic32(IRPanasonicAc32 *ac,
385  const bool on, const stdAc::opmode_t mode,
386  const float degrees, const stdAc::fanspeed_t fan,
387  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
388 #endif // SEND_PANASONIC_AC32
389 #if SEND_SAMSUNG_AC
390  void samsung(IRSamsungAc *ac,
391  const bool on, const stdAc::opmode_t mode, const float degrees,
392  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
393  const bool quiet, const bool turbo, const bool light,
394  const bool filter, const bool clean,
395  const bool beep, const bool prevpower = true,
396  const bool forcepower = true);
397 #endif // SEND_SAMSUNG_AC
398 #if SEND_SANYO_AC
399  void sanyo(IRSanyoAc *ac,
400  const bool on, const stdAc::opmode_t mode, const float degrees,
401  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
402  const bool beep, const int16_t sleep = -1);
403 #endif // SEND_SANYO_AC
404 #if SEND_SANYO_AC88
405  void sanyo88(IRSanyoAc88 *ac,
406  const bool on, const stdAc::opmode_t mode,
407  const float degrees, const stdAc::fanspeed_t fan,
408  const stdAc::swingv_t swingv, const bool turbo,
409  const bool filter,
410  const int16_t sleep = -1, const int16_t clock = -1);
411 #endif // SEND_SANYO_AC88
412 #if SEND_SHARP_AC
413  void sharp(IRSharpAc *ac, const sharp_ac_remote_model_t model,
414  const bool on, const bool prev_power, const stdAc::opmode_t mode,
415  const float degrees, const stdAc::fanspeed_t fan,
416  const stdAc::swingv_t swingv, const bool turbo, const bool light,
417  const bool filter, const bool clean);
418 #endif // SEND_SHARP_AC
419 #if SEND_TCL112AC
420  void tcl112(IRTcl112Ac *ac,
421  const bool on, const stdAc::opmode_t mode, const float degrees,
422  const stdAc::fanspeed_t fan,
423  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
424  const bool quiet, const bool turbo, const bool light,
425  const bool econo, const bool filter);
426 #endif // SEND_TCL112AC
427 #if SEND_TECHNIBEL_AC
428  void technibel(IRTechnibelAc *ac,
429  const bool on, const stdAc::opmode_t mode, const bool celsius,
430  const float degrees, const stdAc::fanspeed_t fan,
431  const stdAc::swingv_t swingv, const int16_t sleep = -1);
432 #endif // SEND_TECHNIBEL_AC
433 #if SEND_TECO
434  void teco(IRTecoAc *ac,
435  const bool on, const stdAc::opmode_t mode, const float degrees,
436  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
437  const bool light, const int16_t sleep = -1);
438 #endif // SEND_TECO
439 #if SEND_TOSHIBA_AC
440  void toshiba(IRToshibaAC *ac,
441  const bool on, const stdAc::opmode_t mode, const float degrees,
442  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
443  const bool turbo, const bool econo);
444 #endif // SEND_TOSHIBA_AC
445 #if SEND_TROTEC
446  void trotec(IRTrotecESP *ac,
447  const bool on, const stdAc::opmode_t mode, const float degrees,
448  const stdAc::fanspeed_t fan, const int16_t sleep = -1);
449 #endif // SEND_TROTEC
450 #if SEND_TROTEC_3550
451  void trotec3550(IRTrotec3550 *ac,
452  const bool on, const stdAc::opmode_t mode,
453  const bool celsius, const float degrees,
454  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv);
455 #endif // SEND_TROTEC_3550
456 #if SEND_TRUMA
457  void truma(IRTrumaAc *ac,
458  const bool on, const stdAc::opmode_t mode, const float degrees,
459  const stdAc::fanspeed_t fan, const bool quiet);
460 #endif // SEND_TRUMA
461 #if SEND_VESTEL_AC
462  void vestel(IRVestelAc *ac,
463  const bool on, const stdAc::opmode_t mode, const float degrees,
464  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
465  const bool turbo, const bool filter,
466  const int16_t sleep = -1, const int16_t clock = -1,
467  const bool sendNormal = true);
468 #endif // SEND_VESTEL_AC
469 #if SEND_VOLTAS
470  void voltas(IRVoltas *ac, const voltas_ac_remote_model_t model,
471  const bool on, const stdAc::opmode_t mode,
472  const float degrees, const stdAc::fanspeed_t fan,
473  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh,
474  const bool turbo, const bool econo, const bool light,
475  const int16_t sleep = -1);
476 #endif // SEND_VOLTAS
477 #if SEND_WHIRLPOOL_AC
479  const bool on, const stdAc::opmode_t mode, const float degrees,
480  const stdAc::fanspeed_t fan, const stdAc::swingv_t swingv,
481  const bool turbo, const bool light,
482  const int16_t sleep = -1, const int16_t clock = -1);
483 #endif // SEND_WHIRLPOOL_AC
484 #if SEND_TRANSCOLD
485  void transcold(IRTranscoldAc *ac,
486  const bool on, const stdAc::opmode_t mode, const float degrees,
487  const stdAc::fanspeed_t fan,
488  const stdAc::swingv_t swingv, const stdAc::swingh_t swingh);
489 #endif // SEND_TRANSCOLD
490 static stdAc::state_t cleanState(const stdAc::state_t state);
491 static stdAc::state_t handleToggles(const stdAc::state_t desired,
492  const stdAc::state_t *prev = NULL);
493 }; // IRac class
494 
496 namespace IRAcUtils {
497  String resultAcToString(const decode_results * const results);
498  bool decodeToState(const decode_results *decode, stdAc::state_t *result,
499  const stdAc::state_t *prev = NULL);
500 } // namespace IRAcUtils
501 #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:315
ir_Kelvinator.h
Support for Kelvinator A/C protocols.
IRSamsungAc
Class for handling detailed Samsung A/C messages.
Definition: ir_Samsung.h:173
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:1166
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:845
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:136
IRac::getState
stdAc::state_t getState(void)
Get the current internal A/C climate state.
Definition: IRac.cpp:131
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:3151
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 bool turbo, const bool light, const bool filter, const bool clean)
Send a Sharp A/C message with the supplied settings.
Definition: IRac.cpp:1900
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:1242
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:833
IRac::markAsSent
void markAsSent(void)
Update the previous state to the current one.
Definition: IRac.cpp:3014
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:710
ir_Trotec.h
Support for Trotec protocols.
IRac::haier176
void haier176(IRHaierAC176 *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)
Send a Haier 176 bit A/C message with the supplied settings.
Definition: IRac.cpp:1100
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:1818
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:1345
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:918
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:3305
whirlpool_ac_remote_model_t
whirlpool_ac_remote_model_t
Whirlpool A/C model numbers.
Definition: IRsend.h:170
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:2276
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:779
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:2235
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:2313
IRac::sendAc
bool sendAc(void)
Send an A/C message based soley on our internal state.
Definition: IRac.cpp:3020
IRac::cmpStates
static bool cmpStates(const stdAc::state_t a, const stdAc::state_t b)
Compare two AirCon states.
Definition: IRac.cpp:3031
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
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:2193
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:546
IRac::IRac
IRac(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: IRac.cpp:57
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
hitachi_ac1_remote_model_t
hitachi_ac1_remote_model_t
HITACHI_AC1 A/C model numbers.
Definition: IRsend.h:140
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 bool quiet, const bool turbo, const bool light, const bool filter, const bool clean, const bool beep, const bool prevpower=true, const bool forcepower=true)
Send a Samsung A/C message with the supplied settings.
Definition: IRac.cpp:1777
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:586
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:48
IRAcUtils
Common functions for use with all A/Cs supported by the IRac class.
Definition: IRac.cpp:3374
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:1063
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:3276
IRac::next
stdAc::state_t next
The state we want the device to be in after we send.
Definition: IRac.h:100
String
std::string String
Definition: IRremoteESP8266.h:1279
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:2092
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:3191
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:99
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:678
IRElectraAc
Class for handling detailed Electra A/C messages.
Definition: ir_Electra.h:99
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:3043
IRac::haierYrwo2
void haierYrwo2(IRHaierACYRW02 *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)
Send a Haier YRWO2 A/C message with the supplied settings.
Definition: IRac.cpp:1134
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:749
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::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:2362
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:146
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:1502
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:3781
IRHitachiAc1
Class for handling detailed Hitachi 104-bit A/C messages.
Definition: ir_Hitachi.h:303
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:1276
ir_Samsung.h
Support for Samsung protocols. Samsung originally added from https://github.com/shirriff/Arduino-IRre...
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:3380
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:623
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
IRMideaAC
Class for handling detailed Midea A/C messages.
Definition: ir_Midea.h:151
IRKelvinatorAC
Class for handling detailed Kelvinator A/C messages.
Definition: ir_Kelvinator.h:121
IRac::tcl112
void tcl112(IRTcl112Ac *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)
Send a TCL 112-bit A/C message with the supplied settings.
Definition: IRac.cpp:1954
IRac::_inverted
bool _inverted
IR LED is lit when GPIO is LOW (true) or HIGH (false)?
Definition: IRac.h:106
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:1427
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:1699
IRac::swingvToString
static String swingvToString(const stdAc::swingv_t swingv)
Convert the supplied enum into the appropriate String.
Definition: IRac.cpp:3327
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:52
ir_Teco.h
Support for Teco protocols.
IRTrotec3550
Class for handling detailed Trotec 3550 A/C messages.
Definition: ir_Trotec.h:197
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 bool turbo, const bool light, const bool clean, const int16_t sleep=-1)
Send a Gree A/C message with the supplied settings.
Definition: IRac.cpp:1025
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:875
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:2349
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:1465
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:343
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:110
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:2124
IRHaierAC
Class for handling detailed Haier A/C messages.
Definition: ir_Haier.h:317
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:1658
IRDaikin160
Class for handling detailed Daikin 160-bit A/C messages.
Definition: ir_Daikin.h:929
IRac::opmodeToString
static String opmodeToString(const stdAc::opmode_t mode)
Convert the supplied operation mode into the appropriate String.
Definition: IRac.cpp:3283
IRSharpAc
Class for handling detailed Sharp A/C messages.
Definition: ir_Sharp.h:137
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:2056
IRHaierAC176
Class for handling detailed Haier 176 bit A/C messages.
Definition: ir_Haier.h:387
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:375
lg_ac_remote_model_t
lg_ac_remote_model_t
LG A/C model numbers.
Definition: IRsend.h:176
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:1538
stdAc::fanspeed_t::kAuto
@ kAuto
IRac::_modulation
bool _modulation
Is frequency modulation to be used?
Definition: IRac.h:107
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:2023
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:3049
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:1203
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:1735
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:3258
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:1859
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:1573
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:3110
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
IRTrotecESP
Class for handling detailed Trotec A/C messages.
Definition: ir_Trotec.h:132
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:2156
IRac::swinghToString
static String swinghToString(const stdAc::swingh_t swingh)
Convert the supplied enum into the appropriate String.
Definition: IRac.cpp:3351
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:809
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:1311
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:108
IRHaierACYRW02
Class for handling detailed Haier ACYRW02 A/C messages.
Definition: ir_Haier.h:464
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:656
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:511
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:88
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:1383
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:1614
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:136
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:444
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:3079
ir_Toshiba.h
Support for Toshiba protocols.
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:983
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:141
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:105
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:1990
voltas_ac_remote_model_t
voltas_ac_remote_model_t
Voltas A/C model numbers.
Definition: IRsend.h:164
sharp_ac_remote_model_t
sharp_ac_remote_model_t
Sharp A/C model numbers.
Definition: IRsend.h:157
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:407
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46