-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LG Hvac Support #1008
Comments
Currently the library (2.7.1) doesn't support deep LG a/c integration. However, if tasmota once supported it, there is probably code out their how the messages are constructed. I'll take a look to see if I can find it and integrate it. Can you please use the I'll try to add it shortly. |
@pablogventura Do you know what (older) version of Tasmota supported your LG a/c? I can see support for Toshiba & Mitsubishi using something other than IRremoteESP8266, but not anything else. |
It was added in 6.4.1 version. Here you have: https://github.com/arendst/Tasmota/blob/54c2eb283a02e4287640a4595e506bc6eadbd7f2/sonoff/xdrv_05_irremote.ino#L327 Thanks for your interest! |
Thanks. Looking at it now. |
P.S. I'm still going to need a few samples captured by |
Ok! I'll do it tomorrow! It's 1 am here. Thanks a lot! |
* Power, Mode, Temp, & Fan speed control. * Common a/c support. * Unit tests coverage. Fixes #1008
@pablogventura Can you please download and try out the I'll still need some capture/codes from you to verify it is working correct, oh, and the make/model numbers of the AC unit and the remote too please. |
@crankyoldgit it is not exactly what you wanted (not captured from IRrecvDumpV2) but here, This is an old GE unit, when I get back to work I can test and or send codes from modern LG units. |
I can confirm that it works for my GE AC!!
|
* Add Fan Only mode support. * More unit tests based on supplied codes from @jimmys01 * Adjust min temp. * Add supported remote. Ref: #1008 (comment)
@jimmys01 Thanks for the confirmation and test data. I've added "Fan" mode, and tests based on your data. I haven't worked out "sleep" mode yet, so if you can work out what is going on bit-wise I'll add it later. |
How about the off state situation? My Ac expects this code 88C0051 which is |
Good to know. Thanks for the feedback I'll look at updating it to ensure that gets sent always for any "off" state. |
Using IRrecvDumpV2 v2.7.1 all the codes has been detected as "Protocol : UNKNOWN". Codes: Code : 0xAFC3034C (30 Bits) Off, Cool, 18 deg C, Fan 5 Code : 0x1035C9DA (30 Bits) On, Cool, 19 deg C, Fan 5 Code : 0x4CFFC1A3 (30 Bits) On, Cool, 19 deg C, Fan Auto Code : 0x2CFB0AD6 (30 Bits) On, Auto, 23 deg C, Fan 5 Code : 0xF5DF959A (30 Bits) On, Dehumidifier, --, Fan 5 Code : 0x5C44A393 (30 Bits) On, Heat, 25 deg C, Fan 5 Code : 0x41F5C34D (30 Bits) On, Fan, --, Fan 5 Code : 0x8F05206C (30 Bits) On, Cool, 22 deg C, Fan 5, ENERGY SAVE MODE ON Code : 0x9195CE4A (30 Bits) On, Cool, 22 deg C, Fan 5, ENERGY SAVE MODE OFF Code : 0x49475271 (30 Bits) On, Cool, --, Fan 5, TURBO/JET MODE ON Code : 0x3A398D8A (30 Bits) |
@pablogventura thanks for the data. The raw data you provided successfully decodes as Can you also provide me with brand/model info for your A/C and remote please? |
I didn't disable any protocols. I used the example as it comes in the library. I was surprised that the library took it as "Unknown". Where would I look if it was deactivated? The model of the air conditioner is: LG S4-w12ja3aa. The remote control is AKB75215403. I haven't been able to test the signal sending to the air conditioner yet because the circuit I use for that is embedded in the wall, and I can't easily reprogram it. On Monday, I will be able to get the transistor and the led to test it. Thank you very much! |
* Add different model support to handle LG & LG2 protocols. * Unit test coverage for changes. * Update list of supported devices. * Add unit test to check raw LG2 messages work. Ref: #1008
Have a look at: https://github.com/crankyoldgit/IRremoteESP8266/blob/master/src/IRremoteESP8266.h#L110-L111 That's what controls the LG/LG2 decoding. You may need to check what copy of the library you are using for your compiles of To assist yourself, try changing I added a test based on the first raw data snippet you provided, and it successfully decodes here: @pablogventura & @jimmys01
@jimmys01 Per your feedback, it should always send Enjoy! Feedback welcome |
You're right. I was using the version provided by Tasmota. Using version 2.7.1 as it stands in this repository all code is detected as 28-bit LG2. |
I can confirm that it works! In fact, both GE6711AR2853M and AKB75215403 models work in my air conditioner. |
Excellent! Thanks for the confirmation #1009 |
* Initial detailed support for LG a/c. * Support LG2 in IRLgAc class. * Add different model support to handle LG & LG2 protocols. * Power, Mode, Temp, & Fan speed control. * Common a/c support. * Unit tests coverage. * Update supported devices list. * Add unit test to check raw LG2 messages work. * Ensure the Off command is always 0x88C0051 Fixes #1008
Great. Do you plan to launch 2.7.2 shortly? |
@s-hadinger Because you(Tasmota) asked for it, how can I not do it immediately. :) #1011 It will happen shortly! X-ref: arendst/Tasmota#4377 |
FYI, the aforementioned changes/code has been included in the v2.7.2 release of the library. |
Thanks a lot David. 2.7.2 is now part of Tasmota-IR. |
Version of the library used
v2.7.1
Expected behavior
I want to control LG AC using Hvac, as in Mitsubishi AC Example.
Actual behavior
I don't know if this library implement HVAC for LG AC. In the past, I used Sonoff Tasmota firmware, that used a adhoc implementation for LG HVAC. Now, Tasmota use only this library and I would know if I can keep using HVAC for LG AC.
Thanks you for your great work!
The text was updated successfully, but these errors were encountered: