ESPEasy to control air conditioners / heat pumps

Moderators: grovkillen, Stuntteam, TD-er

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

ESPEasy to control air conditioners / heat pumps

#1 Post by ToniA » 26 Aug 2016, 20:43

A while ago I've written an Arduino library to control air conditioners / heat pumps through infrared. It works like you'd have a second remote control for the device.

I have now integrated ESPEasy and HeatpumpIR together, and based on my quick trials, at least my good old Panasonic CKP air conditioner seems to respond to IR codes sent from Wemos D1 Mini. I just need to connect a series resistor and an IR led between the GPIO and GND pins. The range is not that great, though. So the first advice is to place the led close to the IR eye.

My software is here: https://github.com/ToniA/ESPEasy/tree/HeatpumpIR. I also made a pull req on the playground: https://github.com/ESP8266nu/ESPEasyPlu ... und/pull/7

porfinfunciona
New user
Posts: 5
Joined: 17 Dec 2016, 17:53

Re: ESPEasy to control air conditioners / heat pumps

#2 Post by porfinfunciona » 17 Dec 2016, 17:59

Hi

Thanks for the plugin, works perfect but i have one problem/question.

I can send via EspEasy the command via http like http://192.168.1.201/control?cmd=heatpu ... 2,3,30,0,0 and it works. I need use it via mqtt in node red. Im using openHab.

I try use topic /mydevice/heatpumpir and payload samsung,1,2,3,30,0,0 but doesnt works, can you help me?

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

Re: ESPEasy to control air conditioners / heat pumps

#3 Post by ToniA » 18 Dec 2016, 15:46


porfinfunciona
New user
Posts: 5
Joined: 17 Dec 2016, 17:53

Re: ESPEasy to control air conditioners / heat pumps

#4 Post by porfinfunciona » 18 Dec 2016, 19:13

Thanks for your reply.

I read many times, but i dont understand how to send this command in node red. My ESPEasy is mos1. I try topic /mos1/ and payload cmd -m heatpumpir,samsung,1,1,0,22,0,0 and dont works, i try payload mosquitto_pub -t /mos1/cmd -m heatpumpir,samsung,1,1,0,22,0,0 and dont works. Please help me because im lost.


Thanks for all

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

Re: ESPEasy to control air conditioners / heat pumps

#5 Post by ToniA » 18 Dec 2016, 19:18

This should be the correct format:

Code: Select all

mosquitto_pub -t /mos1/cmd -m heatpumpir,samsung,1,1,0,22,0,0
What do you get in the ESPEasy log? What if you change the log verbosity level to '9', in Tools -> Advanced -> Web or Serial log level (depending on which one you are looking at)?

porfinfunciona
New user
Posts: 5
Joined: 17 Dec 2016, 17:53

Re: ESPEasy to control air conditioners / heat pumps

#6 Post by porfinfunciona » 18 Dec 2016, 19:30

63394177 : MQTT : Topic: /mos1/
63394177 : MQTT : Payload: mosquitto_pub -t /mos1/cmd -m heatpumpir,samsung,1,1,0,22,0,0
Attachments
Sin título.jpg
Sin título.jpg (163.22 KiB) Viewed 117080 times

porfinfunciona
New user
Posts: 5
Joined: 17 Dec 2016, 17:53

Re: ESPEasy to control air conditioners / heat pumps

#7 Post by porfinfunciona » 18 Dec 2016, 19:32

This is my clipboard


[
{
"id": "ae6723d7.812b7",
"type": "mqtt out",
"z": "12d43a6d.0a2e16",
"name": "",
"topic": "/mos1/",
"qos": "",
"retain": "",
"broker": "122ca1e9.2f68ee",
"x": 551,
"y": 213,
"wires": []
},
{
"id": "81429d0.dffa56",
"type": "inject",
"z": "12d43a6d.0a2e16",
"name": "",
"topic": "",
"payload": "mosquitto_pub -t /mos1/cmd -m heatpumpir,samsung,1,1,0,22,0,0",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 348,
"y": 210,
"wires": [
[
"ae6723d7.812b7"
]
]
},
{
"id": "122ca1e9.2f68ee",
"type": "mqtt-broker",
"z": "",
"broker": "192.168.1.200",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"willTopic": "",
"willQos": "0",
"willPayload": "",
"birthTopic": "",
"birthQos": "0",
"birthPayload": ""
}
]

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

Re: ESPEasy to control air conditioners / heat pumps

#8 Post by ToniA » 19 Dec 2016, 06:42

Ah, we have misunderstood each other. The 'mosquitto_pub' is a command line tool to send out MQTT messages from the shell. So the topic should be '/mos1/cmd' and the payload should be like 'heatpumpir,samsung,1,1,0,22,0,0'.

Now your topic was '/mos1/' and the payload was 'mosquitto_pub -t /mos1/cmd -m heatpumpir,samsung,1,1,0,22,0,0'.

porfinfunciona
New user
Posts: 5
Joined: 17 Dec 2016, 17:53

Re: ESPEasy to control air conditioners / heat pumps

#9 Post by porfinfunciona » 19 Dec 2016, 16:07

It works perfectly. Thank you very much ToniA. I still dont know thw logic of the topic but it works. Im a beginner and need to read more documantation.


Thanks for all. :) ;)

s3rgi
New user
Posts: 2
Joined: 02 Jan 2017, 12:28

Re: ESPEasy to control air conditioners / heat pumps

#10 Post by s3rgi » 02 Jan 2017, 12:42

Hi ! I'm new on the forum... sorry for my bad english, I'm spanish...

A few months ago I'm using Domoticz and weeks ago I discovered espeasy ... it's great!
I have correctly integrated several things and now I want to go one step further ... I want to integrate the air conditioning. I found this thread but I see that the brand of my AC is not in the list of your plugin (I have an LG)
I have been reading and it does not seem difficult to read the codes of the remote ... integrating an infrared receiver, and capturing the codes of the remote.

ToniA, how can I help the project by sampling the codes of the remote control of my LG air?

Thanks in advance.
Sergi

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

Re: ESPEasy to control air conditioners / heat pumps

#11 Post by ToniA » 02 Jan 2017, 12:47

Sergi, you should use this sketch: https://github.com/ToniA/Raw-IR-decoder-for-Arduino

First we should build a decoder for the LG protocol, and once that works in decoding the basic things (checksum, ON/OFF, operating mode, temperature and fan speeds), then implementing the sending part should be quite easy.

s3rgi
New user
Posts: 2
Joined: 02 Jan 2017, 12:28

Re: ESPEasy to control air conditioners / heat pumps

#12 Post by s3rgi » 02 Jan 2017, 13:59

Thanks !!!
I'll try to build the decoder and capture the basic things in this week or the next...

I will continue reporting

rfmon
New user
Posts: 7
Joined: 23 Feb 2017, 10:53

Re: ESPEasy to control air conditioners / heat pumps

#13 Post by rfmon » 24 Feb 2017, 16:38

Hello everyone.
Also I'm trying to use the plug-in of Tonia but I can not see Heatpumpir ESPeasy in the device menu.
I copied the plugin _P115_HeatpumpIR in the source / folder of espeasy _R140 firmware, but when I install the firmware on the ESP 8266-01 or 8266-12F nothing happens.
Can you help me understand how you install the plug-in?
Sorry for my Google english

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

Re: ESPEasy to control air conditioners / heat pumps

#14 Post by ToniA » 26 Feb 2017, 11:32

Would it work if you build from this: https://github.com/ToniA/ESPEasy/tree/master/ESPEasy ? I haven't merged with R140, as I'm using it on a customer project, and the version I'm basing on at the moment hasn't had any issues ('if it ain't broke, don't fix it').

fury0
New user
Posts: 3
Joined: 26 Feb 2017, 19:56

Re: ESPEasy to control air conditioners / heat pumps

#15 Post by fury0 » 26 Feb 2017, 20:06

Hi,
Thank you very much for this plugin! I've compiled it with the stable R120 (I've just remove the GreeHeatpumpIR, as it refuse to compile with it?) and it works like a charm for my Panasonic DKE!
Thank you again.

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

Re: ESPEasy to control air conditioners / heat pumps

#16 Post by ToniA » 27 Feb 2017, 07:15

Yes, I should update the plugin, as I have made some interface changes on some of the heatpump models on the HeatpumpIR library.

Nice to hear it's working for you :) I also have a Panasonic DKE.

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#17 Post by sneaksneak » 28 Feb 2017, 23:16

Hello. I have some trouble that I need help with.

I downloaded the raw IR decode sketch and used my original remote to it.
I have a zibro/qlima heatpump. When I select to decode nr 4 in the serial monitor it tells me "looks like Carrier protocoll #2"

OK. I compile esp easy with heatpump IR library on a nodemcu-12
And when sending a IR code when using (carrier_mca) nothing works.

If I send it to the aduino with IR raw decoder, it decodes it as carrier #2 protocoll.
So It seems to work, but it dosent.

What am I missing here?

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

Re: ESPEasy to control air conditioners / heat pumps

#18 Post by ToniA » 01 Mar 2017, 08:22

First of all, if you replace the IR led with a visible light led, do you see it blinking? The range is also not that long, so try to place the IR led as close as possible. With 100 Ohm resistor in series with the IR led I get a few meters.

Also, the 'carrier_mca' is a rather new addition into the HeatpumpIR library, so make sure you are building against a version which has it in.

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#19 Post by sneaksneak » 01 Mar 2017, 13:07

If I did not have a version for carrier_mca then it wouldent work to send IR commands from espeasy to the arduino with raw IR decoder onboard, that tells me it decodes carrier #2? Right?

I can also se that it is sending IR light with a camera so it should be ok.

I have a blue noname IR led 940something. Is that ok?
Or should I use a clear led?

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

Re: ESPEasy to control air conditioners / heat pumps

#20 Post by ToniA » 01 Mar 2017, 14:15

OK, so you have the decoder, and both the original remote control and the ESP will send the same code, but only the remote control works? Did I get it right? Do you see if there are any obvious differences in the symbol sequence?

You could also try out this sketch (https://github.com/ToniA/arduino-heatpu ... sender.ino), with the symbols sequence from the real remote, to test out the setup.

940nm IR leds should be OK, the color of the case should not matter.

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#21 Post by sneaksneak » 01 Mar 2017, 17:39

Yes you get it right. The original remote and the ESP sends the same IR codes to my arduino uno with a IR reciever with your raw IR decode sketch.

I will try the ino file you made a link to next time I am at my summer house.

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#22 Post by beic » 30 Mar 2017, 21:08

Hi there,

I'm getting error while compiling it!

Any suggestions?

Code: Select all

In file included from _P115_HeatpumpIR.ino:40:0:
C:\Documents and Settings\Beic\My Documents\Arduino\libraries\arduino-heatpumpir/SamsungHeatpumpIR.h:54:5: error: 'SamsungHeatpumpIR::SamsungHeatpumpIR()' is protected
     SamsungHeatpumpIR();
     ^
_P115_HeatpumpIR:55: error: within this context
In file included from _P115_HeatpumpIR.ino:46:0:
C:\Documents and Settings\Beic\My Documents\Arduino\libraries\arduino-heatpumpir/GreeHeatpumpIR.h:66:5: error: 'GreeHeatpumpIR::GreeHeatpumpIR()' is protected
     GreeHeatpumpIR();
     ^
_P115_HeatpumpIR:57: error: within this context
Plugin included: _P115_HeatpumpIR.ino and also the arduino-heatpumpir libraries too.

Kind regards,
Viktor

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

Re: ESPEasy to control air conditioners / heat pumps

#23 Post by ToniA » 30 Mar 2017, 21:13

Oh yes, I've done further development on the HeatpumpIR library, without updating the plugin. If you don't have a Samsung or Gree, just comment out the code where it adds instances of those into the array of supported models.

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#24 Post by beic » 30 Mar 2017, 22:11

ToniA wrote: 30 Mar 2017, 21:13 Oh yes, I've done further development on the HeatpumpIR library, without updating the plugin. If you don't have a Samsung or Gree, just comment out the code where it adds instances of those into the array of supported models.
But, can you fix it for me, please ToniA! ;)

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

Re: ESPEasy to control air conditioners / heat pumps

#25 Post by ToniA » 31 Mar 2017, 08:00

OK, done :) So the _P115 on the plugin playground now works against HeatpumpIR library version 1.0.6.

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#26 Post by beic » 31 Mar 2017, 11:37

ToniA wrote: 31 Mar 2017, 08:00 OK, done :) So the _P115 on the plugin playground now works against HeatpumpIR library version 1.0.6.
Ohhh, ToniA my friend, it's compiling now like a charm! 8-)

Just one question,...

I'm using WeMos D1 mini (3.3v), so,... I need to know the resistor value and what type of IR Transmitter Diode to use (I have 3mm/940nm and 5mm/850nm too).

Thank you! ;)

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

Re: ESPEasy to control air conditioners / heat pumps

#27 Post by ToniA » 31 Mar 2017, 11:40

I've used 940 nm leds. The range is not very good, I think you could get a few meters with 100 ohms. The resistor value does not really matter much, just use something.

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#28 Post by beic » 02 Apr 2017, 13:49

ToniA wrote: 31 Mar 2017, 11:40 I've used 940 nm leds. The range is not very good, I think you could get a few meters with 100 ohms. The resistor value does not really matter much, just use something.
Thanks Toni for that! ;)

But, do you have any support (any thoughts) maybe for my Vivax Cool ACP-12CH35AEL (12000 / 12000 BTU) ?

User manual: http://www.kimtec.rs/downloads/vivax/do ... H35AEL.pdf

Image
Last edited by beic on 02 Apr 2017, 14:00, edited 1 time in total.

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

Re: ESPEasy to control air conditioners / heat pumps

#29 Post by ToniA » 02 Apr 2017, 13:54

No, unless it uses some known protocol. If not, then we'd need to reverse-engineer it. I bit of work, but this is how all the protocols in the HeatpumpIR library have been developed.

See these:
https://github.com/ToniA/arduino-heatpumpir
https://github.com/ToniA/Raw-IR-decoder-for-Arduino

Even if the whole protocol is not fully understood, it's also possible to play back recorded samples with something like this: https://github.com/ToniA/arduino-heatpu ... sender.ino

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#30 Post by beic » 02 Apr 2017, 16:15

So, if I decode my remote control commands like (On, Off, etc...) with that https://github.com/ToniA/Raw-IR-decoder-for-Arduino, than you can make a library for Vivax unit too?

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

Re: ESPEasy to control air conditioners / heat pumps

#31 Post by ToniA » 02 Apr 2017, 17:34

Yes, that's the way all the supported models have been done.

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#32 Post by beic » 02 Apr 2017, 19:06

So, if I give you all the RAW code with description then you can make a library for me/us (community)?!

Kind regards,
Viktor

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

Re: ESPEasy to control air conditioners / heat pumps

#33 Post by ToniA » 02 Apr 2017, 19:09

Let's hope so, but I need a lot of help from you :)

User avatar
beic
Normal user
Posts: 142
Joined: 18 Aug 2016, 18:19

Re: ESPEasy to control air conditioners / heat pumps

#34 Post by beic » 02 Apr 2017, 19:11

ToniA wrote: 02 Apr 2017, 19:09 Let's hope so, but I need a lot of help from you :)
It's just awesome Toni, just so, awesome! 8-)

I will do it all tonight!!! :twisted:

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#35 Post by sneaksneak » 14 Apr 2017, 19:59

ToniA wrote: 01 Mar 2017, 14:15 OK, so you have the decoder, and both the original remote control and the ESP will send the same code, but only the remote control works? Did I get it right? Do you see if there are any obvious differences in the symbol sequence?

You could also try out this sketch (https://github.com/ToniA/arduino-heatpu ... sender.ino), with the symbols sequence from the real remote, to test out the setup.

940nm IR leds should be OK, the color of the case should not matter.
When I send with the origial remote it decodes:

Number of symbols: 102
Symbols:
Hh101100100100110110111111010000000101110010100011hHh101100100100110110111111010000000101110010100011
Bytes:
4D,B2,FD,02,3A,C5,4D,B2,FD,02,3A,C5
Timings (in us):
PAUSE SPACE: 0
HEADER MARK: 4450
HEADER SPACE: 4740
BIT MARK: 497
ZERO SPACE: 512
ONE SPACE: 1620
Decoding known protocols...
Looks like a Carrier protocol #2
POWER: ON
FAN: AUTO
Temperature: 23
Checksum matches

-----------------------------------------------------------------------------------------------------------------------------------
When I send with the HeatpumpIR library the decoder says:

Number of symbols: 101
Symbols:
Hh101100100100110110011111011000000101000010101111Hh101100100100110110011111011000000101000010101111
Bytes:
4D,B2,F9,06,0A,F5,4D,B2,F9,06,0A,F5
Timings (in us):
PAUSE SPACE: 0
HEADER MARK: 4600
HEADER SPACE: 4600
BIT MARK: 600
ZERO SPACE: 458
ONE SPACE: 1540
Decoding known protocols...
Looks like a Carrier protocol #2
POWER: ON
FAN: 1
MODE: COOL
Temperature: 23
Checksum matches

101 or 102 symbols? Is that the thing that is wrong.

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

Re: ESPEasy to control air conditioners / heat pumps

#36 Post by ToniA » 14 Apr 2017, 20:28

Hi,

So you command it as CarrierMCAHeatpumpIR ?

Take a look at this code line: https://github.com/ToniA/arduino-heatpu ... R.cpp#L287

Would it work if you change the code starting from that line to this:

Code: Select all

  // New header
  IR.mark(CARRIER_AIRCON2_BIT_MARK);
  IR.space(CARRIER_AIRCON2_HDR_SPACE);
  IR.mark(CARRIER_AIRCON2_HDR_MARK);
  IR.space(CARRIER_AIRCON2_HDR_SPACE);

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#37 Post by sneaksneak » 14 Apr 2017, 23:43

ToniA wrote: 14 Apr 2017, 20:28 Hi,

So you command it as CarrierMCAHeatpumpIR ?

Take a look at this code line: https://github.com/ToniA/arduino-heatpu ... R.cpp#L287

Would it work if you change the code starting from that line to this:

Code: Select all

  // New header
  IR.mark(CARRIER_AIRCON2_BIT_MARK);
  IR.space(CARRIER_AIRCON2_HDR_SPACE);
  IR.mark(CARRIER_AIRCON2_HDR_MARK);
  IR.space(CARRIER_AIRCON2_HDR_SPACE);
No I command it as "carrier_mca"

And then I dont know what to do. Do not understand what you want me to edit.
I have followed this guide. ---> https://www.domoticz.com/wiki/AC_/_heatpumpIR

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

Re: ESPEasy to control air conditioners / heat pumps

#38 Post by ToniA » 15 Apr 2017, 09:55

Yes, that's what I mean. The C++ class name in the code is 'CarrierMCAHeatpumpIR', and in the web interface it's known as 'carrier_mca'. Are you able to build a new build of the ESPEasy? It looks like the file CarrierHeatpumpIR.cpp in the HeatpumpIR library would need a change, starting from line 287 on.

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

Re: ESPEasy to control air conditioners / heat pumps

#39 Post by ToniA » 17 Apr 2017, 10:18

I made the changes into the HeatpumpIR library and pushed into Github. So if the ESPEasy builds always use the latest library versions, the next build hopefully includes this. The Carrier MCA now also supports heat mode (it was originally sampled from a device which was only an air conditioner) and 'maintenance mode' (~10 degrees C heating mode), provided that your device has those capabilities. The Qlima heatpump should support these.

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#40 Post by sneaksneak » 17 Apr 2017, 20:15

ToniA wrote: 17 Apr 2017, 10:18 I made the changes into the HeatpumpIR library and pushed into Github. So if the ESPEasy builds always use the latest library versions, the next build hopefully includes this. The Carrier MCA now also supports heat mode (it was originally sampled from a device which was only an air conditioner) and 'maintenance mode' (~10 degrees C heating mode), provided that your device has those capabilities. The Qlima heatpump should support these.
Thank you ToniA
It is working now, every command that I have tried is working as it should, except for the heating mode :D
The Cool mode is activated when I set it too heating mode.
__________________________________________________________________________
When sending heating mode from espeasy, I recieve this code:

Number of symbols: 102
Symbols:
Hh101100100100110110111111010000000111000010001111hHh101100100100110110111111010000000111000010001111
Bytes:
4D,B2,FD,02,0E,F1,4D,B2,FD,02,0E,F1
Timings (in us):
PAUSE SPACE: 0
HEADER MARK: 4580
HEADER SPACE: 4600
BIT MARK: 560
ZERO SPACE: 489
ONE SPACE: 1573
Decoding known protocols...
Looks like a Carrier protocol #2
POWER: ON
FAN: AUTO
MODE: COOL
Temperature: 22
Checksum matches
__________________________________________________________________________
When sending heating mode from original remote, I recieve this code:

Number of symbols: 102
Symbols:
Hh101100100100110110111111010000000111110010000011hHh101100100100110110111111010000000111110010000011
Bytes:
4D,B2,FD,02,3E,C1,4D,B2,FD,02,3E,C1
Timings (in us):
PAUSE SPACE: 0
HEADER MARK: 4440
HEADER SPACE: 4753
BIT MARK: 494
ZERO SPACE: 520
ONE SPACE: 1620
Decoding known protocols...
Looks like a Carrier protocol #2
POWER: ON
FAN: AUTO
Temperature: 22
Checksum matches

__________________________________________________________________________
Here you can see the differences.

ESPEasy:Hh101100100100110110111111010000000111000010001111hHh101100100100110110111111010000000111000010001111
Original--: Hh101100100100110110111111010000000111110010000011hHh101100100100110110111111010000000111110010000011

sneaksneak
New user
Posts: 7
Joined: 28 Feb 2017, 23:03

Re: ESPEasy to control air conditioners / heat pumps

#41 Post by sneaksneak » 17 Apr 2017, 20:23

Ahhhhh.... I downloaded the library this morning after breakfast at 10:00
And you updated the library at 10:00?
Ok, I have to reflash again to test if the Heating mode is working now. :oops:


HAHA. Now It is working for me. Thank you ToniA.

I have this remote
Image

Sold by Jula in Sweden under the name Zibro
Sold by K-Rauta in Sweden under the name Qlima

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

Re: ESPEasy to control air conditioners / heat pumps

#42 Post by ToniA » 18 Apr 2017, 06:59

It also seems that the 'frost guard' or 'maintenance mode' (as I call it) has two different messages, based on the model year. The older version does not work yet, I need to implement something to have two different Qlima/Zibro models with different maintenance mode messages. So stay tuned for further changes...

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

Re: ESPEasy to control air conditioners / heat pumps

#43 Post by ToniA » 20 Apr 2017, 06:57

The library now has 'qlima_1' and 'qlima_2', as different model years of this heatpump have different control messages for the 'frost guard' mode, or 'maintenance' as I call it (heating at ~10 degrees C). If you just use the 'normal' functions, you can also use it as 'carrier_mca'.

helio58
Normal user
Posts: 20
Joined: 11 Mar 2017, 10:21

Re: ESPEasy to control air conditioners / heat pumps

#44 Post by helio58 » 21 Apr 2017, 17:47

Hi ToniA ,
I m a newbie but i will love to control my heat pump with your code.
I see you use the memos D1 mini, but the IR led which do you use the same goes to the resistor.
Do you have same schematics?
Thanks in advance

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

Re: ESPEasy to control air conditioners / heat pumps

#45 Post by ToniA » 21 Apr 2017, 17:52

Just look at the Arduino example on this page: https://github.com/ToniA/arduino-heatpumpir -> look at the readme.

You need an IR led + some resistor, the value does not matter much, something in the range from tens of ohms to a kilo-ohm. Regardless of which resistor you use the range is nowhere close to the real remote, a few meters at most.

helio58
Normal user
Posts: 20
Joined: 11 Mar 2017, 10:21

Re: ESPEasy to control air conditioners / heat pumps

#46 Post by helio58 » 21 Apr 2017, 18:14

ToniA wrote: 21 Apr 2017, 17:52 Just look at the Arduino example on this page: https://github.com/ToniA/arduino-heatpumpir -> look at the readme.

You need an IR led + some resistor, the value does not matter much, something in the range from tens of ohms to a kilo-ohm. Regardless of which resistor you use the range is nowhere close to the real remote, a few meters at most.
Thanks ToniA, will this work? http://www.ebay.com/itm/3mm-IR-LED-Pair ... 1374524483

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

Re: ESPEasy to control air conditioners / heat pumps

#47 Post by ToniA » 21 Apr 2017, 18:53

Yes, 940 nm IR LED is the right one. If you have any old and unused remote controllers, you can also strip those apart.

helio58
Normal user
Posts: 20
Joined: 11 Mar 2017, 10:21

Re: ESPEasy to control air conditioners / heat pumps

#48 Post by helio58 » 22 Apr 2017, 13:09

ToniA wrote: 21 Apr 2017, 18:53 Yes, 940 nm IR LED is the right one. If you have any old and unused remote controllers, you can also strip those apart.
Thanks ToniA have searched but no old unused controllers,have order one.
I have a Mitsubishi heat pump will try to flash a wemos mini with it if i manage compile.

helio58
Normal user
Posts: 20
Joined: 11 Mar 2017, 10:21

Re: ESPEasy to control air conditioners / heat pumps

#49 Post by helio58 » 22 Apr 2017, 14:46

Hi again I manage (I think) to flash a Nodemcu with your code.
But I don't see the option to choose the manufactur. Skall it be so?
Thanks
Attachments
Heatpump.png
Heatpump.png (56.6 KiB) Viewed 114415 times

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

Re: ESPEasy to control air conditioners / heat pumps

#50 Post by ToniA » 22 Apr 2017, 16:16

In ESPEasy you only need to configure the pin you connect the LED into (you can first try out with red/green/yellow/whatever color LED to see it's working).

The heatpump model is in the message, see the second message of this thread for an example. This works both with http and mqtt messages.

Post Reply

Who is online

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