Broadlink binding for RMx, A1, SPx and MP. Any interest?

OK, now everything is working as expected, here’s what I did:

first of all I edited the “$OPENHAB_CONF/services/addons.cfg” enabling the expert mode:

package = minimal   --->   package = expert

in order to have more control over OH, and other things installed like map transformation binding.
Then I edited the broadlink.item file:

String AIR "Air" { channel="broadlink:rm3:brdlk3:command" }
Switch Air_Proxy "Air" <Power>

After that the default.sitemap:

sitemap default label="Test" {
        Switch item=Air_Proxy label="Power"
}

Finally the broadlink.rules:

rule "AIR CONTROL"
    when
        Item AIR_Proxy received command
    then 
        switch(receivedCommand) {
        case ON: {
       AIR.sendCommand("AIR_ON")       
         }
        case OFF: {
         AIR.sendCommand("AIR_OFF") 
        }
    }
    end

The map file hasn’t been touched,
Thank you all for the support, hope this will be useful for other users.

1 Like

on 2.5.0.RC1 the org.openhab.binding.broadlink-2.4.0-BETA-17.jar do not work

same for me

@ciscomike did you figure out something?

@berni, i have tried your fork anymore error but nothing is happening

did someone/@themillhousegroup succeed to make the binnding on 2.5.0.RC1?

I finally make it work on OH 2.5 RC1 with @berni modified binding,
but I only make it work with RM3 (RM2 Pro fail to load transform file, Original Warn:Failed to get MAP transformation service for thing Broadlink RM2 [192.168.x.x]; is bundle installed?), I can’t make it work with RM2 Pro,
I found it have to work with thing file as you can’t add it on PaperUI,
that is not issue, but once you add it by thing file, there looks like some missing field,

Original Binding for 2.4
broadlink1

Modify Binding for 2.5
broadlink2

I make few test and found with java 9 version, when click in the paper UI, RM2 don’t have Channels and command
java 8 have Channels and command but have Transform file missing warning
RM 3 is normal and run on Java8 and Java9 version

Thing file example

Thing broadlink:rm2:aa-bb-cc-dd-ee-ff "Broadlink RM2 [192.168.0.1]" @ "CompuR" [ipAddress="192.168.0.1", mapFilename="broadlink.map", authorizationKey="097628343fe99e23765c1513accf8b02", port=80, iv="562e17996d093d28ddb3ba695a2e6f58", pollingInterval=30.0, mac="aa:bb:cc:dd:ee:ff"]

Hello!
Yesterday i got an update from OH2.4 stable to OH2.5 stable
I’m very happy but…
Broadlink binding stops working.
i got this message
Failed installing ‘openhab-binding-broadlink’
Tried all release from berni but no success. Same message :frowning:
Anyone can help me?

FYI,
I tried your way but without luck
with the .jar file to addons folder, I made a .thing file

Thing broadlink:rm2:34-ea-xx-58-xx-21 “Broadlink RM2 [192.168.0.142]” [ipAddress=“192.168.0.142”, mapFilename=“broadlink.map”, authorizationKey=“xxx”, port=80, iv=“xxx”, pollingInterval=30.0, mac=“34:ea:xx:58:xx:21”]

The broadling thing went Online but that’s it, I couldn’t do more, I tried to add different things as well without luck.
I think that it needs a new implementation matching the 2.5x version.

@ciscomike r e u using RM2 or RM3, as I said, I have no luck to RM2, only RM3 currently is worrking

Yes, I’m using RM2

In this case, either you use workaround (python) or wait for expert fix this binding

@themillhousegroup

we need an expert here :slight_smile:
john if you can please take a look

3 Likes

Darn it - this binding is so awesome It has become more core to me than upgrading to 2.5 master - wish I could though as I really wanna use this binding in concert with Alexa v3 - if theres anything I can do to help/test please let me know

1 Like

I also hope this binding gets upgraded for OpenHab 2.5. It’s the only binding left that holds me off from upgrading. :confused:

1 Like

yep for me also …
half of my house run on IR no way to get stuck on it

here also… I already upgraded to 2.5 release version and now stuck

used a very old jar version from cato until now :frowning:

Hi all,
please try this patched version and let me know if it’s working for you too.
https://casa.profeta.in/f/0cd980aea5d748cf9505/?dl=1

Please before installing be sure to remove all the older versions of the broadlink binding (after upgrade to OH 2.5 i had to remove it through karaf consolle, otherwise the system seems to load both the version at boot).
If it’s working for you too i will publish here the patched handler so you can put it on GitHub (i’m not very familiar with this tools)

:slight_smile:

7 Likes

Skumpic your version works fine on my OH 2.5 with RM2 pro.
Thx.

Hello, i tried your binding but
i receive:
[INFO ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Constructed
[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-broadlink’

i tried console bundle:uninstall 261 …
261 x Active x 80 x 2.4.0.201912221924 x Broadlink Binding

and after restart… it appear again!
it seems that loads 2.4 version and not 2.5…

somebody can help me?

Do you have a jar in your addons directory? In that case you need to remove the file, uninstalling via console won’t help.

1 Like

Yeee tried 2 times and now works.
I had to remove from addons.cfg broadlink binding string. (i dont’t use paperui, only text files)
now the binding is loaded from jar without configuration file.
loaded version is 2.4.0.201912221924 x Broadlink Binding
but works very good.
Will be the binding official in the future?
Thank you

1 Like

you could not help me. I plug in an sp3 outlet. but when the outlet is turned on, it puts the switch in the off state but is on.

Working great on my setup 2.5M6 with auto-discover RM2+
Thank you @Skumpic