Go to the documentation of this file.
41 #ifndef IR_MITSUBISHI_H_
42 #define IR_MITSUBISHI_H_
44 #define __STDC_LIMIT_MACROS
52 #include "IRsend_test.h"
250 #define MITSUBISHI_AC_VANE_AUTO_MOVE kMitsubishiAcVaneAutoMove
251 #define MITSUBISHI_AC_VANE_AUTO kMitsubishiAcVaneAuto
252 #define MITSUBISHI_AC_MIN_TEMP kMitsubishiAcMinTemp
253 #define MITSUBISHI_AC_MAX_TEMP kMitsubishiAcMaxTemp
254 #define MITSUBISHI_AC_HEAT kMitsubishiAcHeat
255 #define MITSUBISHI_AC_FAN_SILENT kMitsubishiAcFanSilent
256 #define MITSUBISHI_AC_FAN_REAL_MAX kMitsubishiAcFanRealMax
257 #define MITSUBISHI_AC_FAN_MAX kMitsubishiAcFanMax
258 #define MITSUBISHI_AC_FAN_AUTO kMitsubishiAcFanAuto
259 #define MITSUBISHI_AC_DRY kMitsubishiAcDry
260 #define MITSUBISHI_AC_COOL kMitsubishiAcCool
261 #define MITSUBISHI_AC_AUTO kMitsubishiAcAuto
269 explicit IRMitsubishiAC(
const uint16_t pin,
const bool inverted =
false,
270 const bool use_modulation =
true);
273 #if SEND_MITSUBISHI_AC
280 #endif // SEND_MITSUBISHI_AC
286 void setTemp(
const float degrees);
288 void setFan(
const uint8_t speed);
289 uint8_t
getFan(
void)
const;
290 void setMode(
const uint8_t mode);
294 void setISee(
const bool state);
304 void setVane(
const uint8_t position);
311 void setRaw(
const uint8_t* data);
349 explicit IRMitsubishi136(
const uint16_t pin,
const bool inverted =
false,
350 const bool use_modulation =
true);
352 #if SEND_MITSUBISHI136
359 #endif // SEND_MITSUBISHI136
367 void setTemp(
const uint8_t degrees);
369 void setFan(
const uint8_t speed);
370 uint8_t
getFan(
void)
const;
371 void setMode(
const uint8_t mode);
378 void setRaw(
const uint8_t* data);
403 explicit IRMitsubishi112(
const uint16_t pin,
const bool inverted =
false,
404 const bool use_modulation =
true);
406 #if SEND_MITSUBISHI112
413 #endif // SEND_MITSUBISHI112
419 void setTemp(
const uint8_t degrees);
421 void setFan(
const uint8_t speed);
422 uint8_t
getFan(
void)
const;
423 void setMode(
const uint8_t mode);
432 void setRaw(
const uint8_t* data);
456 #endif // IR_MITSUBISHI_H_
const uint8_t kMitsubishi112SwingVMiddle
Definition: ir_Mitsubishi.h:236
uint8_t VaneLeft
Definition: ir_Mitsubishi.h:106
uint8_t SwingV
Definition: ir_Mitsubishi.h:208
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1467
const uint8_t kMitsubishi112SwingVLowest
Definition: ir_Mitsubishi.h:234
const uint8_t kMitsubishi112SwingVAuto
Definition: ir_Mitsubishi.h:239
uint8_t pad1[3]
Definition: ir_Mitsubishi.h:211
const uint8_t kMitsubishi112FanQuiet
Definition: ir_Mitsubishi.h:233
uint8_t Timer
Definition: ir_Mitsubishi.h:89
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:1370
const uint8_t kMitsubishi112SwingHLeft
Definition: ir_Mitsubishi.h:242
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1545
uint8_t getVane(void) const
Get the Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:567
uint8_t StartClock
Definition: ir_Mitsubishi.h:87
const uint8_t kMitsubishi112FanMed
Definition: ir_Mitsubishi.h:231
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:1314
uint8_t Fan
Definition: ir_Mitsubishi.h:207
const uint8_t kMitsubishiAcHeat
Definition: ir_Mitsubishi.h:117
const float kMitsubishiAcMinTemp
Definition: ir_Mitsubishi.h:124
const uint8_t kMitsubishiAcAuto
Definition: ir_Mitsubishi.h:114
Mitsubishi136Protocol _
Definition: ir_Mitsubishi.h:396
bool getNaturalFlow(void) const
Get the Natural Flow mode of the A/C.
Definition: ir_Mitsubishi.cpp:550
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1223
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:1383
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:1040
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1455
const uint8_t kMitsubishi112SwingHRight
Definition: ir_Mitsubishi.h:244
const uint8_t kMitsubishiAcFanSilent
Definition: ir_Mitsubishi.h:122
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:412
uint8_t SwingH
Definition: ir_Mitsubishi.h:214
const uint8_t kMitsubishiAcVaneAuto
Definition: ir_Mitsubishi.h:126
const uint8_t kMitsubishi112SwingHRightMax
Definition: ir_Mitsubishi.h:245
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:956
uint8_t getClock(void) const
Get the clock time of the A/C unit.
Definition: ir_Mitsubishi.cpp:596
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:989
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1662
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:1319
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:74
void setAbsenseDetect(const bool state)
Set the requested Absense Detect mode.
Definition: ir_Mitsubishi.cpp:516
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:1434
const uint8_t kMitsubishiAcVaneHighest
Definition: ir_Mitsubishi.h:127
const uint8_t kMitsubishiAcWideVaneRightMax
Definition: ir_Mitsubishi.h:138
const uint8_t kMitsubishiAcWideVaneRight
Definition: ir_Mitsubishi.h:137
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:320
void setVane(const uint8_t position)
Set the requested vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:558
const uint8_t kMitsubishi136FanMed
Definition: ir_Mitsubishi.h:186
uint8_t raw[kMitsubishi136StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:151
const uint8_t kMitsubishi136PowerByte
Definition: ir_Mitsubishi.h:171
uint8_t getSwingH(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1528
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:61
uint8_t getDirectIndirect(void) const
Get the Direct/Indirect mode of the A/C.
Definition: ir_Mitsubishi.cpp:538
void setStopClock(const uint8_t clock)
Set the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:625
const uint8_t kMitsubishi136MaxTemp
Definition: ir_Mitsubishi.h:173
float getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:409
uint8_t Temp
Definition: ir_Mitsubishi.h:204
const uint8_t kMitsubishiAcDirect
Definition: ir_Mitsubishi.h:143
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1119
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:349
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1046
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:386
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:1322
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1402
void setTemp(const float degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:393
void setStartClock(const uint8_t clock)
Set the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:613
const uint8_t kMitsubishi112FanLow
Definition: ir_Mitsubishi.h:230
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1621
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Mitsubishi.cpp:354
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1052
const uint8_t kMitsubishi112Heat
Definition: ir_Mitsubishi.h:222
const uint8_t kMitsubishi112SwingHLeftMax
Definition: ir_Mitsubishi.h:241
static bool validChecksum(const uint8_t *data)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:361
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:358
const uint8_t kMitsubishi112Cool
Definition: ir_Mitsubishi.h:221
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1104
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1420
uint8_t StopClock
Definition: ir_Mitsubishi.h:85
const uint8_t kMitsubishiAcNoTimer
Definition: ir_Mitsubishi.h:144
uint8_t getVaneLeft(void) const
Get the Left Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:579
void send(const uint16_t repeat=kMitsubishi112MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:1388
void setISave10C(const bool state)
Set the iSave10C (i-SAVE) mode of the A/C.
Definition: ir_Mitsubishi.cpp:478
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1502
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:380
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1609
static uint8_t calculateChecksum(const uint8_t *data)
Calculate the checksum for a given state.
Definition: ir_Mitsubishi.cpp:368
Class for sending all basic IR protocols.
Definition: IRsend.h:237
uint8_t Temp
Definition: ir_Mitsubishi.h:71
const uint8_t kMitsubishiAcVaneLowest
Definition: ir_Mitsubishi.h:131
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
const uint8_t kMitsubishi136Cool
Definition: ir_Mitsubishi.h:175
const uint8_t kMitsubishi136Dry
Definition: ir_Mitsubishi.h:178
IRMitsubishi112(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:1365
void setClock(const uint8_t clock)
Set the clock time on the A/C unit.
Definition: ir_Mitsubishi.cpp:601
bool getWeeklyTimerEnabled(void) const
Get the value of the WeeklyTimer Enabled setting.
Definition: ir_Mitsubishi.cpp:815
uint8_t Sum
Definition: ir_Mitsubishi.h:217
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:437
std::string String
Definition: IRremoteESP8266.h:1521
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:267
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:783
uint8_t Vane
Definition: ir_Mitsubishi.h:79
const uint8_t kMitsubishiAcVaneHigh
Definition: ir_Mitsubishi.h:128
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1690
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:680
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:731
void setNaturalFlow(const bool state)
Set the requested Natural Flow mode.
Definition: ir_Mitsubishi.cpp:544
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:401
void setDirectIndirect(const uint8_t position)
Set the requested Direct/Indirect mode. Only works if I-See mode is ON.
Definition: ir_Mitsubishi.cpp:528
uint8_t Temp
Definition: ir_Mitsubishi.h:162
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:415
const uint8_t kMitsubishi112SwingVLow
Definition: ir_Mitsubishi.h:235
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:702
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1426
const uint8_t kMitsubishi112SwingHAuto
Definition: ir_Mitsubishi.h:247
const uint8_t kMitsubishi112MinTemp
Definition: ir_Mitsubishi.h:226
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:347
uint8_t Clock
Definition: ir_Mitsubishi.h:83
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1414
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:1378
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:100
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:650
const uint8_t kMitsubishiAcStopTimer
Definition: ir_Mitsubishi.h:146
const uint8_t kMitsubishiAcFanMax
Definition: ir_Mitsubishi.h:120
uint8_t Mode
Definition: ir_Mitsubishi.h:160
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:429
uint8_t AbsenseDetect
Definition: ir_Mitsubishi.h:98
const uint8_t kMitsubishi112SwingVHighest
Definition: ir_Mitsubishi.h:238
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:769
const uint8_t kMitsubishi136FanLow
Definition: ir_Mitsubishi.h:185
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:1316
const uint8_t kMitsubishi136MinTemp
Definition: ir_Mitsubishi.h:172
uint8_t Power
Definition: ir_Mitsubishi.h:63
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1185
IRMitsubishi136(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:951
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:195
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:335
const uint8_t kMitsubishi136Auto
Definition: ir_Mitsubishi.h:177
Mitsubishi144Protocol _
Definition: ir_Mitsubishi.h:341
const uint8_t kMitsubishi136FanMax
Definition: ir_Mitsubishi.h:187
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:342
const uint8_t kMitsubishiAcFanAuto
Definition: ir_Mitsubishi.h:119
void setWeeklyTimerEnabled(const bool on)
Change the Weekly Timer Enabled setting.
Definition: ir_Mitsubishi.cpp:809
uint8_t getStopClock(void) const
Get the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:620
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:373
uint8_t Fan
Definition: ir_Mitsubishi.h:165
const uint8_t kMitsubishiAcFanQuiet
Definition: ir_Mitsubishi.h:123
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1565
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1552
uint8_t raw[kMitsubishiACStateLength]
The state in code form.
Definition: ir_Mitsubishi.h:57
uint8_t Ecocool
Definition: ir_Mitsubishi.h:94
const uint8_t kMitsubishiAcWideVaneAuto
Definition: ir_Mitsubishi.h:140
void send(const uint16_t repeat=kMitsubishi136MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:994
const uint8_t kMitsubishi136Fan
Definition: ir_Mitsubishi.h:174
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1440
uint8_t Power
Definition: ir_Mitsubishi.h:157
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:279
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1410
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:443
uint8_t FanAuto
Definition: ir_Mitsubishi.h:81
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1395
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1593
void setSwingH(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1508
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1159
uint8_t Fan
Definition: ir_Mitsubishi.h:78
uint8_t DirectIndirect
Definition: ir_Mitsubishi.h:97
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:330
uint8_t raw[kMitsubishi112StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:192
IRMitsubishiAC(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:315
const uint8_t kMitsubishi136FanMin
Definition: ir_Mitsubishi.h:184
const uint8_t kMitsubishi136SwingVAuto
Definition: ir_Mitsubishi.h:183
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:446
const uint8_t kMitsubishi136Heat
Definition: ir_Mitsubishi.h:176
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1032
uint8_t Power
Definition: ir_Mitsubishi.h:198
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:718
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1058
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:966
uint8_t getStartClock(void) const
Get the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:608
const uint8_t kMitsubishi112FanMin
Definition: ir_Mitsubishi.h:229
const uint8_t kMitsubishiAcFanRealMax
Definition: ir_Mitsubishi.h:121
const uint8_t kMitsubishiAcStartStopTimer
Definition: ir_Mitsubishi.h:147
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:663
const uint8_t kMitsubishiAcVaneSwing
Definition: ir_Mitsubishi.h:132
const uint8_t kMitsubishi112SwingVHigh
Definition: ir_Mitsubishi.h:237
const uint8_t kMitsubishi112SwingHMiddle
Definition: ir_Mitsubishi.h:243
void setEcocool(const bool state)
Set the requested Ecocool mode.
Definition: ir_Mitsubishi.cpp:504
const uint8_t kMitsubishiAcDirectOff
Definition: ir_Mitsubishi.h:141
const uint8_t kMitsubishi136SwingVLow
Definition: ir_Mitsubishi.h:180
uint8_t HalfDegree
Definition: ir_Mitsubishi.h:72
Mitsubishi112Protocol _
Definition: ir_Mitsubishi.h:452
bool getAbsenseDetect(void) const
Get the Absense Detect mode of the A/C.
Definition: ir_Mitsubishi.cpp:522
uint8_t getTimer(void) const
Get the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:634
uint8_t Sum
Definition: ir_Mitsubishi.h:109
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1132
const uint8_t kMitsubishiAcVaneLow
Definition: ir_Mitsubishi.h:130
const uint8_t kMitsubishiAcVaneAutoMove
Definition: ir_Mitsubishi.h:133
uint8_t NaturalFlow
Definition: ir_Mitsubishi.h:104
bool getEcocool(void) const
Get the Ecocool mode of the A/C.
Definition: ir_Mitsubishi.cpp:510
void send(const uint16_t repeat=kMitsubishiACMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:335
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1001
void setWideVane(const uint8_t position)
Set the requested wide-vane (Horizontal Swing) operation mode of the a/c.
Definition: ir_Mitsubishi.cpp:583
uint8_t WeeklyTimer
Definition: ir_Mitsubishi.h:90
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1112
const uint8_t kMitsubishi112Auto
Definition: ir_Mitsubishi.h:223
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1461
const uint8_t kMitsubishiAcIndirect
Definition: ir_Mitsubishi.h:142
const uint8_t kMitsubishi136SwingVLowest
Definition: ir_Mitsubishi.h:179
bool getISee(void) const
Get the iSee mode of the A/C.
Definition: ir_Mitsubishi.cpp:498
const uint8_t kMitsubishiAcStartTimer
Definition: ir_Mitsubishi.h:145
void setISee(const bool state)
Set the requested iSee mode.
Definition: ir_Mitsubishi.cpp:492
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1008
const uint8_t kMitsubishiAcWideVaneMiddle
Definition: ir_Mitsubishi.h:136
const uint8_t kMitsubishiAcVaneMiddle
Definition: ir_Mitsubishi.h:129
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1145
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1634
const uint8_t kMitsubishi112FanMax
Definition: ir_Mitsubishi.h:232
void setVaneLeft(const uint8_t position)
Set the requested Left Vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:573
uint8_t ISee
Definition: ir_Mitsubishi.h:68
uint8_t iSave10C
Definition: ir_Mitsubishi.h:100
const float kMitsubishiAcMaxTemp
Definition: ir_Mitsubishi.h:125
uint8_t getWideVane(void) const
Get the Wide Vane (Horizontal Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:589
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:60
void on(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1407
uint8_t VaneBit
Definition: ir_Mitsubishi.h:80
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:390
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1081
const uint8_t kMitsubishi136FanQuiet
Definition: ir_Mitsubishi.h:188
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1535
Native representation of a Mitsubishi 112-bit A/C message.
Definition: ir_Mitsubishi.h:191
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1484
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1197
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1172
const uint8_t kMitsubishiAcFan
Definition: ir_Mitsubishi.h:118
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1648
uint8_t Mode
Definition: ir_Mitsubishi.h:201
bool getISave10C(void) const
Get the iSave10C (i-SAVE) mode of the A/C.
Definition: ir_Mitsubishi.cpp:486
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1098
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1016
Native representation of a Mitsubishi 144-bit A/C message.
Definition: ir_Mitsubishi.h:56
uint8_t Mode
Definition: ir_Mitsubishi.h:67
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:1317
const uint8_t kMitsubishi136SwingVHigh
Definition: ir_Mitsubishi.h:181
const uint8_t kMitsubishiAcCool
Definition: ir_Mitsubishi.h:115
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:747
const uint8_t kMitsubishiAcWideVaneWide
Definition: ir_Mitsubishi.h:139
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:819
const uint8_t kMitsubishi112SwingHWide
Definition: ir_Mitsubishi.h:246
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:1013
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1579
const uint8_t kMitsubishi112Dry
Definition: ir_Mitsubishi.h:224
Native representation of a Mitsubishi 136-bit A/C message.
Definition: ir_Mitsubishi.h:150
const uint8_t kMitsubishiAcWideVaneLeft
Definition: ir_Mitsubishi.h:135
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1026
const uint8_t kMitsubishi136SwingVHighest
Definition: ir_Mitsubishi.h:182
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1020
const uint8_t kMitsubishiAcWideVaneLeftMax
Definition: ir_Mitsubishi.h:134
void setTimer(const uint8_t timer)
Set the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:643
Structure to hold a common A/C state.
Definition: IRsend.h:114
uint8_t pad[5]
Definition: ir_Mitsubishi.h:154
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:376
uint8_t SwingV
Definition: ir_Mitsubishi.h:167
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:1320
const uint8_t kMitsubishi112MaxTemp
Definition: ir_Mitsubishi.h:227
static bool validChecksum(const uint8_t *data, const uint16_t len=kMitsubishi136StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:976
uint8_t WideVane
Definition: ir_Mitsubishi.h:76
const uint8_t kMitsubishiAcDry
Definition: ir_Mitsubishi.h:116
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1064
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:49