Hello!
I do not have many knowledge on Python, but found a working workflow to get the final code you need to use with Broadlink RMs from PRONTO HEX codes:
-
Use this code to convert the PRONTO HEX, remember to remove all spaces, only number here: https://www.jdoodle.com/embed/v0/eBD. This step wil convert to HEX. I had to clic on
Edit this in program JDoodle.comso I can se theCommandLine Arguments ...field, were the raw PRONTO HEX number should be pasted. -
Paste the resulting numbers here: http://tomeko.net/online_tools/hex_to_base64.php?lang=en. This step will convert HEX to base64 string, exactly what you need for Broadlink codes.
You can test this code by sending the package using services:
{ "packet" : [ "CODE==" ]}
You can also use this great code to change repeats: https://dimagoltsman.github.io/Random-Broadlink-RM-Code-Generator/#. This is a great tool to creat RF codes also…
You can find many codes on theses sites, like I did. I was able to find ON and OFF commands for my old Sony Receiver, very useful!
https://irdb.globalcache.com/Home/Database
http://irdb.tk/find/
Hope it helps!