Converting Pronto codes to Broadlink codes to paste into the json file

I have found some discrete/eet power codes that don’t exist in my RC for a soundbar on the Remotecentral forum, in Pronto ‘Hex’ format.

I’d like to get them into the Broadlink format (Jgxxxxxx) so I can paste them into an entry in the file to use in HA.

The ‘tools’ I’ve tried using so far are;
http://tomeko.net/online_tools/hex_to_base64.php?lang=en
followed by;

But that combo’ doesn’t produce a Jg string and the one it does, doesn’t fire anything out of the Broadlink.

Can anyone tell me how to get from the Pronto code:
0000 006D 0022 0006 014D 00A6 0014 0014 0014 0014 0014 0014 0014 003E 0014 003E 0014 003E 0014 003E 0014 0014 0014 003E 0014 003E 0014 003E 0014 0014 0014 0014 0014 0014 0014 0014 0014 003E 0014 0014 0014 003E 0014 003E 0014 003E 0014 003E 0014 003E 0014 003E 0014 0014 0014 003E 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 003E 0014 05B6 014D 0053 0014 0E52 014D 0053 0014 0E52 014D 0053 0014 0E52

To Broadlink Jgxxxxxx format?

I’ve used Python and irgen to do this.

irgen -i pronto -d 0000 006D 0022 0006 014D 00A6 0014 0014 0014 0014 0014 0014 0014 003E 0014 003E 0014 003E 0014 003E 0014 0014 0014 003E 0014 003E 0014 003E 0014 0014 0014 0014 0014 0014 0014 0014 0014 003E 0014 0014 0014 003E 0014 003E 0014 003E 0014 003E 0014 003E 0014 003E 0014 0014 0014 003E 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 0014 003E 0014 05B6 014D 0053 0014 0E52 014D 0053 0014 0E52 014D 0053 0014 0E52 -o broadlink_base64

JgBgAAABII8RERERERERNhE2ETYRNhERETYRNhE2ERERERERERERNhERETYRNhE2ETYRNhE2ERERNhERERERERERERERERE2EQAE7gABIEgRAAxdAAEgSBEADF0AASBIEQAMXQAAAAAAAAAA

1 Like

Brilliant, works first time and I now have a simple python package to run - thanks!!

While I’m here, does anyone have any good resources to uncover discrete codes.

I have a Steetek HDMI Matrix that’s the only thing left in my setup without. I’m sure it uses a simple protocol as the remote looks like an afterthought, so hopefully has discrete on/off hidden in there.

Try www.remotecentral.com

My issue is that the SWITCH yaml configuration for the broadlink platform has been deprecated, and it is stated in the docs that we should not edit the broadlink_remote_ec0bae9905c5_codes file in .storage directory. What is the proper way to enter discrete codes into the configuration?

I’ve edited the file directly a few times. Just keep an eye on layout and copying the format that is there.

1 Like