I was finally able to get back to Home Assistant and the whole AC control using OMG. I just flashed latest version (0.9.3) on my Wemos D1 with IR shield and I’m afraid there is still something wrong. I know that Haier unit is now supported, but I still am unable to get it to work, mainly send commands. I am also kinda not sure about the data I am getting.
I press On/Off button on the remote, on
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT
I am getting:
{"value":2314393241143126182,"protocol":44,"bits":112,"hex":"0xA6A8E60064601E201E0000000559","protocol_name":"HAIER_AC_YRW02","raw":}
I send to:
home/OpenMQTTGateway_ESP8266_IR/commands/MQTTtoIR
message:
{"value":2314393241143126182,"protocol_name":"HAIER_AC_YRW02"}
In VS Code, in Terminal I see:
Hey I got a callback
MQTTtoIR json
MQTTtoIR value || raw || datasring ok
MQTTtoIR OK
Pub json into:
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT
{"value":2314393241143126182,"protocol_name":"HAIER_AC_YRW02"}
Hey I got a callback
Store str
Min ind:
4
store code :
15116454/2317181
Col: val/timestamp
0:15116454/2120869
1:15116454/2165606
2:15116454/2202061
3:15116454/2295565
4:15116454/2317181
5:15116454/979443
6:15116454/998437
7:15116454/998478
8:15116454/1015877
9:15116454/1015973
10:15116454/1103441
11:15116454/1116997
JSON str
Creating IR buffer
Rcv. IR
636,3198,664,208,632,266,608,262,632,208,660,210,634,266,628,208,662,208,634,250,660,260,634,258,628,262,634,234,626,258,632,258,632,258,660,232,664,258,632,258,630,260,630,234,632,256,636,254,634,256,636,3640,664,258,630,262,632,260,634,230,658,234,628,258,634,258,662,234,654,232,662,258,632,260,632,232,632,256,632,256,636,254,634,13202,662
--no pub unknwn prt or data to high--
And after some time I get messages like this:
Rcv. IR
664,3158,634,234,662,208,634,236,632,268,632,236,632,206,634,240,630,266,632,250,632,230,632,258,634,256,636,256,662,230,658,260,632,260,632,256,606,256,632,256,638,252,634,256,634,256,662,260,630,260,632,3608,662,232,660,260,636,228,658,232,660,230,632,256,634,258,660,228,662,260,636,254,632,260,630,262,630,230,632,258,634,260,660,13214,636
--no pub unknwn prt or data to high--
I’m kinda confused. Only additional modification is as per suggestions in this thread I increased kRawBuf
from default 100 to 300 since my Haier unit sends 112 bits.