Search found 59 matches

by ToniA
02 Oct 2019, 12:48
Forum: ESP Easy: Projects / Applications
Topic: IR remote control A/C Domoticz - Wemos
Replies: 5
Views: 1675

Re: IR remote control A/C Domoticz - Wemos

Upload the IR_extended image into your device Define the HeatpumpIR device (it needs a GPIO) Connect the LED (in series with some small resistor) between GPIO and GND. For visual testing you can use a visible light LED, for A/C control you need an IR LED Go to the Tools page on your ESP Easy device...
by ToniA
02 Oct 2019, 07:43
Forum: ESP Easy: Projects / Applications
Topic: IR remote control A/C Domoticz - Wemos
Replies: 5
Views: 1675

Re: IR remote control A/C Domoticz - Wemos

A/C codes are much longer and more complex than the TV ones. You just get a part of the dump, not the whole signal. Take a look at ESPEasy plugins P035 and P088, both have support for certain A/C models: https://espeasy.readthedocs.io/en/latest/Plugin/P035.html#p035-page (read the source ino file co...
by ToniA
25 Sep 2019, 07:20
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

The PR just got merged, so the latest binary release includes those changes. The images are minimal_IRext_ESP8266_1M and minimal_IRext_ESP8266_4M1M.
by ToniA
24 Sep 2019, 11:09
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

The minimal_IRext_ESP8266_1M and minimal_IRext_ESP8266_4M1M images already include these plugins. I have a PR open to include basic sensor and switch plugins to those images: https://github.com/letscontrolit/ESPEasy/pull/2620
by ToniA
24 Jan 2019, 11:54
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
24 Jan 2019, 11:30
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 '...
by ToniA
24 Jan 2019, 11:06
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

The led should be off when it's not transmitting. Also, connect the led between GND (led -) and D3 (led +).
by ToniA
23 Jan 2019, 16:59
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
22 Jan 2019, 08:42
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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
by ToniA
21 Jan 2019, 12:26
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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/HeatpumpIR/src/_P115_HeatpumpIR.ino f...
by ToniA
12 Oct 2018, 06:10
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

It doesn't work on ESP8266, I think it would require quite a bit of changes as it's somewhat hardware-dependent.
by ToniA
27 Sep 2018, 08:45
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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'.
by ToniA
14 May 2018, 17:55
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 th...
by ToniA
03 Apr 2018, 06:58
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
27 Sep 2017, 13:58
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

check this row out: https://github.com/ToniA/arduino-heatpu ... R.cpp#L191, and let me know if setting 0x00 to the byte position 15 does the trick.
by ToniA
24 Sep 2017, 18:54
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

We'd need to find out what goes wrong with the IR code. The most obvious way would be to build an IR receiver with Arduino + IR receiver, like in this sketch: https://github.com/ToniA/Raw-IR-decoder-for-Arduino The just record a sample from the real remote, and compare it against the code sent by th...
by ToniA
24 Jul 2017, 14:01
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

It could actually be a part of the Mega release... I haven't measured any memory usage etc, so I have no idea how it would affect the overall package.
by ToniA
29 Jun 2017, 21:33
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Any device capable of running ESPEasy should work together with the P115 plugin.
by ToniA
13 Jun 2017, 19:24
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

This is really strange. So far I have only tried out the Wemos D1 mini microcontrollers, and they have been working just fine, never had any issues with those. Are you sure those output pins are free on NodeMCU, i.e. not tied into anything else? Any chance you could try with other pins?
by ToniA
04 Jun 2017, 15:38
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Yes, this looks correct. The next step is to start building decoder functionality for this model, in the same sketch you are now running.
by ToniA
04 Jun 2017, 10:12
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

You need to select a different decoding mode. The option '1' is not right for this model, as you see 'h' symbols in the middle of the data stream.
by ToniA
02 Jun 2017, 12:35
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Could you try this decoder: https://github.com/ToniA/Raw-IR-decoder-for-Arduino

Even if it wouldn't understand the protocol, it should give out the data in a format which is easier to read.
by ToniA
23 Apr 2017, 11:41
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

I thought I replied to this chain yesterday, but can't find the message anywhere. Yes, the 'samsung' was a bad example, as I later refactored the Samsung implementation into two different models, so there's no 'samsung' there any more. If the log says the code was sent, then everything should be fin...
by ToniA
22 Apr 2017, 16:16
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
21 Apr 2017, 18:53
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Yes, 940 nm IR LED is the right one. If you have any old and unused remote controllers, you can also strip those apart.
by ToniA
21 Apr 2017, 17:52
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 clos...
by ToniA
20 Apr 2017, 06:57
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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'.
by ToniA
18 Apr 2017, 06:59
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 furth...
by ToniA
17 Apr 2017, 10:18
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 ...
by ToniA
15 Apr 2017, 09:55
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 28...
by ToniA
14 Apr 2017, 20:28
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Hi, So you command it as CarrierMCAHeatpumpIR ? Take a look at this code line: https://github.com/ToniA/arduino-heatpumpir/blob/master/CarrierHeatpumpIR.cpp#L287 Would it work if you change the code starting from that line to this: // New header IR.mark(CARRIER_AIRCON2_BIT_MARK); IR.space(CARRIER_AI...
by ToniA
02 Apr 2017, 19:09
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Let's hope so, but I need a lot of help from you :)
by ToniA
02 Apr 2017, 17:34
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

Yes, that's the way all the supported models have been done.
by ToniA
02 Apr 2017, 13:54
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 th...
by ToniA
31 Mar 2017, 11:40
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
31 Mar 2017, 08:00
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

OK, done :) So the _P115 on the plugin playground now works against HeatpumpIR library version 1.0.6.
by ToniA
30 Mar 2017, 21:13
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
17 Mar 2017, 17:43
Forum: ESP Easy: Software
Topic: Does ESPEasy work with Mosquitto MQTT
Replies: 3
Views: 4444

Re: Does ESPEasy work with Mosquitto MQTT

Yes, it works. I have Raspbian Jessie, and I have installed it like this: apt-get install mosquitto mosquitto-clients Then you just enter the IP address of your Raspberry as the MQTT server address, and that's it. The type of the MQTT just tells ESPEasy which topics and data formats to use. You can ...
by ToniA
01 Mar 2017, 14:15
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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-h...
by ToniA
01 Mar 2017, 08:22
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 He...
by ToniA
27 Feb 2017, 07:15
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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.
by ToniA
26 Feb 2017, 11:32
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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').
by ToniA
06 Feb 2017, 12:12
Forum: ESP Easy: Projects / Applications
Topic: Reacting on MQTT message from Domoticz
Replies: 4
Views: 1537

Re: Reacting on MQTT message from Domoticz

It's the length of the Domoticz MQTT message. In my own branch I'm using PlatformIO to build ESPEasy, so that I can have global #define's in the ini file.

With Arduino IDE, you need to hardcode longer MQTT buffer support into pubsubclient and Controller.ino.
by ToniA
07 Jan 2017, 15:03
Forum: ESP Easy: General Discussion
Topic: Rules when disconnected
Replies: 3
Views: 1504

Re: Rules when disconnected

I made a small code change to have a new event called 'System#MQTT': viewtopic.php?f=6&t=2431&p=11886#p11886

You can use this event to reset a timer, and then do something if the timer ever fires.
by ToniA
02 Jan 2017, 12:47
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 qu...
by ToniA
27 Dec 2016, 11:08
Forum: ESP Easy: Software
Topic: Domoticz-espeasy-relay
Replies: 7
Views: 5488

Re: Domoticz-espeasy-relay

My solution to this is to have a 'time' event to send the relay state once per minute. The downside is that the 'Log' button no longer works, as it seems to overload the web browser when trying to display an event per minute. Another thing is that on the relay side I should have some safeguards agai...
by ToniA
19 Dec 2016, 06:42
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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 ...
by ToniA
18 Dec 2016, 19:18
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 152
Views: 48737

Re: ESPEasy to control air conditioners / heat pumps

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)?