Hmmm, what is the actual model number of the unit?
It is normally CS-E7PKR or similar. CS normally just means indoor unit.

The most common Panasonic codes seem to be the JKE/NKE/PKR one. As in the codes for these three series are all the same. Failing that, just try the other two options. I can't see that you can do any damage. If it isn't the right code set it just won't do anything.

Hmmm, what is the actual model number of the unit?
It is normally CS-E7PKR or similar. CS normally just means indoor unit.

The most common Panasonic codes seem to be the JKE/NKE/PKR one. As in the codes for these three series are all the same. Failing that, just try the other two options. I can't see that you can do any damage. If it isn't the right code set it just won't do anything.

It's a RE12JKX. There is a separate file for decoding the CS protocol in the Raw-IR-decoder so I assumed, that CS is just another protocol. I'll try all of the codes as soon as I get the IR LED.

I have a working build here: https://github.com/ToniA/ESPEasy (branch HeatpumpIR). I also have the binaries (they run at least on Wemos D1 Mini) under 'releases'.

Thanks for these.

I tried both of these and I was (eventually) able to send the IR commands via MQTT. However there was very little information regarding MQTT showing up in the log. I had the Advanced > Log Settings > Web log Level (& Serial log Level) on "Debug dev" which is showing as above the web based logging screen as "Logging: Debug dev (9)". This I assume is the most verbose.

On boot up there is no confirmation in the log that a connection has been made with the MQTT server.
When I send an MQTT message to the ESP8266 with the commands for the air conditioner, the air conditioner receives it correctly. However the only relevant entry that shows in the ESPEasy log is: "P115: Heatpump IR code transmitted".

On a previous build of your firmware that I compiled I did see some entries in the log for MQTT at boot up along with connecting to the WiFi. Now all that shows in the log is:
105546: : Rebooting...
105547: sendcontent free: 13264 chunk size:11
105548: sendcontent free: 13264 chunk size:0
105756: sendcontent free: 14464 chunk size:400

Now it is more than possible that I have changed a setting or done something else wrong. Having the debugging information showing for MQTT would be very handy.

In theory it is possible, but at the moment ESPEasy only supports air conditioners in one plug in. There is another IR plug in, but I don't know anything about it.

There are other devices around like the Broadlink series, but I have found that they don't support all the functions on my air conditions. This is also the case with ESPEasy, but hopefully that problem can be resolved soon.

I think I have found an issue with some of the Panasonic models and their Powerful/Quiet function.

It would appear that this function is largely independent of the other functions. For example using the original Panasonic remote control, I covered the LED and changed the horizontal direction. I then uncovered the LED and hit the Powerful button, which changed the Powerful/Quiet mode, but not the horizontal direction. This to me suggests that the Powerful/Quiet needs to be sent as separate command.

I haven't checked what happens with regard to Power (on/off) and the Powerful/Quiet button.

Your code seems to have solved my horizontal swing problems as I can now control that correctly.

However there is some issue going on with the powerful and quiet modes as the powerful LED stays on all the time at the moment. That is even the case when the Quiet LED is on. This is the case even if I use the original remote control.

Your code seems to have solved my horizontal swing problems as I can now control that correctly.

However there is some issue going on with the powerful and quiet modes as the powerful LED stays on all the time at the moment. That is even the case when the Quiet LED is on. This is the case even if I use the original remote control.

Ok, I stumbled on this forum while searching for ways to decode the remote to my LG mini split system(LSN180HSV4 & LSN120HSV4). I skimmed all the comments on this post but unsure where to go from here. I downloaded the code from https://github.com/ToniA/Raw-IR-decoder-for-Arduino and ran through all the options but it couldn't determine the protocol so I'm guessing my system hasn't been added to the list of compatible systems. Is it possible to add mine? If so, what would you need from me. Thanks!

LG mini split system(LSN180HSV4 & LSN120HSV4). I skimmed all the comments on this post but unsure where to go from here. I downloaded the code from https://github.com/ToniA/Raw-IR-decoder-for-Arduino and ran through all the options but it couldn't determine the protocol so I'm guessing my system hasn't been added to the list of compatible systems. Is it possible to add mine? If so, what would you need from me. Thanks!

I would first trying using the codes for other LG air conditions to see if they or one of them works or mostly works. There is a good chance one will do most if not all of the controls.

LG mini split system(LSN180HSV4 & LSN120HSV4). I skimmed all the comments on this post but unsure where to go from here. I downloaded the code from https://github.com/ToniA/Raw-IR-decoder-for-Arduino and ran through all the options but it couldn't determine the protocol so I'm guessing my system hasn't been added to the list of compatible systems. Is it possible to add mine? If so, what would you need from me. Thanks!

I would first trying using the codes for other LG air conditions to see if they or one of them works or mostly works. There is a good chance one will do most if not all of the controls.

LG mini split system(LSN180HSV4 & LSN120HSV4). I skimmed all the comments on this post but unsure where to go from here. I downloaded the code from https://github.com/ToniA/Raw-IR-decoder-for-Arduino and ran through all the options but it couldn't determine the protocol so I'm guessing my system hasn't been added to the list of compatible systems. Is it possible to add mine? If so, what would you need from me. Thanks!

I would first trying using the codes for other LG air conditions to see if they or one of them works or mostly works. There is a good chance one will do most if not all of the controls.

In the End my main problem (besides others) was that i used the raw decoder with setting 1 - this gave me wrong measured timings and i tried long to correct these timings
In the End i used a logic analyzer and measured the times.

For all that want to control a TCL AC - choose in Raw decoder Option 3

The timing values i posted above (from rawsender) also work for TCL / ESPEasy

One question stays? How could i integrate additional functions like the Plasma Air Cleaner?
I know which byte changes, also could hardcode it, but how to make it changeable by command?

Best regards and thanks for your great work

Klaus

Hi Klaus!

I have the same TCL A/C (I think) and I've been struggling to get it to work with this library. I was also able to send commands with the rawsender, the same command you posted turned on my A/C. However, I am not being able to make it work with the library.

Can you post your code (.h and .cpp files)? I would be deeply grateful. Also, we could pull-request it so it would be added to the library.

At the risk of sounding like a complete newby (guilty) I am going to ask a dumb question as my first post. I have spent loads of time reading but cannot work it out... so please be gentle in your replies. If this is not the place then politely tell me and I will try to find the answer elsewhere.

My project... I have a wall mounted split system AC unit of Daikin brand. I have an ESP8266 NodeMCU running ESPEasy with two DS18b20 connected (and working), one reporting internal temperature and another reporting outside temperature. I want the ESP8266 NodeMCU to be an automated standalone system and utilise a differential formula to assess the temperature difference between internal and outside temps. Once a mathematical formula 'criteria' is met the ESP8266 NodeMCU sends an IR signal to the Daikin AC unit to turn ON, and when another mathematical formula 'criteria' is met the NodeMCU sends an IR signal to the AC unit to turn OFF. Nothing else is needed re the IR signals, just ON and OFF.

As I said I am a complete newby, so appreciate this may frustrate some of the forum gurus. Beyond having the 2 x DS18b20 operational and supplying outdoor and inside temperatures. I have no idea how to get the rest happening? I assume I have to load the heatpumpir codes, and somehow setup the programmatic logic to monitor the temps, do the maths and send the IR signals. But I have no idea how that is done?

Again, humble apology if my comments here are screwing things up.... I suspect this happens too often and it would be frustrating for the gurus on here. If my post is inappropriate and I need to go to another thread or info then politely tell me and I will not cause further disruption. Appreciate your time.

This should also work with the ESPEasy 'Rules' section (I have never tried it though), so you should be able to implement rules which execute 'heatpumpir' commands based on the measured temperature values. Reference: https://www.letscontrolit.com/wiki/inde ... rial_Rules

This should also work with the ESPEasy 'Rules' section (I have never tried it though), so you should be able to implement rules which execute 'heatpumpir' commands based on the measured temperature values. Reference: https://www.letscontrolit.com/wiki/inde ... rial_Rules

Hi Toni, awesome advice, thank you. I will flash the NodeMCU with the heatpumpir only version. Question... I assume there's Daikin entries in there? Is there a location to see which brands/models are available, or is that in a readme or something similar. Will flash tonight and see how I go after looking at the rules tutorials. Thanks again Toni.

Hi Toni, one last question. I noted in some of your doco to capture IR codes from an AC remote you recommend using an Arduino. I have an old arduino uno, so I assume that would work? Can you recommend a firmware to use on the uno that would contain your code for capturing the IR codes? I am going to have this as a Plan B in case some of the existing codes in heatpumpir are not compatible with my AC unit. Thanks, Mark

I flashed the NodeMCU V3 with the ESPEasy Mega release from here: https://github.com/ToniA/ESPEasy/releases and the flashing went to plan. The command heatpumpir,panasonic_ckp,1,1,0,22,0,0 appears to execute and I get the response Heatpump IR code transmitted but the Infrared LED doesn't appear to be lighting up when viewed with an infrared camera.

I have the following KY-005 infrared module...

Seems I might be having an issue understanding the wiring for the KY-005 to the NodeMCU V3. Is there a wiring diagram I could follow?

The led should be off when it's not transmitting. Also, connect the led between GND (led -) and D3 (led +).

Thanks Toni, confirmed, plain red LED working. You'll be happy to know my wife gave one of 'those' looks. Don't suppose you could point me somewhere that has a circuit diagram for connecting the KY-005 to the NodeMCU?