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

Hey there. Part 1 (because can send only one picture at a time)
Running Openhab on a Rp2
reading and controlling through openhab my Vera edge to control zwave and 433 Mhz units
Have 3 broadlinks A1 Rm2 and RM3
Managed to get A1 reading in Openhab panel.
But strugling with the RM2 ( works perfect on my phone with E controll)
Cato’s binding works perfect, have all 3 broadlinks online.
reading also temperature from rm2, and A1 is working perfect.

Part2
But till now not managed to send command to RM2 in openhab panel
Is this the correct way to set it up

part 3
see also broadlink map which is in the openhab-config/transform folder


reading the commands with Rm-bridge works for me (after a long strugle)
strugling allready for days with the rm2, but can’t see what is wrong
Any help is much appreciated
Jack

Hello Community!
I am using RM2 and SP3 (the one with power measurement feature) with OH2.1 and Beta2 Broadlink binding.
Thing and items are added and visible in PaperUI. Items config:

> Number ROOM_HALL_TEMPERATURE <temperature> (TEMPERATURES) {channel="broadlink:rm2:34-EA-xx-xx-xx-xx:temperature"}
> String RMPRO_COMMAND <light> {channel="broadlink:rm2:34-EA-xx-xx-xx-xx:command"}
> Switch ROOM_HALL_HEATER_SWITCH <switch> {channel="broadlink:sp3:34-EA-xx-xx-xx-xx:powerOn", autoupdate="false"}
> Number ROOM_HALL_HEATER_POWER {channel="broadlink:sp3:34-EA-xx-xx-xx-xx:powerConsumption"}

I have 3 issues:

Issue 1: RM2 Temperature is changing randomly sometimes, specifically after receiving command
Sometimes RM2 temperature is changing to unrealistic value (i.e. -76 or +128). This may happen without any visible reason but always reproduced after sending any command

2017-10-06 22:44:17.158 [ItemCommandEvent          ] - Item 'RMPRO_COMMAND' received command ROOM_BEDROOM_LIGHT_ON
2017-10-06 22:44:18.179 [ItemStateChangedEvent     ] - ROOM_HALL_TEMPERATURE changed from 22.200000762939453 to -76.0999984741211

Issue 2: Power consumption values of SP3s are never read
Thing shows Power Consumption channel, appropriate item is added but never receives any value. Log shows no errors, so it looks like this feature is not implemented

Issue 3: PowerOn is reset to Off on sitemap
SP3 switch is added to the sitemap. It can be switched off and on, but after some time or page refresh it’s display is reset to Off, but switch actually remains on. Looks like it’s value is always polled as Off

Switch item=ROOM_HALL_HEATER_SWITCH label="SP3"

I will be glad to help with testing or try to fix these issues myself if I get access to the sources - please PM me.

hey guys, how to make the broadlink compatiable to homekit siri?
My AC is recognized ON/OFF as 2 seperated ir code, how can I let siri to turn on or off the AC with one single voice(or one singe icon in ios home app)? please help

With a rule. Make a switch for it in OH and with a rule send the ir codes if status changes to ON or OFF

In order to make it show up in homekit properly have a look at this Other homekit types through red-node

Not sure AC is a type in homekit (don’t know them by hart) but you could map it to a fan for example.

1 Like

Hello Cato,

You are a real genius. Now I can control all my devices using RM3 Mini and RM Pro. It is working like a magic.
But it is only working in Basic UI only. It is not working in HABPanel. Is there any way to do so. And I also interested to know about IFTTT integration.

Thanks and Best Regards,

shibabrata-sarkar

I have it working by just adding an item in my .items file and also in the broadlink.map file just like Cato showed in his example.

Map File Example:
LR_TV_HDMI=260050000001269214111312123712121312131212121312123713361312123713361235163513361312133613361411131212121336133614361311131212371336133613121212130005210001264a12000d050000000000000000

Item File Example:
String LR_TV_HDMI “LR_TV_HDMI” { channel=“broadlink:rm2:34-ea-34-cc-8c-a7:command” }

In Habpanel, add a “Button”, since this is my Living Room TV HDMI selection, I have shortened my naming to LRTV HDMI input. My button settings are:

Name= LRTV HDMI Input
Action type= Send a fixed command to an item
openHAB item= LR_TV_HDMI
Command value= LR_TV_HDMI

This works pretty good for all of my IR and RF items.

hi all,

I am new to OH and I am still in the “trial and error” phase. Playing around now for 2 weeks … my ultimate goal is to automate my shutters, but still need to figure out how OH works.

So far, I was able to integrate the Broadlink RM2 and to switch a light on off via RF. For me, all works perfectly with just one item (one light etc.). So far I was not able to add multiple entries in the broadlink.map file as I still haven’t understood the relation between the mapping of sitemap and map. I renamed multiple times the mapping information in the sitemap file and the broadlink.map file. It looks like it works just with “ON” and “OFF”, anything else is not working.

Here is my current working config with one light:
openhabian@openHABianPi:/etc/openhab2$ more items/default.items
String LichtWZ1 “Licht WZ1” { channel=“broadlink:rm2:34-ea-34-b5-13-76:command” }

openhabian@openHABianPi:/etc/openhab2$ more sitemaps/default.sitemap
Switch item=LichtWZ label=“Licht WZ” mappings=[L1WZON=“ON”, L1WZOFF=“OFF”]

openhabian@openHABianPi:/etc/openhab2$ more transform/broadlink.map
ON = b20634000b210b210a210a210b210b210a210a210b210b210b21200c0b210a210b211f0c0b21200c0a211f0c0b210b210a211f0c0b00014700000000
OFF = b2000c030a200a200a200a200a200a200a200a200a21092109211e0c0a200a200a201f0b0a201f0b0a201f0c09211f0b0a200a200a0001460a200a200a200a200a200a200a200a200a200a200a201f0c09200b2009211e0c0a201f0b0a201f0b0
a201f0c09210a200a00014609210a1f0a210a200a200a200a200a200a200a200a201f0b0a200a200a20200b0a1f200b0a201f0b0a201f0b0a200a200a0001460a200a200a200a200a200a200a210a2009210a200a201f0b0a200a200a201f0b0a201f0c
09211e0c0a201f0b0a200a200a0001460a200a200a200a200a200a200a200a2109200a2109211f0b09210a200a201f0b0a201f0b0a201f0c09211f0b0a200a200a0001460a200a200a200a200a200a200a200a200a200a200a201f0c0921092109211f0
b0a201f0b0a201f0c09211e0c0a2009210a0001460a200a200a200a2009210a200a200a200a200a200a201f0b0a200a200a211f0b0a201f0b0a201f0b0a201f0b0a2109210900014709210921092109210921092109210a20092109210a201f0b0a200a
2109201f0c09201f0c0a201f0b0a201f0b0a200a200a0001460a200a2109200a2109200a21092109210a20092109211f0b0a200a200a201f0b0a201f0c09211e0c0a201f0b0a200a200a0001460a2109200a200a2109200a200a200a2109200a2109211
f0b0a20092109211f0b0a201f0b0a211e0c09211e0c0a200a200a0001460a200a200a200a200a200a200a2109200a200a200a201f0c092109210a201f0b0a201f0b0a201f0b0a201f0c09210a20090001470a200a200a2009210a200a200a200a200a20
0a200a201f0b0a200a2109211f0b0a201f0b0a201f0b0a201f0c092109210900014709200a21092109200a2109210a200a2009210a2009211f0b0a200a200a201f0b0a201f0b0a211e0c1e0c1f0b1f0b1f0c090001460a200a200a200a200a200a200a2
00a2109200a210920200b0a201f0b0a201f0b0a201f0c0920200b1f0b1f0b1f0b1f0b0a0001460a2109200a200a200a200a200a210921092109210920200b09211f0b0a201f0b0a201f0b0a201f0c1e0c1f0b1f0b1f0b0a0005dc0a211e0c1e0c1f0b1f
0b1f0c

I am looking for ways to utilize the Broadlink RM2 to switch on/off the lights and control my shutters. Any help is much appreciated!

Basti

Your broadlink.map file on/off needs to match your Switch item, it should look like this:

L1WZON=b20634000b210b210a210a210b210b210a210a210b210b210b21200c0b210a210b211f0c0b21200c0a211f0c0b210b210a211f0c0b00014700000000

L1WZOFF=b2000c030a200a200a200a200a200a200a200a200a21092109211e0c0a200a200a201f0b0a201f0b0a201f0c09211f0b0a200a200a0001460a200a200a200a200a200a200a200a200a200a200a201f0c09200b2009211e0c0a201f0b0a201f0b0
a201f0c09210a200a00014609210a1f0a210a200a200a200a200a200a200a200a201f0b0a200a200a20200b0a1f200b0a201f0b0a201f0b0a200a200a0001460a200a200a200a200a200a200a210a2009210a200a201f0b0a200a200a201f0b0a201f0c
09211e0c0a201f0b0a200a200a0001460a200a200a200a200a200a200a200a2109200a2109211f0b09210a200a201f0b0a201f0b0a201f0c09211f0b0a200a200a0001460a200a200a200a200a200a200a200a200a200a200a201f0c0921092109211f0
b0a201f0b0a201f0c09211e0c0a2009210a0001460a200a200a200a2009210a200a200a200a200a200a201f0b0a200a200a211f0b0a201f0b0a201f0b0a201f0b0a2109210900014709210921092109210921092109210a20092109210a201f0b0a200a
2109201f0c09201f0c0a201f0b0a201f0b0a200a200a0001460a200a2109200a2109200a21092109210a20092109211f0b0a200a200a201f0b0a201f0c09211e0c0a201f0b0a200a200a0001460a2109200a200a2109200a200a200a2109200a2109211
f0b0a20092109211f0b0a201f0b0a211e0c09211e0c0a200a200a0001460a200a200a200a200a200a200a2109200a200a200a201f0c092109210a201f0b0a201f0b0a201f0b0a201f0c09210a20090001470a200a200a2009210a200a200a200a200a20
0a200a201f0b0a200a2109211f0b0a201f0b0a201f0b0a201f0c092109210900014709200a21092109200a2109210a200a2009210a2009211f0b0a200a200a201f0b0a201f0b0a211e0c1e0c1f0b1f0b1f0c090001460a200a200a200a200a200a200a2
00a2109200a210920200b0a201f0b0a201f0b0a201f0c0920200b1f0b1f0b1f0b1f0b0a0001460a2109200a200a200a200a200a210921092109210920200b09211f0b0a201f0b0a201f0b0a201f0c1e0c1f0b1f0b1f0b0a0005dc0a211e0c1e0c1f0b1f
0b1f0c

Then repeat this format for any additional items.

1 Like

BK, thanky you! You are right. I have added several other RF codes into broadlink.map file. With this I was then able to create a Button in HabPanel, which was referencing to the RF codes. Here a picture of the Button Settings:
image

I did the same for the shutters. In general the control works, but it just moves a bit down and then stop. Double-clicking on the button makes the shutter go down completely, but this trick does not work out every time.

As next, I will have a look at rules to make the actual automation -> Shutters to go up in the morning and down in the evening automatically. If anyone has hints for me, just let me know :slight_smile:

reg
Basti

Hello!
Can you tell me please how can i change “string” in .items to “switch”?

Hi - I’ve been struggling with RF items … can you say what device you are trying and post a sample Mapfile and item file entry?

thanks!

hi @leastonce, here is the code captured from the ir remote controller
AC_POWER_OFF=2600cc0166341123112311091209120912231109120912231123110912231208120912231222120813221223110912081323110912091208132212091208130813081308130813081209120912091209120912091209120912091209120813081308130813081308120912091209120912091209120912091209120912081308130813081308130812091209120912091209120912091209120912091209120813081308130813081209120912091209120912091209120912091209120912081308130813081308120b10091209120912091209120912231109122311091209122311091209120008f667331123112311091209120912231109120912231123120812231208130812231222120813221223110912091223110912091223110912091208130813081308130a11081209120912091209120b1009120912091209120912081308132212081308132212231109120912081308130813081308120912091209120912091209120912091223110912091209120912081308130813081308120912091209120912091209120912091209120912081308130813081308130812091209120912091209120912091209120a11091208130813221208132311081323112311231109122311000d05112311091223120812091223

AC_POWER_ON=2600cc016733122212231109120912091223110912091223112311091223110912091223112311091223122212081308132212081308130813221208130813081209120912091209120912091209120912091209120813081308130813081308120b1009120912091209120912091209120912091208130a1108130813081308120912091209120912091209120912091209120912091208130813081308130812091209120912091209120b10091209120912091208130813081308130813081209120912091209120912091209120912091209120813231109122311091209122311091209120008fc6733112311231208120912091223120812091223112312081322120813081322122212081323112311091209122311091209122311091209120912091208130813081308130813081209120912091209120912091209122311091209122311091209122311231109120912091209120912091209120813081308130813081308120b1009122311091209120912091209120b10091209120912091208130813081308130812091209120912091209120b100912091209120912091208130813081308130812091209120912091209120912231109122311231123122212231108132311000d05112311091223110912091223

here is the item code
Number Boardlink_Temp { channel=“broadlink:rm2:34-ea-34-c7-6a-63:temperature” }
String AC_POWER_ON “AC-ON” { channel=“broadlink:rm2:34-ea-34-c7-6a-63:command” }
String AC_POWER_OFF “AC-OFF” { channel=“broadlink:rm2:34-ea-34-c7-6a-63:command” }

habpanel works good, but in siri it sees 2 devices, not sure how to let siri working as “the same device”

Shane

thanks man, with that being said, I need to make 3 items to work as “a complete on/off device”? the first and second item will be the on and off items(which sending on/off ir command), the third item will be a dummy switch that “combine the on/off item with a rule”?? not sure if I understand it correctly, if this is what u mean?

also if node-red is the “rule broker”, why not make a simple rule file inside openhab2(asuming the AC can be recognized as a simple on/off switch device? or I was wrong about siri, it has a AC device icon in siri??)

so sorry for the noob questions

Thanks … RF codes that I extract don’t work with Open Hab. I tried using ones from @bkyle and they do transmit ( I have an SDR receiver so can monitor the frequency ). The codes are however stored in the broadlink and i use them to open and close my shades on a timer.

I can also see this entry in the log so I know its working this far!

2017-10-30 08:18:29.607 [ItemCommandEvent ] - Item ‘Blind_down’ received command test

if test maps to a capture by @bkyle it transmits. if its a capture I made then it doesn’t.

Any suggestions about other logs i can review?

1 Like

You can set your Broadlink Binding log to DEBUG from the karaf

log:set DEBUG org.openhab.binding.broadlink

Hi Jason

There’s some posts of mine in this thread where I had the same problem with RF codes, and Cato gave some details of how to extract the codes from the broadlink app (after they’ve been captured in that, of course).

That worked for me, to have my rm2 control my RF blinds

Hi can anyone tell me how to send commnads from RED-NODE to openhb so it will switch the RM2 throw openhab?
i am using node as rule engine…

but i whuld like to use the RM2 from openhab where i have all the setup

How did you extract the RF codes?

is it possible to extract them without rooted phone?