UPD: My bad, I download not RAW jar.
Hi,
Do not use bundle:install. Put the jar file in the right directory instead.
Updated the alpha and beta versions of the broadlink binding.
@ricardol I have finished the clean-up and pushed it to the PR. There is an issue with the openhab CI, you used an incorrect format for your commit messages. See [Broadlink] Initial contribution by AntonJansen · Pull Request #16273 · openhab/openhab-addons · GitHub can you fix this in the broadlink-binding-4.2.x branch?
See Changing git commit message after push (given that no one pulled from remote) - Stack Overflow how you can change selected commit messages.
Hello Friends,
Until yesterday I used the unofficial Broadlink binding for OpenHAB with my RM4 Pro and it worked great for sending RF commands.
However, after I updated my OpenHAB docker container to version 4.1.2, I now canât send RF commands and the Thing I created for the RM4 Pro is showing an ERROR: HANDLER message.
Can this Broadlink Binding work with the RM4 Pro? (I didnât see the RM4 Pro listed in the documentation as a supported device, and I cannot find it when I run a manual binding scan).
Hope someone can help
Yes, it can
Hi @AntonJansen , thank you for your reply
After I created the RM4 Pro Thing, I only see one IR related learning channel? Is that how it should be also for the RM4 Pro?
From the documentation I got the impressions there should also be a separate Learn RF Code channel, but I donât have that.
For IR find the Remote Learning Control channel and create an Item for it, for RF use the Remote RF Learning Control channel instead (Only needed the first time).
I also created a string Item for codes learning (as instructed in the documentation), but there is no option to âclickâ the NULL square to put the RM4 Pro into learning mode, and no popup menu appears.
Click the item, and click the rectangular area that is marked NULL
In the pop-up menu that appears, select Delete IR command for IR or Delete RF command for RF
Am I missing something? Or maybe the documentation wasnât updated to new developments of the binding?
@AntonJansen Is it mandatory for the Broadlink binding to work that I also connect my RM4 Pro to the official Broadlink mobile app?
Last time I used the official Broadlink app with my RM4 Pro was around 3 years ago.
I think something already went wrong when creating the thing. In the official broadlink app you need to âunlockâ the device for the binding to work. The scan should then be able to pick up your device. Could you share a screenshot of the thing tab of your âBroadlink RM 4 Proâ thing? In particular, can you expand the âThing propertiesâ?
I tried following your suggestions.
The Thing I created earlier did not have the option to show the Thing Properties.
As such I followed the next steps:
- I deleted the Thing.
- I then added the RM4 Pro into the official Broadlink app for iOS.
- In the Broadlink app I disabled the Lock Device toggle.
- The app asked me if I want to upgrade the device firmware, but I pressed ânoâ.
- I tried to re-add the Thing to OpenHAB, but the scan function still could not find it.
Hmmm, that is strange the RM4 Pro I have just shows up. It uses firmware version 62093.
My RM4 Pro is currently on firmware version: 52074.
The update version available to install is: 52079.
Should I update to the latest version?
[Edit] I updated the device to firmware 52079, but the bindingâs scan still doesnât find it.
Hi @AntonJansen,
I hoping you could help me, I installed the above JAR file and was able to add my RM4 pro as a thing successfully.
I tried to follow the learning instructions, but when I get to the item page an try clicking on the null, no menu was available when clicking the NULL.
If I try the command item, the Null is can be clicked and menu comes up with only âcancelâ option.
I am running Openhab 4.1.2 as docker image on synology NAS.
Do you have any suggestions?
Hi @rharman , can you please explain what you mean by installing âthe above JAR fileâ?
Is the pluginâs JAR file not installed automatically when installing the binding from the add-on store?
Hi,
By install, I mean I downloaded the jar from the link at the top of this thread and place it in the add-on folder.
I donât think this add-on is available for me to install as I am running openhab 4.1.2.
Thanks
Thank you, @rharman
This clears up a few things.
@AntonJansen I accidentally tried to add the RM4 Pro as a thing using the Broadlink Binding plugin from the add-on store. It might be helpful for future users to clearly write in your documentation that we need to manually add the JAR file into the addons folder, and not install the official Broadlink binding currently available on the add-on store.
So I deleted the binding from the add-on store, and I manually added your JAR file to the addons folder.
Now that I have the correct binding file, how do I add the Thing?
My OpenHAB system is not showing me my RM4 device as available to add, and Iâm not sure where I should look for it?
@mjeshurun this explains some things :-).
To add a thing do the following:
- Settings â Things
- Press + symbol in the lower right of the screen
- Click on the âbroadlink bindingâ
- Click on scan
- Click on the device to add
If not detected, manually add the device by clickling on the âBroadlink RM4 Proâ.
- Add the IP address in the network address field
- Add the MAC address in the mac address field
Click on âCreate Thingâ
Thank you.
Thatâs what I thought I should do, but the Broadlink Binding is not showing up in the list of available bindings â even though I copied the JAR file into the docker appdata/openhab/addons folder and restarted OpenHAB.
@AntonJansen do you, by chance, have an idea why OpenHAB fails to start/load the binding?
Some thoughts:
- Make sure you have downloaded the raw version of the jar file. Check this by opening the jar file as a zip file. If this does not work, you do not have the right jar file.
- Check if you are using the right location as described here.
- Check if the jar file has the right permissions for openhab to read the file
- Turn on logging for âorg.openhab.binding.broadlinkâ and see what goes wrong.
Thank you for the detailed steps
-
I downloaded the jar file from shown on your OP Resources links on this page.
I checked and am able to rename the .jar file to .zip and open the folder. -
I copied the jar file into the same addons folder the old broadlink binding jar file was located. For me itâs /mnt/user/appdata/openhab/addons
-
which ownership/permissions does openhab need to read the file?
Currently the .jar file has the following:
Owner: UNKNOWN
Permissions: -rwxrwxrwx -
can you please explain how I can turn on logging for âorg.openhab.binding.broadlinkâ?