ESPEasy to control air conditioners / heat pumps

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Bluesmell
New user
Posts: 3
Joined: 02 Apr 2018, 16:55

Re: ESPEasy to control air conditioners / heat pumps

#81 Post by Bluesmell » 02 Apr 2018, 23:55

Got it work ( at least I can see blinking regular led, "Heatpump IR code transmitted" in LOG and no error message) will test with real pump tomorrow.
Had to use "fujitsu_awyz" instaed of "Fujitsu" like this: http://192.168.1.181/control?cmd=heatpu ... 2,0,30,0,0
Also compiled with ESPEasy 2.0 with no problems (just few warnings)

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

Re: ESPEasy to control air conditioners / heat pumps

#82 Post by whatsupskip » 03 Apr 2018, 02:09

Bluesmell wrote: 02 Apr 2018, 23:55 Also compiled with ESPEasy 2.0 with no problems (just few warnings)
As in the stable version, not the dev Mega?

Did you compile with Platform?

Thanks for reporting your efforts. This thread activity had died off. I have only managed to compile the dev Mega with Platform. I haven't had a chance to compile with this library.
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

#83 Post by ToniA » 03 Apr 2018, 06:58

I have a fully working, but quite old version of ESPEasy with HeatpumpIR here: https://github.com/ToniA/ESPEasy. Porting to the latest ESP Easy has been on my task list for ages... I'm still using this old build as it works well enough for my purposes.

Bluesmell
New user
Posts: 3
Joined: 02 Apr 2018, 16:55

Re: ESPEasy to control air conditioners / heat pumps

#84 Post by Bluesmell » 03 Apr 2018, 08:44

whatsupskip wrote: 03 Apr 2018, 02:09 As in the stable version, not the dev Mega?

Did you compile with Platform?
I think it's stable 2.0. Downloaded from here: https://github.com/letscontrolit/ESPEasy/tree/v2.0
then copied _P115_HeatpumpIR.ino that I got from here: https://github.com/letscontrolit/ESPEas ... Playground to src.
Compiled with Platform-IO.
Had to add HeatpumpIR under lib_deps in platformio.ini. (remove empty quotes that's in original file)
Working on D1 mini v2.1.0

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#85 Post by kr0815 » 12 May 2018, 18:26

Edit: forget this post, see below

Hi Toni,

i have a problem maybe you could help me with, i´m not good enough in coding.
I try to control a cheap TCL AC with your plugin

raw decoder says it looks like a Fuego, so

Code: Select all

curl 192.168.178.103/control?cmd=heatpumpir,fuego,0,3,0,22,0,0
Result: no reaction from AC

While investigating further / trying with power off, the original remote sends:

Code: Select all

Number of symbols: 115
Symbols:
Hh11000100110100110110010010000000000000000000010011000000100100000000000000000000000000000000000$
Bytes:
23,CB,26,01,00,20,03,09,00,00,00,00,00,41
Timings (in us):
PAUSE SPACE:  0
HEADER MARK:  3260
HEADER SPACE: 1700
BIT MARK:     436
ZERO SPACE:   278
ONE SPACE:    1100
Decoding known protocols...
Looks like a Fuego etc. protocol
Checksum matches
POWER OFF
MODE COOL
Temperature: 22
FAN: AUTO
Vertical air direction: AUTO
ESPeasy with your plugin sends:

Code: Select all

Number of symbols: 115
Symbols:
Hh11000100110100110110010010000000000000010000010011000000100100000000101000000000000000000000000$
Bytes:
23,CB,26,01,80,20,03,09,50,00,00,00,00,11
Timings (in us):
PAUSE SPACE:  0
HEADER MARK:  3840
HEADER SPACE: 1580
BIT MARK:     451
ZERO SPACE:   320
ONE SPACE:    1319
Decoding known protocols...
Looks like a Fuego etc. protocol
Checksum matches
POWER OFF
MODE COOL
Temperature: 22
FAN: AUTO
Vertical air direction: MIDDLE UP
I think the problem is the last line, maybe my AC doesn´t have this "Middle UP" feature

My understanding is that the last 2 values i send are vertical and horizontal air direction?
But whatever i change, like ,1,1 or ,2,2 , i still get this "Middle UP" ?

Is it maybe a bug in the code?

Best regards

Klaus

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#86 Post by kr0815 » 13 May 2018, 18:17

I made some more effort to get this AC working, but now i´m stuck again.

I could send recorded commands to the AC with rawsender.ino on ESP8266, making the following timing changes:

Code: Select all

#define IR_ONE_SPACE    1040
#define IR_ZERO_SPACE   240
#define IR_BIT_MARK     480
#define IR_PAUSE_SPACE  38200
#define IR_HEADER_MARK  2000
#define IR_HEADER_SPACE 1000
I found a small bug, when sending

Code: Select all

Hh1100010011010011011001001000000000000000001001001100000000110000000000000000000000000000000000000000000000010010
it doesn´t send the first "1", so i have to change this to Hh111000....

Question: i tried many values for IR_HEADER_SPACE, max output i got was 1020? orginal remote gives something about 1500?

Now i changed the timing Values in FuegoHeatpumpIR.h to the following:

Code: Select all

#define FUEGO_AIRCON1_HDR_MARK   2000
#define FUEGO_AIRCON1_HDR_SPACE  1000
#define FUEGO_AIRCON1_BIT_MARK   480
#define FUEGO_AIRCON1_ONE_SPACE  1040
#define FUEGO_AIRCON1_ZERO_SPACE 240
still no success, i investigated further:
In FuegoHeatPumpIR.cpp i have to change:

Code: Select all

uint8_t FuegoTemplate[] = { 0x23, 0xCB, 0x26, 0x01, 0x80, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00 };
to

Code: Select all

uint8_t FuegoTemplate[] = { 0x23, 0xCB, 0x26, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
ESPEasy still can´t send to my AC, but what is possible now:
I could send a command now with espeasy, log it with raw decoder, and send this logged command with raw sender, this works

I guess it´s a timing problem, but what could i do? i can´t reflash the ESP each time i try a new value?

This is what raw logger gets directly from the ESP:

Code: Select all

Number of symbols: 121
Symbols:
WWWWHh1100010011010011011001001000000000000000001001001100000000110000000000000000000000000000000000000000000000010010WW
Bytes:
23,CB,26,01,00,24,03,0C,00,00,00,00,00,48
Timings (in us):
PAUSE SPACE:  45121
HEADER MARK:  2180
HEADER SPACE: 860
BIT MARK:     515
ZERO SPACE:   79
ONE SPACE:    919
Decoding known protocols...
Looks like a Fuego etc. protocol
Checksum matches
POWER ON
MODE COOL
Temperature: 19
FAN: AUTO
Vertical air direction: AUTO
this is what i get when sending the received code with raw_sender:

Code: Select all

Number of symbols: 117
Symbols:
Hh1100010011010011011001001000000000000000001001001100000000110000000000000000000000000000000000000000000000010010HW
Bytes:
23,CB,26,01,00,24,03,0C,00,00,00,00,00,48
Timings (in us):
PAUSE SPACE:  28404
HEADER MARK:  8542
HEADER SPACE: 960
BIT MARK:     496
ZERO SPACE:   137
ONE SPACE:    960
Decoding known protocols...
Looks like a Fuego etc. protocol
Checksum matches
POWER ON
MODE COOL
Temperature: 19
FAN: AUTO
Vertical air direction: AUTO
Regards

Klaus

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

Re: ESPEasy to control air conditioners / heat pumps

#87 Post by ToniA » 14 May 2018, 17:55

The hex code seems to be OK, but does something else cause some extra blinks or something, as there are these extra 'W' and 'H' symbols in the beginning and at the end of the code? I just wonder...

I think it has to be about the timings, and the logic the software is really quite simple. But note that my receiver/decoder also makes some assumptions about the code lengths, so save precious memory on Arduino. Could you try the sender first on Arduino, instead of the ESP, just to try out if that makes any difference?

Gramy
New user
Posts: 1
Joined: 15 May 2018, 18:12

Re: ESPEasy to control air conditioners / heat pumps

#88 Post by Gramy » 15 May 2018, 18:24

Hallo everybody, this is my first post on this forum but I'm using ESP_Easy for a while.
I'm using NodeMcu V2 devices with Esp_Easy_Mega soft in my house now and after reading this discussion I'd like to control my Mitsubishi MSZ-HC25VA room air conditioner.
Could somebody provide a bin file with heatpumpir for EspEasy firmware for my device, please? I'm not able to compile all the stuff with your library - can I find it anywhere?
Thank you
Gramy

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#89 Post by kr0815 » 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

Tygerr
New user
Posts: 2
Joined: 18 May 2018, 12:21

Re: ESPEasy to control air conditioners / heat pumps

#90 Post by Tygerr » 18 May 2018, 13:42

Hi Toni

Thanks for the plug-in. I've got it working on my Wemos D1 (well, working in the sense that it is successfully transmitting IR signals from my LED triggered by MQTT commands).

But I'm not sure about how to select the correct code-set for my HVAC.

The remote it uses is one of those YKR K/002 ones, with custom branding for the local distributor.

I see you mentioned those under the AUX ones on your Raw Decoder page. Do I need to perform the decoding with an IR receiver, or do one of the included code sets already work with those remotes?

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#91 Post by kr0815 » 19 May 2018, 21:17

Hi Tygerr,

didi you build the raw receiver?
If not, i suggest to do so and check what your original remote sends

There are so many possible faults you could do, if you are not using the exact type of AC someone else had already success with, do yourself a favour, buld the receiver and check what´s going on

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#92 Post by kr0815 » 21 May 2018, 19:48

Hi Toni,

sorry, looks like i need your help again

i could send desired temp 18 to 25, but not 16 or 17, very strange - 16 and 17 are always interpreted as 23 degrees

Is there the possibility to send the raw hex codes in your script?

This is what i get from the original remote:

Code: Select all

16° : 23,CB,26,01,00,24,03,0F,00,00,00,00,00,4B
 

Code: Select all

17° : 23,CB,26,01,00,24,03,0E,00,00,00,00,00,4A

Code: Select all

18° : 23,CB,26,01,00,24,03,0D,00,00,00,00,00,49 

Code: Select all

23° : 23,CB,26,01,00,24,03,08,00,00,00,00,00,44
 
your script:

Code: Select all

16° : 23,CB,26,01,00,24,08,08,00,00,00,00,00,49 

Code: Select all

23° : 23,CB,26,01,00,24,08,08,00,00,00,00,00,49
 
Thats what i modified so far:

Code: Select all

void FuegoHeatpumpIR::sendFuego(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature, uint8_t swingV, uint8_t swingH)
{
  uint8_t FuegoTemplate[] = { 0x23, 0xCB, 0x26, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
//uint8_t FuegoTemplate[] = { 0x23, 0xCB, 0x26, 0x01, 0x80, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00 };
  //                             0     1     2     3     4     5     6     7     8     9    10    11    12    13

  uint8_t checksum = 0x00;
  (void)swingH;

  // Set the operatingmode on the template message
  FuegoTemplate[5] |= powerMode;
  FuegoTemplate[6] |= operatingMode;

  // Set the temperature on the template message
  FuegoTemplate[7] |= 31 - temperature;

  // Set the fan speed and vertical air direction on the template message
  FuegoTemplate[8] |= fanSpeed | swingV;

  
  
  // Calculate the checksum
  for (unsigned int i=0; i < (sizeof(FuegoTemplate)-1); i++) {
    checksum += FuegoTemplate[i];
  }

  FuegoTemplate[13] = checksum;

  // 38 kHz PWM frequency
  IR.setFrequency(38);

  // Header
  IR.mark(FUEGO_AIRCON1_HDR_MARK);
  IR.space(FUEGO_AIRCON1_HDR_SPACE);

  // Data
  for (unsigned int i=0; i<sizeof(FuegoTemplate); i++) {
    IR.sendIRbyte(FuegoTemplate[i], FUEGO_AIRCON1_BIT_MARK, FUEGO_AIRCON1_ZERO_SPACE, FUEGO_AIRCON1_ONE_SPACE);
  }

Tygerr
New user
Posts: 2
Joined: 18 May 2018, 12:21

Re: ESPEasy to control air conditioners / heat pumps

#93 Post by Tygerr » 21 May 2018, 23:08

kr0815 wrote: 19 May 2018, 21:17 Hi Tygerr,

didi you build the raw receiver?
If not, i suggest to do so and check what your original remote sends

There are so many possible faults you could do, if you are not using the exact type of AC someone else had already success with, do yourself a favour, buld the receiver and check what´s going on
Hi, yes I built the raw receiver and checked it.

It picked up valid codes when I used the Hyundai timings (option 4) and reported that it 'Looks like a AUX protocol'

But I'm not quite sure how to proceed from there. I don't see an AUX protocol option in the HeatpumpIR library. Do I need to edit the HyundaiHeatpumpIR.h file to change to the values that the decoder picked up for my remote and create a new library file?

This is what I got from the decoder:

Code: Select all

Number of symbols: 107
Symbols:
Hh11000011111010010000011100000000000001000000001000000001000000000000000000000000000000001010000011111000
Bytes:
C3,97,E0,00,20,40,80,00,00,00,00,05,1F
Timings (in us): 
PAUSE SPACE:  0
HEADER MARK:  9240
HEADER SPACE: 4560
BIT MARK:     517
ZERO SPACE:   496
ONE SPACE:    1659
Decoding known protocols...
Looks like a AUX protocol
POWER OFF
TURBO: ON
MODE HEAT
Temperature: 26
FAN: 3
Horizontal swing: On
Vertical swing: On
Checksum matches
But I noticed in the HyundaiHeatpumpIR.h file, they are set as:

Code: Select all

// Hyundai timing constants
#define HYUNDAI_AIRCON1_HDR_MARK   8840 // 8700
#define HYUNDAI_AIRCON1_HDR_SPACE  4440 // 4200
#define HYUNDAI_AIRCON1_BIT_MARK   640  // 580
#define HYUNDAI_AIRCON1_ONE_SPACE  1670 // 1530
#define HYUNDAI_AIRCON1_ZERO_SPACE 570  // 460

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: ESPEasy to control air conditioners / heat pumps

#94 Post by kr0815 » 03 Jun 2018, 22:37

I found the answer to my problem above now - there were some restriction in the code for temperatures under 18 degrees, 23 was the default value

Question:
Is it possible to send raw commands / hex codes to the AC with this plugin?

My AC has additional features like sleep Mode, ionizer and such things
As i know through your faboulous raw receiver which codes are expected, i guess the easiest thing would be to just send these raw codes?

Regards
Klaus

Nateonas
New user
Posts: 1
Joined: 07 Jun 2018, 21:06
Location: Netherlands

Re: ESPEasy to control air conditioners / heat pumps

#95 Post by Nateonas » 07 Jun 2018, 21:40

Hi Toni,

this is my first message on this forum... :)

based your https://github.com/ToniA/Raw-IR-decoder-for-Arduino, I've written a decoder for my ZH/LT-01 airco remote control, which was great fun. This remote control is used in over 10 different locally branded Airconditioners. Of course, I want to share my ZHLT01Remote.cpp with the Github-community, but being a noob, I have no idea how to proceed, so please, can someone help me out here. :?:

Besides for the cpp-file I have two remarks to make the decoding easier:
* The suggested IR-sensor is very old and cannot be bought in the market anymore. A very, very common IR-sensor is the VS1838, which also works fine. My suggestion is to add this to the readme, making it easier for other people to start help decoding.
* I suggest to set PIN3 HIGH and PIN4 LOW, (ab)using these pins as pseudo-VCC and -GND and eliminating the need for any wiring; also much easier to set up, see the photo.

Of course, I want to use the decoder to make an encoder for my heatpump (and I'll need som help for that too), but let's do that next...

Awaiting you response!

Cheers, Marcel
Attachments
Stick your VS1838 right into the Arduino with PIN3 and PIN4
Stick your VS1838 right into the Arduino with PIN3 and PIN4
2018-06-07 21.07.42.jpg (160.51 KiB) Viewed 59952 times

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

Re: ESPEasy to control air conditioners / heat pumps

#96 Post by whatsupskip » 20 Sep 2018, 12:33

I was finally able to compile the code and run correctly on Wemos D1 mini.

I can confirm that the Panasonic PKR series uses the same remote protocol as the Panasonic JKE and NKE. It would be great if this was added to code notes.

Has anyone found a good solution the range or direction issue with using standard IR LEDs?
I think the issue might be more that the LEDs are very directional. I have been driving the LED from the 5V via a transistor. If I point the LED directly at the AC it seems to pick up the signal, but when it off axis it doesn't work.
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

#97 Post by whatsupskip » 21 Sep 2018, 01:16

Ok, I did find some interesting ideas for IR LED configuration from the design of the Broadlink brand of WiFi universal remote controls. They use 7 IR LEDs, six pointing horizontally and one pointing up.

Image

This answers my question about how many LEDs might be required and the use of a diffuser.

Now I just need to find out the best circuit design to drive the 7 LEDs.
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

#98 Post by UC530 » 26 Sep 2018, 20:51

Hello!

I am new on forum and I have a problem with compiling firmware with heatpumpIR.
Is it possible, that someone could be so kind and compile the bin file with heatpumpIR library for me?
I do not understand very well how to compile for uploading.

Thanks UC530

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

Re: ESPEasy to control air conditioners / heat pumps

#99 Post by whatsupskip » 27 Sep 2018, 00:43

Ok, this is a case of the blind leading the almost blind.

I have only just managed to compile it myself and I haven't used Github before, but I have uploaded a pre-complied bin file.
Easiest method is to have a working version of the mega ESPEasy running on a 4MB flash version of an ESP8266. Then use the builtin "Load Firmware" to upload this file:
https://github.com/whatsupskip/ESPEasy/ ... 6_4096.bin

I take no responsibility if it bricks your MCU. I have tested this method on a WEMOS D1 mini.

I hope this helps.
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

#100 Post by ToniA » 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'.

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests