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

Hi,
what if you have a Broadlink RM pro plus? RM2 doesn’t work on rm-bridge nether RM1 RM3

Ive tried this app and the web link supplied by John, but it doesnt find my RM Minis at all :confused:

Hi dastrix80,

i finally found out how to get it working.

My RM Mini 3 isn’t found too, but you can add it manually!

I just needed to put in a Name, the Mac Address of my RMMini and as Type i wrote RM2. Et voilla. I can learn codes now.

Hope it works for you too.

Greetz Jens

Hi @themillhousegroup

Thx for building a new version for broadlink. I am starting to use it. I have two RM3 which are connected to openhab.

Question: Do I still need the IP of the device? (In the blog it is written that only MAC is required).

Thx

At the moment the “discovery-time” IP of each Broadlink Thing is used a lot - every time we try to talk to it in fact. This is not ideal because in many networks, the IP address that the device was given when we discovered it is not guaranteed to be the same forever.
This was something I was aiming to fix as many people cannot assign a static IP to their devices, but it turns out to be quite a minefield. I may need to concentrate on getting the binding accepted into the OpenHAB repository first, and then look at this issue as the first priority after that.

Hi All,

I am new to OH but owning an RM PRO for years.
I have the RF code what I would like to send via the RM staff, but actually I don’t know where to start.

Is there any topic or documentation which explains how to do that?
Is it possible to import my scenes from the Broadlink android app to OH somehow, to add timers for them for further automation?

Thanks,
B

@themillhousegroup

I have 2 RM3. It seems that after some time I lost the connection to one of them. From broadlink app (e-Control) the RM3 is working. Do u have any idea what can cause this issue?

Thx

@smhgit is it possible that one of your RM3s is getting given a new IP address after its DHCP lease expires? If it’s not that, I’d like to work with you a little bit more to figure out what is happening, because long-term stability of multiple devices is definitely a top priority! If you can reproduce it fairly easily, let me know and if we increase the logging level for the Broadlink binding we should be able to figure it out.

@Balazs_Bucsi there’s no official documentation but in this thread both Cato and myself have tried to explain the process we use to learn RF codes, which uses the RM Bridge mobile application and an associated website.

I doubt the Broadlink binding will support scenes in the near future but if there are enough requests to do so then maybe it could be added as a new feature. If you have a lot of RF devices being controlled by Broadlink RMs, it’s probably more flexible to just expose all of them as Items in the normal OpenHAB way. Then you can add individual timers, group them for scene automation, add specific rules, etc etc

Thanks,

Actually I am using RF wall switches and shutters which are not Broadlink branded but I will try to add them as items into OH.
The reason Why I am saying will try, is because I am really beginner in coding and in OpenHAB anyways.

One more bit off-topic question:
Do you know if RM PRO accepts and executes command what i’m sending to it like string via TCP/IP protocol?
(I am interested in LabView and it could be a good alternative form me for a long time to communicate with IoT things.)

Thanks a lot,
B

@themillhousegroup

I use names, and in this case I also confirmed that the IP hasn’t change. I am not sure where is the issue. If you have a debug version, let me know, I can run it.

Is there a way to add an event to the binding that will alert if connection to device has been lost (channel event?). This way it will be easy to be notified on this situation.

Hi Guys,

I am using windows 10 with OpenHAB2.3.0.

I bought a couple of Broadlink RM2 and RM3 and use “org.openhab.binding.broadlink-2.4.0-BETA-4”.

After all the testing, i still cant get it to work. My logs in openhab always give me the following error:

[rm.AbstractFileTransformationService] - Could not transform ‘cool24’ with the file ‘broadlink.map’ : Target value not found in map for ‘cool24’

[nk.handler.BroadlinkBaseThingHandler] - broadlink:rm2:XXXXXXXX: No entry for cool24 in map file ‘broadlink.map’ for thing Broadlink RM2

Wondering if any kind soul here able to give me pointers on this.

Thank you!

Regards,
KKYuen

do you have the map prestinace installed?

Hi @Gad_Ofir

I do have the map transformation installed, I follow the Cato steps and everything is link up.

It is just that whenever i trigger from sitemap, the log always show the same error.

I try editing my broadlink.map but still invalid.

cool24=260036016e370e0e0e0d0e0e0e0e0e0d0e0e0e290e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e290e0e0e290e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e290e0e0e290e2a0e290e0e0e290e2a0e0d0e0e0e290e0e0e0e0e0d0e0e0e0e0e290e0e0e0d0e0e0e290e0e0e290e0e0e0e0e290e0e0e0e0e290e0e0d2a0e290e2a0e290e290e0e0e0e0e0d0e2a0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e2a0e290e0e0e0e0e0d0e0e0e0e0e290e290e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0d0e0e0e0e0e0e0e290e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e2a0e290e2a0d0e0e290e0e0e2a0d0e0e000d050000

OFF=260036016f370e0d0e0e0e0e0e0d0e0e0e0e0e290e0e0e0d0e0e0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e290e0e0e290e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0e0e0d0e0e0e290e0e0e290e290e2a0e0e0e290e290e0e0e290e0e0e0e0e0d0e0e0e0e0e0d0e2a0e0d0e0e0e0e0e290e0e0e2a0d0e0e0e0d2a0e0e0e0d0e0e0e290e2a0e290e290e2a0e290e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0e0e0d0e0e0e0e0e290e280f0e0e0e0e0e0d0e0e0e0e290e290e0e0e0e0e0e0e0d0f0d0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e290e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0e0e0e0d0e0e0e0d0e0e0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e0d0e0e0e0e0e290e0e0e290e290e0e0e0e0e290e0e0e000d050000

I also have the problem with the wrong status being shown after the “Polling Interval” time.
It always shows OFF after this time.
When can this issue be resolved?

I have a problem. I bought RM pro + on this auction: https://goo.gl/qy8gme
I installed the blinding - jar file added to the openHAB-share \ openhab2-addons catalog
At Paper UI I still have “Searching for Things…”
How I can add manually?? Device is working fine. I see IP address 192.168.0.125

Hey @Jorg, I saw your comment on my blog. Until now the SP2 and SP3 devices have shared the same polling code (i.e. the code that works out the ON/OFF state of the Thing every 30 seconds). But as you are seeing problems with your SP3, I’m suspecting that it actually is NOT the same as an SP2 and responds in its own way.

I’ve published binding version BETA-5 which has a new polling function for the SP3. It won’t fix anything, but includes more logging so (hopefully, and with your help @Jorg) I can see how this device responds when it is set ON and OFF.

Grab version BETA-5 from here:
https://dl.bintray.com/themillhousegroup/generic/

Hi there, I have a simmilar problem with a SPmini2, After a short time the Itemstate changes from ‘on’ to ‘off’.
Only the shown state not the SPmini2. I will take later the new Beta and report.
Btw. the SPmini2 dosn’t support the second ‘Item PowerConsumtion’ only PowerSwitch.
I think all SPmini dosn’t do this. So the SPmini maybe created as a new ‘Thing’.

Hi,
Thank you for your quick response.
I’m more than willing to help you us finding and solving this problem.
It’s been bugging me for over a year now.
Yesterday I even ordered a RM3 Pro to get around this problem (I hope).

I will test it out soon and give you all the info.

This is the LOG from the test that I did for my SP3.
Through the "INBOX -> Devices Scan " the binding sees my SP3 as an SP2.
I can add it as a SP2 from this auto-scan or as a manual SP3 thing, but the issue stays the same. I tried both.

==> /var/log/openhab2/openhab.log <==
2018-11-27 14:19:44.019 [INFO ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Constructed
2018-11-27 14:20:03.931 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Beginning Broadlink device scan...
2018-11-27 14:20:03.964 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Broadlink device scan waiting for 10 seconds to complete ...
2018-11-27 14:20:03.994 [INFO ] [.discovery.BroadlinkDiscoveryService] - Data received during Broadlink device discovery: from 192.168.178.13:80[34:ea:34:f5:aa:72]
2018-11-27 14:20:04.022 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'broadlink:sp2:34-ea-34-f5-aa-72' to inbox.

==> /var/log/openhab2/events.log <==
2018-11-27 14:20:04.022 [home.event.InboxAddedEvent] - Discovery Result with UID 'broadlink:sp2:34-ea-34-f5-aa-72' has been added.

==> /var/log/openhab2/openhab.log <==
2018-11-27 14:20:13.968 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - 10 second wait complete ...
2018-11-27 14:20:13.973 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Ended Broadlink device scan...
2018-11-27 14:20:13.978 [INFO ] [link.internal.socket.BroadlinkSocket] - Socket closed
2018-11-27 14:20:13.984 [INFO ] [link.internal.socket.BroadlinkSocket] - Receiver thread ended
2018-11-27 14:20:23.919 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Beginning Broadlink device scan...
2018-11-27 14:20:23.926 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Broadlink device scan waiting for 10 seconds to complete ...
2018-11-27 14:20:24.003 [INFO ] [.discovery.BroadlinkDiscoveryService] - Data received during Broadlink device discovery: from 192.168.178.13:80[34:ea:34:f5:aa:72]
2018-11-27 14:20:33.930 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - 10 second wait complete ...
2018-11-27 14:20:33.934 [WARN ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Ended Broadlink device scan...
2018-11-27 14:20:33.938 [INFO ] [link.internal.socket.BroadlinkSocket] - Socket closed
2018-11-27 14:20:33.942 [INFO ] [link.internal.socket.BroadlinkSocket] - Receiver thread ended

==> /var/log/openhab2/events.log <==
2018-11-27 14:20:50.656 [me.event.InboxRemovedEvent] - Discovery Result with UID 'broadlink:sp2:34-ea-34-f5-aa-72' has been removed.
2018-11-27 14:20:50.681 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)
2018-11-27 14:21:58.714 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to INITIALIZING
2018-11-27 14:21:58.844 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from INITIALIZING to ONLINE
2018-11-27 14:22:07.748 [.ItemChannelLinkAddedEvent] - Link 'BroadlinkSW_B-broadlink:sp2:34-ea-34-f5-aa-72:powerOn' has been added.
2018-11-27 14:23:37.796 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-11-27 14:23:37.809 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON
2018-11-27 14:24:00.199 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF
2018-11-27 14:24:09.061 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-11-27 14:24:09.087 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON
2018-11-27 14:24:14.059 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command OFF
2018-11-27 14:24:14.092 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF
2018-11-27 14:24:21.854 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-11-27 14:24:21.874 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON
2018-11-27 14:24:30.213 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF
2018-11-27 14:24:40.558 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-11-27 14:24:40.572 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON
2018-11-27 14:25:00.234 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF
2018-11-27 14:25:05.614 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-11-27 14:25:05.635 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON
2018-11-27 14:25:11.696 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command OFF
2018-11-27 14:25:11.716 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF