I have a Moes UFO-R11 Zigbee IR Blaster.
It works fine. I can put it into learning mode, point a remote and learn a code. e.g power toggling my TV gives the following:
“B5oDmgMOB5oD4BEBgB2ABQX//5oDmgOAC+APAQsOB5oDmgMOB5oDmgM=”
The problem is that there are some commands that are not on the remote I have. I have googled and found a list of commands at irdb/codes/Toshiba/TV/64,-1.csv at 44744ca09f3321fe78a70be749a54bb1bd8ce186 · probonopd/irdb · GitHub
it seems like POWER TOGGLE is given as
functionname: “POWER”
protocol: “NEC1”
device: 64
subdevice: -1
function: 18
so I wonder how could I convert this into a format that the MOES device can send?
It looks like a base64 encoded string which when decoded is a list of integers:
[7, 154, 3, 154, 3, 14, 7, 154, 3, 224, 17, 1, 128, 29, 128, 5, 5, 255, 255, 154, 3, 154, 3, 128, 11, 224, 15, 1, 11, 14, 7, 154, 3, 154, 3, 14, 7, 154, 3, 154, 3]
How do I get from NEC function to the b64 string required?