How to convert IR codes from Arduino IRRemote library format to Tasmota IRSend format ? I have an IR receiver built around an Arduino Nano. I captured the codes from my NEC remote handset using the sample program bundled with the library. The codes are reported in the form
Protocol=NEC Address=0xF300 Command=0x91 Raw-Data=0x6E91F300, 32 bits LSB first.
I used an IRSender program from the same library examples, and fed the above codes to my IR LED. It works perfectly well. Now, all my IoT devices are using Tasmota, so I want to integrate the IR sender also into them. But when I tried sending the raw data using Tasmota IRSend command, it did not work. I tried to combine the address and command in various ways. For example:
IRSend {"Protocol":"NEC","Bits":32,"Data": 0x6E91F300 }
IRSend {"Protocol":"NEC","Bits":32,"Data": 0x91F300 }
IRSend {"Protocol":"NEC","Bits":32,"Data": 0xF30091 }
etc, and even as a quoted string:
IRSend {"Protocol":"NEC","Bits":32,"Data": "0xF30091" }
But none of these work. The hardware itself is fine, since it works well with the Arduino library. Please help me with the IR code format conversion between Arduino and Tasmota.