Broadlink IR Code Conversion

Hi All

I am trying to get a discrete IR code converted to work in HA with the Broadlink Mini. for a 2012 model Sony Bravia

I have successfully done the IR learn command within states for power on just from using the remote learn feature. This looks like this.

command_on: 'JgCMAE8TKBMUEygTFBQoExQTFRMnFBUSFBMVExQAA1BQEygTFBMoExQTKBMVExUSKRIVExQTFBMUAANQUBMoExUSKRIVEygTFBMUEykTFBMUExQUFAADUE8TKBMUFCcUFBMpEhQTFRMnFBQTFBQUExQAA1BPEykTFBMoExUSKBMUFBQTKBMUFBQTFBMVAA0FAAAAAAAAAAAAAAAA'

I have been to remotecentral.com for the discrete codes what seem to be compatible codes for Pronto Philips Sub category Sony TV. The code is
0000 0067 0000 000d 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03de

or

0000 0067 0000 000d 0060 0018 0018 0018 0018 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 0410

Which converts using the tomeko hex converter to
command_off: AAAAaAAAAA0AYAAYABgAGAAYABgAGAAYADAAGAAwABgAMAAYABgAGAAwABgAGAAYABgAGAAYABgAGAQI'

Neither of the two pronto codes that i try when converted switch my TV off. Not sure if they have converted correctly.

Could anyone point me in the right direction or better still give me a working discrete code for HA / Broadlink

Thanks

I was having problems using the built in learn feature in HA, it wasn’t super accurate, and it seem to crash after every learn. But then I stumbled across this by @Tomer_Klein, and it has made my life so much easier. Have learnt all the codes for my old TV, my Air-Con, and one button on the kodi remote in no time at all

I have had no problems with the learn service within ha thus far, with other IR codes I’m using.

Just can’t get the power off code translated from the discrete codes. And I can’t use my remote code as it’s single button for on/off so in turn the states of commands I want to use won’t know whether they’re on or off.

I don’t think you can convert pronto codes straight to B64 like that. My IR codes start ‘Jg’.
This post may help you convert it to a Broadlink compatible code.

I use a program called irscurtinizer, it works well converting pronto codes
0000 0067 0000 000d 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03de
converted to
irsend.sendSony(0x0000000000000F50U, 12U);
But I don’t know if you can use the sony ir codes

Figured out it can output broadlink .py files too:
bytearray.fromhex(‘491224122412241224121212241212122412121212121212120002ED’),

Hope this helps

Hey,
I just make HA learn the off command by pressing the power button a second time.
For second time I mean:
1- press the power button to teach the turn_on command.
2 set up the switch.yaml config file for the on command.
3- press the power button again to teach the turn off_command.
4- set up the switch.yaml config file for the off command

I don’t know if this help. I’m using a broadlink mini 3 and a 2009 sony bravia tv.

Manage to work it which will probably make life easier for a lot of people using the Broadlink device.

  1. Download ‘Sure universal tv remote’ iOS/Android
  2. Find your device from the remote list, it then connect to your Broadlink over WiFi.
  3. It lists various remotes to test before accepting.
    Find the one that works for you.
  4. Do learn command within HA
  5. Press the required button on the sure app

It uses discrete codes so power on off are separate strings. Also useful for choosing hdmi sources etc etc.

Need to look into it more as I would also like to set a volume level - not sure if possible on my sony receiver that is only used for the pre out to my dedicated speakers amp - hence wanting to set a predefined level (don’t want to upset the neighbours). Think I can do it on my onkyo using IP commands.

Ha will then put the code in the states.

Happy days it works.

3 Likes

Hi!

I tried the SURE app on iOS but the power buttons are greyed out…

Any idea why?
/Johan

Just scroll through the available remotes you have chosen. Left to right, some have the power buttons some don’t.