See: https://esphome.io/components/remote_receiver.html
To be used with: https://esphome.io/components/remote_transmitter.html
The device responds to NEC / LG / Pioneer codes as recorded below. I couldn't spot any differences when choosing one protocol or the other.