You just point your remote to it and it can capture the data that you can just replay..
I've done the same for an AC that wasn't supported by IRDB at the time. Just went through recording every possible combination, was a boring 30 minutes but it's worked perfectly ever since.
If it is like ESPHome, the IR sequences are included. Mostly from databases like IRDB [0]