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

did you put broadlink.map in broadlink thing config?
did you try restart?

I inserted the broadlink device manually through the paper UI interface, my items folder is empty, and yes I restarted OH.

Looking a bit more at this…pretty sure you cant send a switch command to a string item

Also have you installed the MAP transformation?

Create a proxy item for your switch

sitemap default label="Test sitemaps" {
      Switch item=AIR_Proxy label="Power"
}

Then adding a rule like this:

 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

Case statement a bit of overkill for two conditions but I am predicting you may be doing more than on or off at some stage.

brl2
This is the situation, after editing the sitemap and adding the rule, nothing changed.
Seems like the sitemap is ignored, as only if i change the item file, for example the name from “Air” to “Test”, changes are done.

Can you repost your files?

Did you also using OH 2.5 M6-1? I got no error come out with java8 or java9, but no response after issue command, no IR send out from RM2, on RM2, red led should on when Tx IR, but no LED blink

broadlink.items:

    String AIR "Air" { channel="broadlink:rm3:brdlk3:command" }

default.sitemap:

sitemap default label="My home automation" {
        Switch item=AIR_Proxy label="Power"
}

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

I’m using OH 2.4 stable

Where is your proxy item?

you are right, I miss that part as well.

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