ESPEasy to control air conditioners / heat pumps

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Message
Author
Bluesmell
Normal 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: 35
Joined: 28 Feb 2018, 07:40

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.

ToniA
Normal user
Posts: 47
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
Normal 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: 132
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: 132
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: 47
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
Normal 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: 132
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
Normal 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?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest