Home Assistant and IR gateway problems

I flashed (not without issues) 0.9.2 today. I had troubles with changes to the libs (troubles like where are they :wink:), but managed in the end.

But to the point. It does not crash on send like before, so it seems the bug reported in other thread is fixed and that made it work for me as well.

Few notes though:

1.Gateway name changed (to home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT in my case), got me confused at first but I found the correct one with MQTT.fx discovery
2.I am getting double messages.
One like:

{"value":14863526,"protocol":44,"bits":112,"hex":"A6CCE200526F062F060000000050","raw":}

The other just the value:

14863526

3.I don’t know why, but when I enable scan, instead of expected (I think :thinking:):

home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT/LWT
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT/version

I am getting:

home/OpenMQTTGateway/IRtoMQTT/LWT
home/OpenMQTTGateway/IRtoMQTT/version
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT/LWT
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT/version

So the old gateway (it even reports as 0.9.1 in Version topic) and the new one. I have only one OMG so this does not make sense. All the subsequent topics found are from the correct version/base topic.

4.Still can’t send :frowning: But at least it does not crash.
When I publish to
home/OpenMQTTGateway_ESP8266_IR/commands/MQTTtoIR
I am getting:

Hey I got a callback
MQTTtoIR json
MQTTtoIR value || raw || datasring ok
value
14728358
MQTTtoIR OK
Pub json into:
home/OpenMQTTGateway_ESP8266_IR/IRtoMQTT
{"value":14728358,"protocol_name":"IR_HAIER_AC_YRW02"}
Pub data per topic
value
14728358
protocol_name
IR_HAIER_AC_YRW02
Hey I got a callback
Store str
Hey I got a callback
Store str
Min ind:
1
store code :
14728358/485883
Col: val/timestamp
0:14728358/469962
1:14728358/485883
2:14859430/22267
3:14859430/22289
4:14863526/28114
5:14863526/28362
6:14859430/28856
7:14859430/28899
8:14855334/438797
9:14855334/438832
10:14859430/442376
11:14859430/442405
JSON str
14728358

I feel like I’m beating a dead horse with this one…

I’m not doing anything fancy…

  1. Downloaded CODE from releases
  2. Unpacked somewhere and opened it in PIO
  3. Build the project
  4. Uncommented default_envs = nodemcuv2-ir
  5. Made changes to IRrecv.h (kRawBuf up to 300 from 100)
  6. Put in my MQTT and WiFi settings and uploaded.

This Haier is really not playing nice with OMG…