Apparently learning codes with Tasmota is a bit different than the Broadlink IR remotes, which use the Remote: commands in the Developer Tools → Actions section.
Instead, when you have the Tasmota console open, you should see a log message every time you press a button on your “real” remote pointing at the Athom. For example (thanks to digiblur for the notes):
11:11:27.565 MQT: tele/devicename/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":20,"Hash":"0x85B1439D","Repeat":0,"RawData":"+5810-2840+1940-5620C-1845C-20420AbCdCeC-20415AbCdCeCfAbCdCeCgAbCdCeC","RawDataInfo":[39,39,0]}}
Where the important part is the RawData code, "+5810-2840+1940-5620C-1845C-20420AbCdCeC-20415AbCdCeCfAbCdCeCgAbCdCeC"
Knowing this code, you can execute the same button-press by sending a MQTT message to the Athom at cmnd/name/IRSend containing the code command, as seen in digiblur’s code.
What I do for my Broadlink IR remotes is I create individual template button entities in the Helpers GUI, so then I can simply press a button in the UI or call action button.press in my automatons. See example below, which is linked to the device page for the parent Tasmota device (the name at the bottom).
