keithh666
(Keith Hull)
November 28, 2017, 12:29am
62
When I do it here…
it looks like this, no idea if it’s right or not as I don’t have LG equipment
MDAwMCAwMDZkIDAwMjYgMDAwMCAwMTU1IDAwYWEgMDAxNiAwMDE1IDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDE1IDAwMTYgMDAxNSAwMDE2IDAwMTQgMDAxNiAwMDE1IDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDQwIDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDQwIDAwMTYgMDA0MCAwMDE2IDAwNDAgMDAxNiAwMDQwIDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDE1IDAwMTYgMDA0MCAwMDE2IDAwNDAgMDAxNiAwMDE1IDAwMTYgMDA0MCAwMDE2IDAwMTUgMDAxNiAwMDQwIDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDE0IDAwMTYgMDAxNSAwMDE2IDAwNDAgMDAxNiAwMDE0IDAwMTYgMDA0MCAwMDE2IDA2MGIgMDE1NSAwMDU1IDAwMTYgMGU1OCAwMTU1IDAwNTUgMDAxNiAwMGFh
cy80rg
(Charles Middleton)
November 28, 2017, 10:52am
63
Thanks - what function is that code for?
keithh666
(Keith Hull)
November 28, 2017, 10:56am
64
Not sure I just picked a random one from the website you posted
ginkage
(Ivan Podogov)
December 3, 2017, 11:47am
65
If you are still stuck, try this script — it converts discrete codes like “0000 006d 0026 0000 …” to something that actually works with my LG TV and Broadlink.
Jeremy_Ong
(Jeremy Ong)
December 13, 2017, 12:20am
66
Hi,
I tried using that script but it is not recognized by the Broadlink.
Below is the discrete code for LG TV for eg, Power On.
0000006d00260000015500aa00160015001600150016004000160015001600150016001500160014001600150016004000160040001600150016004000160040001600400016004000160040001600150016001500160040001600150016001500160015001600400016004000160040001600400016001500160040001600400016004000160014001600150016060b0155005500160e5801550055001600aa
The result after running the script with the discrete codes is
260056000001269213121312133713121312131213111312133713371312133713371337133713371312131213371312131213121337133713371337131213371337133713111312130005370001264913000c620001264913920d05
Tried using the codes with Broadlink does not work. It is frustrating for me as I am just starting out using Home Assistant and linking my first device.
I have also tried using the Sure Universal Remote App and everytime I tried to learn the codes, each return is different. Is it just me?
Any recommendations will be helpful.
ginkage
(Ivan Podogov)
December 13, 2017, 12:41am
67
Now just use hex to base64 (e.g. http://tomeko.net/online_tools/hex_to_base64.php?lang=en1 ) to convert the output to the Broadlink code (e.g. JgBWAAABJpITEhMSEzcTEhMSExITERMSEzcTNxMSEzcTNxM3EzcTNxMSExITNxMSExITEhM3EzcTNxM3ExITNxM3EzcTERMSEwAFNwABJkkTAAxiAAEmSROSDQU).
ginkage
(Ivan Podogov)
December 13, 2017, 12:46am
68
BTW, for that python script I’ve added a couple lines:
import base64
after all other imports and
print
print base64.b64encode(packet)
at the very end of the script (after other prints), so that I could get the proper output immediately.
Hope that helps!
2 Likes
Jeremy_Ong
(Jeremy Ong)
December 13, 2017, 12:57am
69
Thanks for the super fast response. This gives me new hopes.
I see… So there is a 2nd step after converting the pronto code to the intermediate code and then to broadlink aware codes.
I have followed your steps to enhance the python code to include base64 conversion and the output seems legit. Will try out the new output to see whether it will work.
Thanks.
By the way, how about devices where you are not able to find any discrete codes in the Internet. How will you get the codes compatible for Broadlink use.
ginkage
(Ivan Podogov)
December 13, 2017, 9:53pm
70
You can use something “broadlink_cli --learn” from here to learn new codes.
It will also give you a result you’ll need to base64-encode.
For my LG TV I used the codes from this page and converted them using the pronto2broadlink script.
Jeremy_Ong
(Jeremy Ong)
December 14, 2017, 12:05am
71
Thanks for the information. I will try this out over the weekend. Its the only time that I can try.
owiebaclay
(Ruel Baclay)
January 11, 2018, 2:35am
72
Hi claudio,
would it be possible to get the other input codes of the samsung tv? especially the AV and component I’ve been searching around and couldn’t find it.
czingosz
(Czingosz)
January 18, 2018, 6:30pm
73
how can i use pronto2broadlink script
windows 10 + python 3.5
czingosz
(Czingosz)
January 29, 2018, 5:21pm
74
i use pronto2broadlink script and got error
File “pronto2broadlink.py”, line 48
print binascii.hexlify(packet)
^
SyntaxError: invalid syntax
xav38
(Xavier)
February 20, 2018, 8:03am
75
hello,
I’m trying to translate the RM Mini codes provided to that hex format (example of IR code):
2600500000012694141114111411131114111411143614351436153514361336153515351312141014361411153514351436141114111311141114361411131114111436143614351400053b0001274b14000d050000000000000000
How do I convert codes such as (HDMI 3): JgBGAJOUEDoRORE5ERQRFRAUERQRFBE5EDsQOhAVEBUPFg8WDxYPFhA6EBUPFg8WEBUROQ87EDoQFQ87EDoQOhA6EBUPFhAADQUAAA
to my format above ?
I tried Hexadecimal -> base64 string decoder but it does not work, any idea ?
IKROWNI
(James)
March 20, 2018, 3:51am
76
how do you get the codes from sure? Is there some way to export them after you have added your remotes?
No. As described above, you have to connect your Sure to your RM Mini and then send a comand from the App, while using the learn command service from Home Assistant.
hi, u can use anymote app for android, and u have 3 button for hdmi 1, 2 and 3. Learn button anymote to broadlink with custom button.
hi I was trying to add broad link to my hassio. somehow this scrip does’t show up on my hassio home screen.
switch 04:
- platform: broadlink
host: 10.0.1.4
mac: '34:EA:36:DC:C8:CC'
timeout: 1
switches:
tv:
friendly_name: 'HDMI 1'
command_on: 'JgBGAJOUEDoRORE5ERQRFRAUERQRFBE5EDsQOhAVEBUPFg8WDxYPFhA6EBUPFg8WEBUROQ87EDoQFQ87EDoQOhA6EBUPFhAADQUAAA=='
friendly_name: 'TV Input'
command_on: 'JgBGAJSQEDcRNxI0Ew8QEhESEhERDxM0ETYTNhEPEw8QEhIREg8TNBA3ERETNBM0EBIREhIREQ8TDxE2ExERDxM0EDcRNxIADQUAAA=='
keithh666
(Keith Hull)
May 25, 2018, 1:25am
80
You may need a command_off state for each command_on. I just copy the command_on to the command_off
command_on: 'JgB0AAABJpISFBETERQRFA8VEhISExITEzYSNxU0ETkUNhE3EzcSNxQ2EjYTExISEhQRFA0WEjcRFRETETYUNw48EjgROBETFQADBwcAAgUAASVJEgAMPgABJUoSAAw+/AciShEADD8AASlGFgAMOgABJUoSAA0FAAAAAA=='
command_off: 'JgB0AAABJpISFBETERQRFA8VEhISExITEzYSNxU0ETkUNhE3EzcSNxQ2EjYTExISEhQRFA0WEjcRFRETETYUNw48EjgROBETFQADBwcAAgUAASVJEgAMPgABJUoSAAw+/AciShEADD8AASlGFgAMOgABJUoSAA0FAAAAAA=='
Still not working, it is mater becasue i have RM pro+? may be the command works only on Mini
switch 03:
- platform: broadlink
host: 10.0.1.28
mac: '34:EA:32:CC:C8:0D'
timeout: 15
switches:
tv:
friendly_name: "Samsung TV Power"
command_on: 'JgBGAJKVDzsQOhA6EBUQFRAVERQRFBE5EDoSOBEUERQRFBAVEBURFBE5ERQRFBAVERQRFBEUETkRFBE5ETkRORE5EToQOg8ADQUAAA=='
command_off: 'JgBGAJKVDzsQOhA6EBUQFRAVERQRFBE5EDoSOBEUERQRFBAVEBURFBE5ERQRFBAVERQRFBEUETkRFBE5ETkRORE5EToQOg8ADQUAAA=='