Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong format for Broadlink RM Mini 3, controlled via broadlink-mqtt #1

Open
FergusGeorge opened this issue Jul 12, 2020 · 0 comments
Open

Comments

@FergusGeorge
Copy link

In case anyone else runs into the same scenario I did...

I lifted my IR codes in Pronto format from the ancient 'Pronto Edit Pro 3' application I have on an old Windows machine, and used this python script to convert them to a format that would work on a Broadlink RM3 Mini controlled via broad link-mqtt (https://github.com/eschava/broadlink-mqtt).

Using the discrete 'ON' command for my Samsung TV, I observed the following:

Input:
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0680
Output:
JgBGAJSUEjcSNxI3EhISEhISEhISEhI3EjcSNxISEhISEhISEhISEhISEhISNxI3EhISEhI3EjcSNxI3EhISEhI3EjcSEhIABZwNBQ==
The output didn't look like any of the commands I'd learned manually on my Broadlink device, and they weren't accepted by my Broadlink device.

Some googling resulted in me finding someone using a similar script, which included an alternative print command at the bottom of the script:

print binascii.hexlify(packet)
Replacing the print command with the above yielded:

New Output: 260046009494123712371237121212121212121212121237123712371212121212121212121212121212121212371237121212121237123712371237121212121237123712121200059c0d05

This worked!

All of the above may be blindingly obvious to readers who are more familiar with Python than I am, but I thought I'd share it for those who may be as lost as I was. It's also a trivial change for anyone to amend the script locally if they need to make this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant