The binding offers a “command” channel. You just have to link that channel to an item of type “string”.
Then you can assign the commands to the string item and there you go…
Optionally, you can save the IR-codes in a .map file, so you can use “pretty” names e.g. in your widgets.
So my widget definition on the pages has the pretty names, e.g.
slots:
default:
- component: widget:UniversalRemote2
config:
item: BroadlinkRMPro
power: SAT_POWER
volumeup: SAT_VOL_UP
volumedown: SAT_VOL_DOWN
devicetype: Sat
volumemute: SAT_MUTE
channelup: SAT_CH_UP
channeldown: SAT_CH_DOWN