Im having issues with on of my devices, it requires me to press power button twice sending same code to turn off the device. Is there any way of doing this? Thanks
Edit: Nevermind, managed to solve it using a script.
Im having issues with on of my devices, it requires me to press power button twice sending same code to turn off the device. Is there any way of doing this? Thanks
Edit: Nevermind, managed to solve it using a script.
Hi all,
Got my Broadlink RM3 working with my LG TV.
The LG TV codes posted in the original Broadlink component docs work.
However, when I convert a discrete code found online - here, for example: http://www.remotecentral.com/cgi-bin/mboard/rc-discrete/thread.cgi?7244 - then convert to base64 using the link in the component docs - all my outputted codes start with AAA etc, rather than the J shown in the docs.
Needless to say, these new ones (starting AA etc) dont work…
Anyone else know how to get / convert these discrete codes?
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
Thanks - what function is that code for?
Not sure I just picked a random one from the website you posted
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.
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.
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).
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!
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.
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.
Thanks for the information. I will try this out over the weekend. Its the only time that I can try.
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.
how can i use pronto2broadlink script
windows 10 + python 3.5
i use pronto2broadlink script and got error
File “pronto2broadlink.py”, line 48
print binascii.hexlify(packet)
^
SyntaxError: invalid syntax
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 ?
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=='