v2.6.0
Basic control of the AC unit (On/Off, temp, fan). Only Off command is working as expected
Show 62 on the two digit display (probably error code 62?), no controls seams to work, still the ac ventilation is working.
Play with the library functions
.......
const uint16_t kIrLed = D2; // ESP8266 GPIO pin to use. Recommended: 4 (D2).
IRMideaAC ac(kIrLed); // Set the GPIO to be used to sending the message
.............
ac.begin();
based on some conditions i can execute.
ac.on();
ac.off();
ac.setFan(1);
ac.setTemp(18);
then
ac.send();
Lolin D1 mini with Lolin IR controller.
Yes
No
I try to control the AC unit Midea from my home that is build from 3 internal units and one external compressor. On one of the internal units is state the model MSABAU-07HRFN1-QRD0GW (it was purchased in 2016). I believe the library is not generic for all Midea units and some IR code updates are required.
It may be the case that your model isn't supported.
Have you tried capturing/decoding any messages from the actual remote with the IRrecvDumpV2.ino example code at all? If so, what are they?
(e.g. Step 2, of the Advanced Troubleshooting steps/suggestions: https://github.com/markszabo/IRremoteESP8266/wiki/Troubleshooting-Guide#advanced)
Friendly reminder. Without some captures of the remote, we probably can't help you.
Thanks. I will provide such capture today.
Marius.
Please let me know if following capture is good.
Thanks again for your time.
Thanks for the data you supplied. It was helpful.
I'm amazed your supplied suggested test code actually compiled without issues, as during testing I found the on() & off() methods in the IRCoolixAC class were actually missing.
The data you supplied showed that the library is totally capable of creating those messages. My only guess is you called the IRCoolixAC class methods with the wrong values for certain modes.
e.g. The wrong fan 'auto' speed for the given mode.
I was able to simulate every message you supplied when I used the correct values/parameters.
Your data showed me the only possible corruption issue could be the different fan "auto" settings. i.e. kCoolixFanAuto and kCoolixFanAuto0. The former is for most modes, the later is for AUTO and DRY modes. I've created PR #725 that forces the correct speed for the corresponding modes, to eliminate that possibility in future.
You can either try out the new code in this branch: https://github.com/markszabo/IRremoteESP8266/tree/issue722 It should fix all of the issues I can possibly see based on that data as to why you _might_ be having issues. (please test it and let me know)
or use the current library as-is, and use setPower(true) to turn the unit on, and setPower(off) to turn it off, and use the correct values for the auto fan speeds (see your pastebin text for those values in certain modes). As I said, the library is producing valid messages compared to your results and if used sanely, it should produce valid codes for your A/C unit(s) based on the data you supplied.
TL;DR: If you put the correct values into the IRCoolixAC class, as far as I can tell, it should be working exactly as the captured data suggests. See: https://github.com/markszabo/IRremoteESP8266/blob/issue722/test/ir_Coolix_test.cpp#L649
It works!
Thanks for your time. Did not know i need to use coolix library for a Midea brand AC unit. I will credit you in diyhue organization as this library will be used by users to control the AC unit from Hue applications using an emulated light.
FYI, The changes mentioned above have been include in v2.6.1 of this library, which has just been released.