Hi!
So I’ve been looking for some DIY solution for two-way communication between IR remotes and HA and I’ve found OpenMqttGateway. After some reading I decided to give it a try. I got NodeMCU v2.0 and all the parts to wire it together. It works…sort of I’ve been able to make OMG work with HA and my PC stereo speakers, but failed dwith my AC that was my main goal. More information below.
I have few issues/questions.
The range is really poor, like… I dunno, half a meter maybe? And target has to bee in direct line of sight, the IR emitter has to be literally pointing at it. This is strange because I have not seen problems like this reported. Just to answer obvious questions. Yes I provide 5V to the board and I did check my wiring
I don’t know how to deal with codes that are the same and are a toggle, like power on/off of my stereo speakers I’m using with my PC. They don’t have separate codes for on and off actions so I can’t use (I think) payload_on and payload_off in HA to get them from the state topic. I’ve been playing around with true/false values for optimistic and retain, but did not help much. Also because of the same code I can’t seem to get the bidirectional connection to work. HA switch stays in the same position all the time (until I manually flip it in HA) and does not reflect physical remote button presses. I also played with raw data, I can make publish it to /commands/IR_Raw topic and I see it flip the speakers on and off. I could use raw data in HA, but since it’s different everytime (at least that is what I see it as) - end result will be similar to previous attempt.
Main thing I wanted to drive is my Haier AC unit. I see it is supported by IRremoteESP8266, I tried IRrecvDumpV2 and it worked like a charm. I see codes and what is more important I see state of the unit, since there are methods to get temperature, fan speed and other options in the library. What I was wondering is if this is super hard to add it to OMG?
For the AC I’m also wondering if there is a way to use the AC state to do some kind of neat UI for it or it all has to e switches, buttons and that’s it?
Thanks for all the work @1technophile and all contributors!
Kind regards
M