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

Did you solved it?

It works for me…
Did it work for you with the old binding? Do you have some error stacktrace?

I just compiled it again with Java 8 instead of Java 9, try this one: https://github.com/berni2288/openhab2-addons/releases/tag/2.5.0-java8

Unfortunately that’s the first time I touched the code of a Openhab binding, if this does not work for you I don’t know why.

I got no error come out with this one or previous work, but no response after, no IR send out from RM2, on RM2, red led should on when Tx IR, but no.

Albeit I am still running on 2.5M3 and everything works for me (so i’m not switching now), I just wanted to thank you for contributing. It feels like this binding really changes the use of many of our homes.

Hello,

how to choose the update for M3 or M4? I only was able to update to latest milestone and do not choose tM3 or m4

Unfortunately binding still doesn’t work for my setup 2.5 M6, I can’t even see the binding on the paper UI list.

Another colleague told me that it works for M4 versions, but I’m not sure how to choose or jump to this version

Hi everyone, I’m new around here and new to openhab too, but amazed of what you could realize with it.
Last year i bought a RM mini 3 always used with his app, worked like a charm, now that I discovered OH I’d like to integrate with it, but I’m facing some problem:
I installed the binding, and followed the steps to get it working, but I got stucked in the channel linking:
no channel is associated with the broadlink item:
brl1

I’m using Paper UI and OH 2.4 stable, these are my config files:

broadlink.items:
String AIR “Air” { channel=“broadlink:rm3:brdlk3:command” }

default.sitemap:
sitemap default label=“Test sitemaps” {
Switch item=AIR label=“Power” mappings=[AIR_ON=“On”,AIR_OFF=“Off”]
}

transform/broadlink.map:
AIR_ON=26005002100C100D0F0D0F0E0F0D0F00033973371029100D0F0D100D0F2A0F0D100D0F0D100D0F2A0F0D0F2A0F2A0F0D10291029102910290F2A0F0E0F0D0F2A0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F0E0F29100D0F2A0F0D100D0F0D102910290F0E0F0D0F0E0F0D0F2A0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F2A0F2A0F2A0F0D100D0F2A0F2A0F2A0F00048E73380F2A0F0D0F0D100D0F2A0F0D100D0F0D100D0F2A0F0D0F2A0F2A0F0D102910291029102910290F0E0F0D0F2A0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F2A0F0D100D0F0D100D0F2A0F0D100D0F0D100D0F2A0F29100D0F2A0F2A0F0D100D0F0D10290F0E0F0D0F0E0F0D0F0D100D0F2A0F0D10291029100D0F0D0F00048E733810290F0E0F0D0F0E0F29100D0F0D100D0F0D1029100D0F2A0F2A0F0D0F2A0F2A0F2A0F2A0F2A0F0D100D0F2A0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F0E0F0D0F0D100D0F2A0F0D100D0F2A0F0D100D0F2A0F0D0F0D100D0F0D100D0F2A0F2A0F0D100D0F0D0F0E0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D1029100D0F2A0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F0D100D0F2A0F2A0F0D100D0F0D100D0F0D0F0E0F0D0F0E0F0D0F0D10291029100D0F0D100D0F0D100D0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D10290F0E0F0D0F0E0F0D0F0D10291029100D0F0D100D0F0D100D0F0D0F0E0F29100D0F0D100D0F0D100D0F0D100D0F0D100D0F2A0F0D0F0E0F0D0F0D100D0F2A0F000D050000000000000000
AIR_OFF=26005002100C100D0F0D100D0F0D1000033873380F2A0F0D0F0E0F0D0F2A0F0D100D0F0D100D0F2A0F0D102910290F0E0F291029102910291029100D0F0D0F2A0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F2A0F0D0F2A0F0D100D0F0D10291029100D0F0D100D0F0D0F2A0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D10290F2A0F2A0F0D100D0F2A0F2A0F2A0F00048E73380F2A0F0D100D0F0D0F2A0F0D100D0F0D100D0F2A0F0D102910290F0E0F291029102910291029100D0F0D10290F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D10290F0E0F0D0F0E0F0D0F2A0F0D10291029100D0F2A0F2A0F0D0F2A0F2A0F0D100D0F0D1029100D0F0D0F0E0F0D0F2A0F2A0F2A0F0D10291029100D0F0D0F00048E73380F2A0F0E0F0D0F0E0F29100D0F0D100D0F0D1029100D0F2A0F29100D0F2A0F2A0F2A0F2A0F2A0F0D0F0E0F29100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D1029100D0F0D0F2A0F0D100D0F0D100D0F0D10291029100D0F0D100D0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F2A0F0D10290F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F0D0F0E0F0D0F0D100D0F0D10291029100D0F0D100D0F0D0F0E0F0D0F0E0F0D0F0D100D0F2A0F2A0F0D100D0F0D100D0F0D0F0E0F0D0F0D100D0F0D100D0F0D100D0F0D100D0F0D100D0F2A0F0D0F0E0F0D0F0D100D0F2A0F2A0F0D100D0F0D100D0F0D0F0E0F0D0F2A0F0D100D0F0D100D0F0D100D0F0D100D0F2A0F0D0F0E0F0D0F0D100D0F0D102910000D050000000000000000

I really don’t understand why it doesn’t work. Any help will be appreciated.

Hi @BundleBee - did you forget to post your rule file or is this the bit you are missing?

Hi @Andrew_Pawelski, I don’t have any rule file, it wasn’t mentioned in the installation post :thinking:

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