How to install 3rd Party Addons - Broadlink RM Pro

The sonoff stopped working before probably you hab the same mqtt user on the broadlink mqtt script and the tasmota, they will conflict with the broker.

Start again, persevere, openHAB is hard but it’s great!
When you have OH up and running and stable, it’s like a ticking clock
Play with it have fun. At the end of the day you can really break anything, you’ll just have to start again
Make back ups regularly especially on Raspi

Format your SD card, and get openhabian
Follow the steps, one by one, don’t rush. Understand each step.
Set up mosquitto, again set by step. Test and re-test.
Set up your sonoff make sure it’s working, record the sonoff mqtt user name
Stop OHbut not mosquito
Install the Broadlink script
Make sure you use a different user name than the sonoff
Test the script without OH
Test again
Test with the sonoff
Test again
Start OH

1 Like

Thanks! But I actually got it figured out. In order for the Broadlink to work, I had to install Exec Binding. For some reason, when I install that, it would automatically uninstall MQTT Binding, hence the sonoff stopped working. Not sure why that’s happening.

I will go ahead and do little bit of tests and see if i can make them both work together.

Good, have fun!!
With the rules you can do anything.
Of course they can work together, that’s what openHAB is for… :wink:

Then you are using the Blackbean script, broadlink-mqtt doesn’t need exec binding. I can’t help you with this one.

Yes because I was only able to find detailed instructions on BlackBean. Hence I switched over. If it doesn’t work, then I will use the broadlink-mqtt and try again.

please see above, its a bit old, but for me works like a charm
i have it for 1 year +
and i never seen any issues with it

What’s unclear or undetailed about broadlink-mqtt?

I suppose the way HA works for third-party addons is different from OpenHAB is quite a lot of ways. So I was looking for detailed instructions and there was a website which showed such. (Though it didn’t work). I will try Harmony Hub now if Broadlink doesn’t work.

The issue is neither of these scripts are openHAB third party add-ons. I don’t think they are HA add-ons either. Add-ons have to be purposely written as an add-on for either platform. What you are experiencing is not an add-on issue, it’s an integration with something not written as an add-on issue.

You can’t expect to be able to take a program written for an Android Phone and run it on an iPhone. The same is true for OH and HA. Add-ons must be written as add-ons in the first place which means the same programming language (these scripts are Python, OH is work in Java) and the add-on must follow a certain structure

If these were third party add-ons for OH, you would just need to download the jar file and drop it in the addons folder.

The harmony hub is supported via a binding. But don’t drop a jar anywhere, this binding is included, directly installable via paperui.

According to my opinion, the instructions for both, broadlink-mqtt and blackbeancontrol are quite detailed and clear.

These don’t cover openHAB, but this is not neccessary because both work with interfaces which are generally supported (mqtt, shell).

When you have the device-side working, just switch to the general binding explanation.

Alright it seems there is a confusion on my use of the word addon. While it’s not a addon in sense that works directly with OpenHAB, I am still calling it an add-on due to the fact it’s a python script that can be configured to run on OpenHAB.

Correct. Hence why I ordered the Harmony Hub since there already is a binding for it. Once it does arrive, I will give it a go and see how it is. I mean I currently prefer OpenHAB over HA for few reasons, but it’s a big learning curve from YAML to a close to Java programming. Hopefully I can figure it out as I go along.

It is very important to use the correct vocabulary when possible because certain words have very specific meanings in certain contexts. In the OH context (and really any software context) an add-on is a software module written explicitly to run as part of another program. Some programs call these plugins.

What you were looking at are called programs, apps, or scripts. They are completely independent.

But it doesn’t run on openHAB. It is completely independent of openHAB. They are Python scritps that can run along side of openHAB.

When one wires a school report using Word to type and Firefox to research that doesn’t mean that Firefox is an add-on to Word. They are completely separate. They just happen to be using the two together.

Same thing is happening here.

This is important to understand because it will help you understand where to look for help and when you have problems and it will help those you ask for help understand.

1 Like

@rlkoshak

Thanks for all the addon talk I have learned something there I also thought they were OH Addons

Do you know if there is anything in the pipelines for an official addon / binding or even a 3rd party trusted version

I would like too get one but don’t like the scripts ect I prefer stable official stuff

I don’t follow the PRs. You can always look for the WIP Issues in the openhab2-addons repo and browse around the IoT Marketplace periodically to see what is coming down the line.

Thanks Rich

Hi all,

I bought some Sonoff 12V battery powered sticky wall panel switches that fire up 433 MHz radio commands. The problem is that I need a 433 MHz receiver to get those signals.

Can I use the Broadlink RM Pro device that I have fully integrated with openhab (via Broadlink-mqtt) to achieve this?

The RM Pro has is a learning mode, but that is only for learning new codes. I am not sure if the learning function can be used to make the RM Pro device a receiver.
The point is that I need to use the physical switches to fire up the commands and then a receiver integrated with OH should decode these signals and trigger various events/rules in OH.

If there is a way to accomplish this, please advise!

Thanks,
Cristian

LE: I have just ordered a Sonoff RF bridge but it will take months until I get it… so my request is still on :slight_smile:

i was never able to get the RM to talk RF…
also i ordered and got the RF Bridge , it has a big advantage of flashing it…
just be patient and wait :slight_smile:

The RM Pro works fine on the RF side with the broadlink-mqtt package installed as a service.
It uses the same logic to learn and emit RF codes as for IR. I am using it successfully not only through openhab but also via an MQTT client app installed on my android phone.

Getting back to my challenge, I think there might be a way to turn the RM Pro into an RF receiver: by always keeping the device in learning mode. The steps I see are:

  • Publish the “auto” MQTT message in a generic topic such as broadlink/newcode (“auto” puts the RM Pro device in smart mode meaning it either learns the new code if that code is not already stored in a command text file by generating a new file, or simply replays the code if already present in the commands file structure)
  • Monitor the file system, and as soon as the <path_to_broadlink-mqtt_commands_dir>/broadlink/newcode file appears (corresponding to the broadlink/newcode MQTT topic where we previously published the “auto” message), read its contents and compare against the value we are expecting, then immediately delete the file
  • If the newly received code does match ours, then we can issue a script based command or publish a MQTT message that will be further processed by a predefined rule.

I need to figure out how to do the FS monitoring ideally from within openhab.

I DID!!! more details [here](http://If it is not working and you get the Input strings must be a multiple of 16 in length error again, try to duplicate it twice:) If it is not working and you get the Input strings must be a multiple of 16 in length error again, try to duplicate it twice:

bottom line, i have paste 5 times and it works!

1 Like