ESPEasy to control air conditioners / heat pumps

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#101 Post by whatsupskip » 27 Sep 2018, 12:25

Great! I didn't see them under releases.

I will remove mine soon then. Far better to use yours.
Friends with kangaroos and some time koala rescuer.

bojan
Normal user
Posts: 11
Joined: 29 Aug 2018, 07:55
Location: Ljubljana, Slovenia

Re: ESPEasy to control air conditioners / heat pumps

#102 Post by bojan » 28 Sep 2018, 09:05

Hi ToniA,

i've just checked my Panasonic AC remote with your Raw-IR-decoder-for-Arduino and it shows Panasonic CS protocol. Is this protocol supported? I can't find it.

Regards
Bojan

BTW, thank you very much for your work

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#103 Post by whatsupskip » 28 Sep 2018, 11:07

bojan wrote: 28 Sep 2018, 09:05 i've just checked my Panasonic AC remote with your Raw-IR-decoder-for-Arduino and it shows Panasonic CS protocol. Is this protocol supported? I can't find it.
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.
Friends with kangaroos and some time koala rescuer.

UC530
New user
Posts: 2
Joined: 26 Sep 2018, 20:39

Re: ESPEasy to control air conditioners / heat pumps

#104 Post by UC530 » 29 Sep 2018, 10:25

Thanks for help. I did not find the bin file, but I finally compiled a working sw and It works.
I'll download yours too, because it's newer release.

Nice day to all. MatejS

bojan
Normal user
Posts: 11
Joined: 29 Aug 2018, 07:55
Location: Ljubljana, Slovenia

Re: ESPEasy to control air conditioners / heat pumps

#105 Post by bojan » 29 Sep 2018, 13:52

whatsupskip wrote: 28 Sep 2018, 11:07
bojan wrote: 28 Sep 2018, 09:05 i've just checked my Panasonic AC remote with your Raw-IR-decoder-for-Arduino and it shows Panasonic CS protocol. Is this protocol supported? I can't find it.
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.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#106 Post by whatsupskip » 05 Oct 2018, 07:46

ToniA wrote: 27 Sep 2018, 08:45 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.
Friends with kangaroos and some time koala rescuer.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#107 Post by whatsupskip » 05 Oct 2018, 07:49

One small suggestion would be to add something so that a relevant entry appears in the System Info > GIT version:

Thanks again for all your hard work with this project.

I am in the process of writing a brief set of instructions for configuring your plugin up with MQTT. I think a few of use have struggled with this part.
Friends with kangaroos and some time koala rescuer.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#108 Post by whatsupskip » 12 Oct 2018, 01:06

I am having some trouble with the https://github.com/ToniA/Raw-IR-decoder-for-Arduino

I am trying to use it with an ESP8266. I appear to be having problems with the defining of the PIND. Clearly it doesn't know what to use for the ESP8266.

What changes should I make to the code for it to work?

I am using Wemos D1 mini with the output from the IR sensor connected to D5 (GPIO14).
Friends with kangaroos and some time koala rescuer.

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#109 Post by ToniA » 12 Oct 2018, 06:10

It doesn't work on ESP8266, I think it would require quite a bit of changes as it's somewhat hardware-dependent.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#110 Post by whatsupskip » 12 Oct 2018, 07:44

ok, thanks for the prompt reply.
Friends with kangaroos and some time koala rescuer.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#111 Post by whatsupskip » 12 Oct 2018, 21:30

It looks like Panasonic PKR codes are only a subset of the JKE/NKE codes.

The following codes work: Power, Mode, Fan, Temperature and Vertical Vane.
The following codes do nothing: Horizontal Vane and Powerful/Quiet.

You would think they would use the same full set, but I am sure there must have been a very good reason.

I have ordered an ATMega 2560 board so I can try to decode the two that are currently missing.
Friends with kangaroos and some time koala rescuer.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#112 Post by whatsupskip » 12 Oct 2018, 22:15

What systems/software are people using to control their heat pumps via this plugin? (ie Node Red)

How are you using it? (Manually by changing settings via WiFi/LTE, Automated based on criteria such as available solar power, etc)
Friends with kangaroos and some time koala rescuer.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#113 Post by whatsupskip » 28 Oct 2018, 02:10

I think I found a bug with the Panasonic CS protocol (or it could be a user problem :) ) with the Horizontal Swing.

When I send from the original remote control to the decoder it shows a valid reception "Horizontal swing: Center"

Code: Select all

Number of symbols: 223
Symbols:
Hh0100000000000100000001110010000000000000000000000000000001100000WHh01000000000001000000011100100000000000001001110001000100000000011100010101100000000000000111000000000111000000000000000010000001000000000000000010011111W
Bytes:
00:  0100|0000 | 02 | 00000010 
01:  0000|0100 | 20 | 00100000 
02:  0000|0111 | E0 | 11100000 
03:  0010|0000 | 04 | 00000100 
04:  0000|0000 | 00 | 00000000 
05:  0000|0000 | 00 | 00000000 
06:  0000|0000 | 00 | 00000000 
07:  0110|0000 | 06 | 00000110 
08:  0100|0000 | 02 | 00000010 
09:  0000|0100 | 20 | 00100000 
10:  0000|0111 | E0 | 11100000 
11:  0010|0000 | 04 | 00000100 
12:  0000|0000 | 00 | 00000000 
13:  1001|1100 | 39 | 00111001 
14:  0100|0100 | 22 | 00100010 
15:  0000|0001 | 80 | 10000000 
16:  1100|0101 | A3 | 10100011 
17:  0110|0000 | 06 | 00000110 
18:  0000|0000 | 00 | 00000000 
19:  0111|0000 | 0E | 00001110 
20:  0000|0111 | E0 | 11100000 
21:  0000|0000 | 00 | 00000000 
22:  0000|0000 | 00 | 00000000 
23:  1000|0001 | 81 | 10000001 
24:  0000|0000 | 00 | 00000000 
25:  0000|0000 | 00 | 00000000 
26:  1001|1111 | F9 | 11111001 
02,20,E0,04,00,00,00,06,02,20,E0,04,00,39,22,80,A3,06,00,0E,E0,00,00,81,00,00,F9
Timings (in us): 
PAUSE SPACE:  34784
HEADER MARK:  3500
HEADER SPACE: 1680
BIT MARK:     393
ZERO SPACE:   359
ONE SPACE:    1257
Decoding known protocols...
Look like a Panasonic CS protocol
Powering ON!
Mode: Cool
Temperature: 17
Fan speed: FAN AUTO
Vertical swing: Down 2
Horizontal swing: Center
Timer A active: No
Timer B active: No
Add bytes: 39+22+80+A3+06+00+0E+E0+00+00+81+00+00+.
Checksum Truncate: F9
----- Checksum OK ------
When I send from the ESPEasy it produces "Horizontal swing: Error"

Code: Select all

Number of symbols: 222
Symbols:
Hh0100000000000100000001110010000000000000000000000000000001100000WHh01000000000001000000011100100000000000001001110001110100000000011000010100000000000000000111000000000111000000000000000010000001000000000000000010111111
Bytes:
00:  0100|0000 | 02 | 00000010 
01:  0000|0100 | 20 | 00100000 
02:  0000|0111 | E0 | 11100000 
03:  0010|0000 | 04 | 00000100 
04:  0000|0000 | 00 | 00000000 
05:  0000|0000 | 00 | 00000000 
06:  0000|0000 | 00 | 00000000 
07:  0110|0000 | 06 | 00000110 
08:  0100|0000 | 02 | 00000010 
09:  0000|0100 | 20 | 00100000 
10:  0000|0111 | E0 | 11100000 
11:  0010|0000 | 04 | 00000100 
12:  0000|0000 | 00 | 00000000 
13:  1001|1100 | 39 | 00111001 
14:  0111|0100 | 2E | 00101110 
15:  0000|0001 | 80 | 10000000 
16:  1000|0101 | A1 | 10100001 
17:  0000|0000 | 00 | 00000000 
18:  0000|0000 | 00 | 00000000 
19:  0111|0000 | 0E | 00001110 
20:  0000|0111 | E0 | 11100000 
21:  0000|0000 | 00 | 00000000 
22:  0000|0000 | 00 | 00000000 
23:  1000|0001 | 81 | 10000001 
24:  0000|0000 | 00 | 00000000 
25:  0000|0000 | 00 | 00000000 
26:  1011|1111 | FD | 11111101 
02,20,E0,04,00,00,00,06,02,20,E0,04,00,39,2E,80,A1,00,00,0E,E0,00,00,81,00,00,FD
Timings (in us): 
PAUSE SPACE:  10220
HEADER MARK:  3520
HEADER SPACE: 1810
BIT MARK:     319
ZERO SPACE:   465
ONE SPACE:    1369
Decoding known protocols...
Look like a Panasonic CS protocol
Powering ON!
Mode: Cool
Temperature: 23
Fan speed: FAN AUTO
Vertical swing: Straight
Horizontal swing: Error
Timer A active: No
Timer B active: No
Add bytes: 39+2E+80+A1+00+00+0E+E0+00+00+81+00+00+.
Checksum Truncate: FD
I tried many different combinations like http://192.168.1.66/control?cmd=heatpum ... 5,1,24,1,2 and none seem to be able to control the Horizontal Swing.
Friends with kangaroos and some time koala rescuer.

NW27
New user
Posts: 2
Joined: 05 Sep 2016, 14:33

Re: ESPEasy to control air conditioners / heat pumps

#114 Post by NW27 » 09 Nov 2018, 05:04

Hi All,

How can I send IR commands to my Foxtel (Digital TV box), Sony TV and utilize the HeatPumpIR for my aircon?

I want to set up one ESP8266 for sending ALL IR commands out to the TV, iarcon etc.

Thanks ,
Neil.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#115 Post by whatsupskip » 09 Nov 2018, 06:50

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.
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#116 Post by Dbgnu76 » 16 Nov 2018, 08:01

Hey, :)

I need some help with panasonic LKE ,,

i cannot get quiet and powerful mode to work ?

what is the correct address to send ? everything else is working !

And is there any ARGO heatpump protocol out there ?

/D

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#117 Post by whatsupskip » 16 Nov 2018, 23:50

Dbgnu76 wrote: 16 Nov 2018, 08:01 I need some help with panasonic LKE ,,

i cannot get quiet and powerful mode to work ?
I too am having problems with the Quiet/Powerful with one of the Panasonic codes. I have to look further into the codes to see if I can determine what the problem is.

Were you able to control the horizontal direction?
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#118 Post by Dbgnu76 » 17 Nov 2018, 11:12

"whatsupskip"


I own a LKE , and i cannot control The horizontal, but i can control the vertical and no Quiet and powerful

BUT if i change to DKE then i can control Horizontal also. but no quiet and powerful.

Something wrong in the code or maybe i got difference in remote protocol ?

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#119 Post by Dbgnu76 » 20 Nov 2018, 01:21

I have now decoded my LKE remote (A75C3636)

And i get this:

Number of symbols: 222
Symbols:
Hh0100000000000100000001110010000000000000000000000000000001100000WHh01000000000001000000011100100000000000001001001001000100000000011000010110010000000000000111000000000111100000000000000010000001000000000000000011010000
Bytes:
00: 0100|0000 | 02 | 00000010
01: 0000|0100 | 20 | 00100000
02: 0000|0111 | E0 | 11100000
03: 0010|0000 | 04 | 00000100
04: 0000|0000 | 00 | 00000000
05: 0000|0000 | 00 | 00000000
06: 0000|0000 | 00 | 00000000
07: 0110|0000 | 06 | 00000110
08: 0100|0000 | 02 | 00000010
09: 0000|0100 | 20 | 00100000
10: 0000|0111 | E0 | 11100000
11: 0010|0000 | 04 | 00000100
12: 0000|0000 | 00 | 00000000
13: 1001|0010 | 49 | 01001001
14: 0100|0100 | 22 | 00100010
15: 0000|0001 | 80 | 10000000
16: 1000|0101 | A1 | 10100001
17: 1001|0000 | 09 | 00001001
18: 0000|0000 | 00 | 00000000
19: 0111|0000 | 0E | 00001110
20: 0000|0111 | E0 | 11100000
21: 1000|0000 | 01 | 00000001
22: 0000|0000 | 00 | 00000000
23: 1000|0001 | 81 | 10000001
24: 0000|0000 | 00 | 00000000
25: 0000|0000 | 00 | 00000000
26: 1101|0000 | 0B | 00001011
02,20,E0,04,00,00,00,06,02,20,E0,04,00,49,22,80,A1,09,00,0E,E0,01,00,81,00,00,0B
Timings (in us):
PAUSE SPACE: 10600
HEADER MARK: 3560
HEADER SPACE: 1740
BIT MARK: 380
ZERO SPACE: 378
ONE SPACE: 1308
Decoding known protocols...
Look like a Panasonic CS protocol
Powering ON!
Mode: Heat
Temperature: 17
Fan speed: FAN AUTO
Vertical swing: Straight
Horizontal swing: Left
Timer A active: No
Timer B active: No
Add bytes: 49+22+80+A1+09+00+0E+E0+01+00+81+00+00+.
Checksum Truncate: B
----- Checksum OK ------

And in the string there are "WHh" ??

There is nothing about Quiet and Powerful ?

Somebody got an idea :)

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#120 Post by whatsupskip » 28 Nov 2018, 07:49

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.
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#121 Post by Dbgnu76 » 28 Nov 2018, 20:02

Yes, i notice this also :)

But how do we send it as separate command ?

i also found this

https://github.com/ToniA/arduino-heatpumpir/issues/66

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#122 Post by whatsupskip » 28 Nov 2018, 23:07

Dbgnu76 wrote: 28 Nov 2018, 20:02 i also found this

https://github.com/ToniA/arduino-heatpumpir/issues/66
Thanks for picking this up. I had missed this.
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#123 Post by Dbgnu76 » 30 Nov 2018, 18:55

whatsupskip wrote: 28 Nov 2018, 23:07
Dbgnu76 wrote: 28 Nov 2018, 20:02 i also found this

https://github.com/ToniA/arduino-heatpumpir/issues/66
Thanks for picking this up. I had missed this.
I got it to work now in all modes :) Had to modify the EspEasy P115_HeatpumpIR plugin :)

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#124 Post by whatsupskip » 01 Dec 2018, 05:07

Dbgnu76 wrote: 30 Nov 2018, 18:55 I got it to work now in all modes :) Had to modify the EspEasy P115_HeatpumpIR plugin :)
I am really glad to hear. It might solve my problems as well.

What changes did you make?

Did you post it to the Github bug submission?
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#125 Post by Dbgnu76 » 01 Dec 2018, 11:39

whatsupskip wrote: 01 Dec 2018, 05:07
Dbgnu76 wrote: 30 Nov 2018, 18:55 I got it to work now in all modes :) Had to modify the EspEasy P115_HeatpumpIR plugin :)
I am really glad to hear. It might solve my problems as well.

What changes did you make?

Did you post it to the Github bug submission?
Sorry no, i am no coder ,,more copy and paste modify coder ;) LOL
2"
here is a direct link to the source ,,worked with ATOM , There is also a ready to go firmware called "firmware.bin"

https://mega.nz/#!LS5lQQRY!NVnutgMz1g0d ... R-4OHN-0wo

Examples:
http://xxx.xxx.xxx.xxx/control?cmd=heat ... 24,3,3,0,1 "powerful"
http://xxx.xxx.xxx.xxx/control?cmd=heat ... 24,3,3,1,0 "quiet"
http://xxx.xxx.xxx.xxx/control?cmd=heat ... 24,3,3,0,0 "Powerful and quiet = Turned Off"

Still got some problems with verticalswing when turning off powerful and quiet,
http://192.168.1.209/control?cmd=heatpu ... e,1,1,1,24,3,3,0,0

If i put 4 For max vertical swing it stays at number 3 ,,,but if i change it to 7 it goes to max.

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#126 Post by whatsupskip » 10 Dec 2018, 00:11

Thanks Dbgnu76 for this.

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.

I will investigate this further to see what is going on.
Friends with kangaroos and some time koala rescuer.

Dbgnu76
New user
Posts: 7
Joined: 16 Nov 2018, 07:57

Re: ESPEasy to control air conditioners / heat pumps

#127 Post by Dbgnu76 » 10 Dec 2018, 23:59

whatsupskip wrote: 10 Dec 2018, 00:11 Thanks Dbgnu76 for this.

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.

I will investigate this further to see what is going on.
Ok, that was strange ?
Even after you have sended the command - http://xxx.xxx.xxx.xxx/control?cmd=heat ... 24,3,3,0,0

i was also stuck one time ,, but then when i looked closer i notice that i was in Maintenance mode :lol: :lol:

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#128 Post by whatsupskip » 11 Dec 2018, 00:33

Dbgnu76 wrote: 10 Dec 2018, 23:59 Ok, that was strange ?
Even after you have sended the command - http://xxx.xxx.xxx.xxx/control?cmd=heat ... 24,3,3,0,0
Yes, but mine are a different model, so it isn't that surprising.
Friends with kangaroos and some time koala rescuer.

frzbgolfer
New user
Posts: 3
Joined: 12 Dec 2018, 05:05

Re: ESPEasy to control air conditioners / heat pumps

#129 Post by frzbgolfer » 12 Dec 2018, 05:16

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!

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: ESPEasy to control air conditioners / heat pumps

#130 Post by whatsupskip » 12 Dec 2018, 07:18

frzbgolfer wrote: 12 Dec 2018, 05:16 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.
Friends with kangaroos and some time koala rescuer.

frzbgolfer
New user
Posts: 3
Joined: 12 Dec 2018, 05:05

Re: ESPEasy to control air conditioners / heat pumps

#131 Post by frzbgolfer » 12 Dec 2018, 15:03

whatsupskip wrote: 12 Dec 2018, 07:18
frzbgolfer wrote: 12 Dec 2018, 05:16 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.
Where are those codes located?

frzbgolfer
New user
Posts: 3
Joined: 12 Dec 2018, 05:05

Re: ESPEasy to control air conditioners / heat pumps

#132 Post by frzbgolfer » 03 Jan 2019, 14:59

frzbgolfer wrote: 12 Dec 2018, 15:03
whatsupskip wrote: 12 Dec 2018, 07:18
frzbgolfer wrote: 12 Dec 2018, 05:16 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.
Where are those codes located?
***crickets***

santibur06
New user
Posts: 1
Joined: 10 Jan 2019, 05:25

Re: ESPEasy to control air conditioners / heat pumps

#133 Post by santibur06 » 10 Jan 2019, 05:31

kr0815 wrote: 15 May 2018, 20:21 Hi Toni,

have it running now :-)

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.

Thank you!

Santiago

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#134 Post by gregoinc » 21 Jan 2019, 06:40

Greetings,

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.

Thanks, Mark

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#135 Post by ToniA » 21 Jan 2019, 12:26

You can use the ESPEasy Mega release from here: https://github.com/ToniA/ESPEasy/releases

This implements also a new command called 'heatpumpir', so if you go to 'Tools', you should be able to execute commands like this (see https://github.com/ToniA/ESPEasy/blob/H ... pumpIR.ino for more information):

Code: Select all

heatpumpir,panasonic_ckp,1,1,0,22,0,0
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

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#136 Post by gregoinc » 21 Jan 2019, 22:39

ToniA wrote: 21 Jan 2019, 12:26 You can use the ESPEasy Mega release from here: https://github.com/ToniA/ESPEasy/releases

This implements also a new command called 'heatpumpir', so if you go to 'Tools', you should be able to execute commands like this (see https://github.com/ToniA/ESPEasy/blob/H ... pumpIR.ino for more information):

Code: Select all

heatpumpir,panasonic_ckp,1,1,0,22,0,0
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.

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#137 Post by gregoinc » 21 Jan 2019, 23:39

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

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#138 Post by ToniA » 22 Jan 2019, 08:42

There are two supported Daikin models, called 'daikin' and 'daikin_arc417'. The names are defined in the source code files in here: https://github.com/ToniA/arduino-heatpumpir

This is the schema I have been using to decode the signals: https://github.com/ToniA/Raw-IR-decoder-for-Arduino

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#139 Post by gregoinc » 23 Jan 2019, 10:53

Hi Toni,

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...
Image

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?

Apology for the random questions. Thanks, Mark

RobertM
Normal user
Posts: 23
Joined: 22 Oct 2017, 15:23

Re: ESPEasy to control air conditioners / heat pumps

#140 Post by RobertM » 23 Jan 2019, 11:05

Must have transistor ! - too little output current !

KY-005:
Operating Voltage 5V
Forward Current 30 ~ 60 mA

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#141 Post by gregoinc » 23 Jan 2019, 11:26

RobertM wrote: 23 Jan 2019, 11:05 Must have transistor ! - too little output current !
Thanks Robert, you are absolutely correct. Appreciate your feedback.

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#142 Post by ToniA » 23 Jan 2019, 16:59

Also you can visually check if it's working by using any visible light led instead. The led should blink briefly when it's transmitting.

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#143 Post by gregoinc » 23 Jan 2019, 22:47

ToniA wrote: 23 Jan 2019, 16:59 Also you can visually check if it's working by using any visible light led instead. The led should blink briefly when it's transmitting.
Thanks Toni, fantastic tip. I am mindful these are seriously low level questions, so appreciate the patience of you and the other folks that have responded.

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#144 Post by gregoinc » 24 Jan 2019, 10:55

Tried using a plain red LED as suggested by Toni on my NodeMCU... and here's what happened.

First experiment
LED + pin connected to the 3V pin
LED - pin connected to D3 (GPIO0) pin

Under devices this was the config:-

Device: Heatpump IR transmitter
Name: infrared
Enabled: (ticked)
1st GPIO: GPIO-0 (D3)

Result: LED constantly in an ON state.

When sending this command via the Tools page: heatpumpir,panasonic_ckp,1,1,0,22,0,0

Result: Heatpump IR code transmitted

Second experiment
Followed the IRTX wiring circuit here: https://www.letscontrolit.com/wiki/index.php/IRTX (but used a plain red LED via a BC547 transistor - because that's what I had available and shouldn't make a difference).

Under devices this was the config:-

Device: Heatpump IR transmitter
Name: infrared
Enabled: (ticked)
1st GPIO: GPIO-0 (D3)

Result: No activity from the plain red LED

Have searched for solutions or examples of device setup config and wiring diagrams for a NodeMCU but all appear the same as what I am trying. This link on GitHub https://github.com/ToniA/ESPEasy/blob/m ... pumpIR.ino sends back a 404 error.

I currently have several DS18b20 working successfully, so unsure what is causing a simple LED and transistor not to work.

No doubt it is something simple I am missing :oops:

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#145 Post by ToniA » 24 Jan 2019, 11:06

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

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#146 Post by gregoinc » 24 Jan 2019, 11:18

ToniA wrote: 24 Jan 2019, 11:06 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?

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#147 Post by ToniA » 24 Jan 2019, 11:30

You don't actually need a KY-005, as the 38 kHz carrier frequency is already generated by the software. Just connect an infrared led (you should use some resistor also) between GND and the data pin.

If you want to use the KY-005, you need to recompile the image, and change the transmitter class to 'IRSenderBlaster' on this line: https://github.com/ToniA/ESPEasy/blob/H ... R.ino#L158

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: ESPEasy to control air conditioners / heat pumps

#148 Post by gregoinc » 24 Jan 2019, 11:51

Got it, and had already decided to ditch the KY-005 and go with a 5mm 940nm IR Emitter LED Diode.

Final question... regarding this string: heatpumpir,panasonic_ckp,1,1,0,22,0,0

I assume there's a syntax legend somewhere on your GitHub site so I can send just the ON and OFF commands? And I assume I replace panasonic_ckp with daikin or daikin_arc417 to send the Daikin codes.

Thanks again Toni.

ToniA
Normal user
Posts: 69
Joined: 26 Aug 2016, 20:37

Re: ESPEasy to control air conditioners / heat pumps

#149 Post by ToniA » 24 Jan 2019, 11:54

This explains the parameters: https://github.com/ToniA/ESPEasy/blob/H ... IR.ino#L31

The whole state is always sent at once, the 'real' remote control does the same.

hryst
New user
Posts: 3
Joined: 02 Feb 2017, 15:15

Re: ESPEasy to control air conditioners / heat pumps

#150 Post by hryst » 24 Sep 2019, 10:35

Hello,
which parameters do I need to change in define_plugin_sets.h to compile IR modules (16, 35, 88) in the stable v. 3.09.2019
best regards

edit:
remove // in " STABLE ##################################### " section for 16 and 35
and move P088 to stable
:)
Last edited by hryst on 24 Sep 2019, 11:35, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 22 guests