Just to be sure - to get the codes for the remote you don’t need both python-broadlink and broadlink-mqtt - you only need the first one. From this tutorial, you would only need to follow:
- Install python-broadlink
- Teach remote codes → Click to teach via python-broadlink
- You can stop after the command
print(packet.hex())
- that provides the string you’ll need for the map file
- You can stop after the command