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

Hi,

I’ve a broadlink socket, and I added successfully to OH2, and I can poweroff/poweron the socket, but the state of the socket is always off. If I turn the socket on, I see it turning ON and it keeps ON, but in the openhab, after 5 seconds, shows me off.
Can anyone help?

Best Regards,
Fernando Gomes

Tested :slight_smile:
i like it!!!

windows users and IOS users will appricete
was not able to make RF to work here also any advice?

Personally, I don’t have RF devices, but my friend said that it does work. He had to move the RF device closer to the Broadlink, and go through the motions a couple of times, but he did eventually get a result.

Hi sure what do you need to know?

i have 1 RM2 item called “RM2”
i just send the map coomands to it from Node

so
Inject:TV_VOL_UP > RM2 (itemCommand)

and its working if you need more help talk to me in privte

I can’t get this to work with an RM Pro +
I tried adding it as this in Paper UI.


Broadlink RM2

Broadlink RM2

The Broadlink RM Pro is a IR\RF transmitter and temperature sensor with Wi-Fi connectivity.

Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR For input string: “cd264334ea34”


Device discovery wouldn’t find it either so I manually added this.

If you have problem with configuration of the binding, my recommendation is to

  • install Map Transformation via PaperUI
  • create file \\openhabserver\openHAB-share\openhab2-conf\transform\broadlink.map with content (here for Samsung TV
TV_POWER_ON = 26004600949413371337133713121312131213121312133713371337131213121312131213121337131213121337133713121312133713121337133713121312133713371312130006230d05
TV_POWER_OFF = 260046009595123812381238121212121212121212121238123812381212121212121212121212121212121212381238121212121238123812381238121212121238123812121200062d0d05
HDMI1 = 2600d200939413361436143614111311141013121211133614361436141113111311131212111336141113111336141113371336143614111336143613111336141113111410140006469493143614361436141014101410131113111436143614361410141013111311131114351510141014361411133613361436141113361436141014361411131113111300064793931436143614361411141014101312121113361436143614111410131113111311133614111311143515101436133614361411133614351411133614111410141014000d05000000000000
HDMI2 = 2600d2009493193114361931190c13111311180c180c183114371830180e12121311170d180c180c17321833183018331733190c18311336190c180c170d1311190c1633180d13000646998e193119311435190c180c170d180c1312173219321335180d180c180c170d1312180c18311832143519311931190c183217311411190c180c180c180c1336190c17000642949319311931193014121311180c170d180c183119311831190c1312180c180c180c170d13361931173313371831190d13361831190c180c1311180c190b1733190c13000d05000000000000
HDMI3 = 260046009595123812381238121212121212121212121238123812381212121212121212121212121238121212121212121212381238123812121238123812381238121212121200062d0d05
  • add Broadlink device to your network,
  • check on the router what is the IP address and MAC number. The name should be similar to RMMINI-dd-ee-ff (it ends with last 3 digits of the MAC)
  • upload JAR with the binding (i.e. org.openhab.binding.broadlink-2.2.0-BETA2.jar) to folder \\openhabserver\openHAB-share\openhab2-addons\
  • configure the thing and item

demo.things

Thing broadlink:rm3:aa-bb-cc-dd-ee-ff "Broadlink RM3" [ ipAddress="192.168.1.111",
          mapFilename="broadlink.map",
          authorizationKey="097628343fe99e23765c1513accf8b02",
          port=80,
          iv="562e17996d093d28ddb3ba695a2e6f58",
          mac="aa:bb:cc:dd:ee:ff"  ]

demo.items

String  Ir_Controller "IR" { channel="broadlink:rm3:aa-bb-cc-dd-ee-ff:command" }

demo.sitemap

sitemap tv label="TV"
{
	Switch item=Ir_Controller label="Power" mappings=[TV_POWER_ON="On", TV_POWER_OFF="Off"]
	Switch item=Ir_Controller label="Source" mappings=[HDMI1="1", HDMI2="2", HDMI3="3"]
}

Note MAC number is in three places, adjust IP address as well

It may be necessary to restart OpenHab - use SSH and perform command sudo systemctl restart openhab2.service

Good luck

2 Likes

Thanks for the comprehensive reply. I ended up going with a python broadlink-mqtt script that has solved all my issues.

Hi Everyone.
There’s a lot of nice MQTT things out there to help using broadlink devices with OpenHAB. The best one I found was was made in js script (I’m using Broadlink RM 3 with RF signals) and the only one that worked for me.

I’ve just throw together “hopefully” an easy to use way. Hasn’t spent a lot of time on this so please don’t look at the code :slight_smile: it’s a mess.

This will give you a web gui to make the recordings and then you can use OpenHAB to trigger the actions. As a non-developer I hope it’s pretty straightforward to make it work on a RPI OpenHab.

2 Likes

@Cato_Sognen I have a Broadlink SP3 Mini and keen to get working if you’re looking for someone to test

Really cool project and easy deployment

i dont think cato is with us :slight_smile:
did not see him here for long time

if he is here thanks man, i am working with your binding for i think 1.5 years and all cool

How can I unsubscribe from this?

@Igor_K

Look for this at the bottom of the page, and select Normal or Muted.

image

Hi everyone,
The binding can not auto discover my rm pro plus in my system… Any suggestions?
I’m thinking of firmware issues.
Thank you in advance,
Mike

hello, I am new to openhab and just tried this bindibng. It found my smart plug, it can even control it but the status is not reported properly, it always shows as offline. Even if I turn it on from the opemhab control, it stays on for 10-20 sec and then reverts to the OFF state. Also the logs show:

2018-10-23 22:15:27.986 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler BroadlinkSocketModel1Handler tried updating the thing status although the handler was already disposed.

I am using openhab 2.3.0 from docker image.
Is it possible to solve this problem?
Thanks.

Mike, did you configure the RM mini to be on the same network as your OH2 instance?

Yes, actually is a Broadlink rm pro plus and I have pre-configure the dhcp server with MAC binding, the device is pingable and there is no network isolation.
Yesterday when the device shown ON-Line, I had add it manually but with no chance to work.
:frowning:

Any update regarding the auto discovering issue from somebody?

Hi, another freshly baked Broadlink owner here…

I have SP3S socket(s), and the main use case for me is to capture the power consumption information from the socket. I saw that other SP3(S) owners are able control the state of the socket (with some issues on reading the current state), but I can’t find any mentions on capturing the power consumption metrics. Have anyone succeed with it?

Hi,

life is not eays with the Broadlink. I own a RM3mini and in the past I was able to learn codes using the RM Bridge:
http://rm-bridge.fun2code.de/rm_manage/code_learning.html
With auto detection or with manual setting as Type=RM2 it worked before (half a year ago), but now I want to learn some more codes and get the Error: Error learning code: mac:34:EA:34:E3:D6:F3 not rm2
Looks like they have changed somethig on the website.
How can I now learn codes???

Holger