Learning IR codes from broadlink switch

This thread may be of help
https://community.home-assistant.io/t/broadlink-manager-nicer-way-to-learn-and-send-ir-rf-commands/58770