Page 1 of 1

IR remote control A/C Domoticz - Wemos

Posted: 01 Oct 2019, 23:48
by wojtek_gtx
Hello
I made a remote control based on Wemos + Ir Led (PCB0100) + Ir Receiver.
I uploaded a soft Tasmot into it and read the TV remote control code from the console:
{ "IrReceived": {"Protocol": "NEC", "Bit": 32, "Date", "0x0202B24D"}}
after issuing the command:
IRsend {"Protocol": "NEC", "Bits": "32", "Data": "0x0202B24D"}
everything works TV reacts to the command.

Except that in the whole project I wanted the remote control from Air Conditioning and this is where the problems begin.
Command read in Tasmota:
{"IrReceived": {"Protocol": "UNKNOWN", "Bits": "50", "Data": "0x00000AA1F5779"}}

Unable to send command:
IRsend {"Protocol": "UNKNOWN", "Bits": "50", "Data": "0x00000AA1F5779"}

Going further, a colleague from the Polish forum instructed me to connect it all with Domoticz, the easiest way was to upload ESPEasy Mega, and link it all, and still nothing ESPEasy also does not support Protocol ":" UNKNOWN "...
I issue the command from Domoticz:
http://192.168.1.170/control?cmd=IRSEND ... A1F5779,50

Please help

Re: IR remote control A/C Domoticz - Wemos

Posted: 02 Oct 2019, 07:43
by ToniA
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: Those plugins are included in the IR_Extended image.

Re: IR remote control A/C Domoticz - Wemos

Posted: 02 Oct 2019, 12:09
by wojtek_gtx
I have Hisense air-conditioning and in the P035 coding it is not in the description, but it is in P088 but it is there as a heat pump, how to run such a plugin to test it ?? Thank you for your interest ;-)

Re: IR remote control A/C Domoticz - Wemos

Posted: 02 Oct 2019, 12:48
by ToniA
  • 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 (via browser), type something like 'heatpumpir,hisense_aud,1,1,0,22,0,0' into the 'Command' field and 'Submit'
  • The LED should blink briefly and the 'Command output' should tell you that the command was sent
More info here: https://github.com/letscontrolit/ESPEas ... pumpIR.ino

Re: IR remote control A/C Domoticz - Wemos

Posted: 02 Oct 2019, 16:15
by wojtek_gtx
You helped me a lot, thank you very much.
My air condition transmits in WHIRLPOOL_AC code.
As I set in heat pump mode and chose the Hisens protocol, nothing happened.
I switched to the IR transmitter, connected the IR receiver and sent the command from the remote control in the log showed first the RAW2 code but one time WHIRLPOOL_AC jumped out.
Soft with IR_Extended mode was the key to success.
best regards

Re: IR remote control A/C Domoticz - Wemos

Posted: 02 Oct 2019, 20:18
by wojtek_gtx
Commands depending on the possibilities:
IRSEND, WHIRLPOOL_AC, 830604620000922D0000000000D900010000080009,168
or
IRSENDAC, { 'protocol': 'WHIRLPOOL_AC', 'model': 2, 'power', 'he', 'mode' 'cool', 'Temp': 22, 'swingv' 'off', 'swingh' : 'off', 'light', 'on'}