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

Have you added the “command” channel?, when you add the rm2 from your inbox, you have to add the 3 channels the thing has, i see the temperature channel, but not the command and “last update”

Immagine

this?

Can you try changing “type” from “switch” to “string” and see if that helps?
Have you tested in basicUI?, what does your log say?

I tried to change from string switches but without result.

I attach the final part of LOG:

2017-08-19 18:58:37.649 [ItemChannelLinkAddedEvent ] - Link ‘BroadlinkRM2_Climatizzatore-broadlink:rm2:34-ea-34-b5-22-07:command’ has been added.
2017-08-19 18:58:54.370 [ItemStateChangedEvent ] - BroadlinkRM2_Climatizzatore changed from NULL to NULL
2017-08-19 18:58:54.391 [ItemCommandEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ received command NULL
2017-08-19 18:59:23.669 [ItemUpdatedEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ has been updated.
2017-08-19 18:59:31.889 [ItemStateChangedEvent ] - BroadlinkRM2_Climatizzatore changed from NULL to ON
2017-08-19 18:59:31.921 [ItemCommandEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ received command ON
2017-08-19 18:59:33.968 [ItemStateChangedEvent ] - BroadlinkRM2_Climatizzatore changed from ON to OFF
2017-08-19 18:59:33.985 [ItemCommandEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ received command OFF
2017-08-19 19:00:02.112 [ItemStateChangedEvent ] - BroadlinkRM2_Climatizzatore changed from OFF to ON
2017-08-19 19:00:02.414 [ItemCommandEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ received command ON
2017-08-19 19:00:03.808 [ItemStateChangedEvent ] - BroadlinkRM2_Climatizzatore changed from ON to OFF
2017-08-19 19:00:03.832 [ItemCommandEvent ] - Item ‘BroadlinkRM2_Climatizzatore’ received command OFF

2017-08-19 19:14:10.360 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘ON’ with the file ‘broadlink.map’ : Target value not found in map for 'ON’
2017-08-19 19:14:10.368 [ERROR] [dlink.handler.BroadlinkRemoteHandler] - No entry for ON in map file ‘broadlink.map’ for thing Broadlink RM2
2017-08-19 19:14:14.191 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘OFF’ with the file ‘broadlink.map’ : Target value not found in map for 'OFF’
2017-08-19 19:14:14.196 [ERROR] [dlink.handler.BroadlinkRemoteHandler] - No entry for OFF in map file ‘broadlink.map’ for thing Broadlink RM2

The BasicUI screen is empty!

Hi i am unable to configre RM2 please help

  1. my devide is Online and biding seems to be working in openhab
  2. i have setup the below files per above
  3. icannot get my RM 2 to send commends
  4. i cannot get temp read from the device

please help :slight_smile:

Items:
Number Temperature “temperature [%s]” { channel=“broadlink:rm2:b4:43:0d:aa:88:b8:temperature” }
String TV_LIVINGROOM “TV” { channel=“broadlink:rm2:b4:43:0d:aa:88:b8:command” }

Sitemap
Text item=Temperature
Switch item=TV_LIVINGROOM label=“Power” mappings=[TV_POWER_ON=“On”, TV_POWER_OFF=“Off”]

Broadlink.map
TV_POWER_ON = 260068000001289314101312143513121411131213111411133613361510143614351336143614351411133615101411131213111313131014361412123712361436133615351435140005230001274815000c4d0001284a12000c4d0001284915000c4b00012a4814000d05
TV_POWER_OFF = 260068000001289314101312143513121411131213111411133613361510143614351336143614351411133615101411131213111313131014361412123712361436133615351435140005230001274815000c4d0001284a12000c4d0001284915000c4b00012a4814000d05

Hi, I unfortunately understand little, but I tell you what I know!
Regarding the temperature, you do not need to create strings, just go to Configuration> Things> Broadlink RM2, click on other display and enable the temperature item.
Regarding how to send the commands … I have not even succeeded yet.

Let’s wait for somebody better! : P

1 Like

Ok, I maybe wrong, but seems that the codes for ON and OFF (000c4d0001284915000c4b00012a4814000d05) are the same as those in Cato’s example? I think that Cato would like to switch his own TV off and on!:stuck_out_tongue_winking_eye:
Did you create your own codes on the website? Step 6 off Cato’s description…
Ray

1 Like

Thanks X-Ray181 A lot

i think that you are right, it could work only from basic UI.

IR works but not RF

i am trying to control a TC 2 broadlink switch

the issue is that in rm Bridge , the code is well learned but too long.

even from the browser, i am getting this :slight_smile:
{“code”:2,“msg”:“data error! length = 908, must be less then 900 bytes”}

THe issue is also documented in the openhab logs:

2017-08-20 15:32:54.931 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while calling handler: java.lang.IllegalArgumentException: hexBinary needs to be even-length: 2600400000011281142f141014101410142f141014101410141014101410141014101411132f142f14101410142f14101410142f1410142f142f1411132f141014000d050000000000000000
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: hexBinary needs to be even-length: 2600400000011281142f141014101410142f141014101410141014101410141014101411132f142f14101410142f14101410142f1410142f142f1411132f141014000d050000000000000000
at org.eclipse.smarthome.core.common.SafeMethodCaller.executeDirectly(SafeMethodCaller.java:220)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:189)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:83)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:67)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.thing.internal.ThingManager.receiveCommand(ThingManager.java:374)[105:org.eclipse.smarthome.core.thing:0.9.0.b5]
at org.eclipse.smarthome.core.items.events.AbstractItemEventSubscriber.receive(AbstractItemEventSubscriber.java:47)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:192)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.internal.events.OSGiEventManager$1.call(OSGiEventManager.java:1)[98:org.eclipse.smarthome.core:0.9.0.b5]
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:181)[98:org.eclipse.smarthome.core:0.9.0.b5]
at java.util.concurrent.FutureTask.run(Unknown Source)[:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_144]
at java.lang.Thread.run(Unknown Source)[:1.8.0_144]

i am blocked.

Below, the command learned from Remote bridge

http://10.100.102.7:7474/?cmd={"api_id":1004,"command":"send_code","mac":"34:ea:34:c7:c9:15","data":"640184030a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a1a170a170a0a170a17170a0a170a170a000149e00b170b0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a180a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a180a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170b17180a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a18170a0a18170a170a0a170a17170a0a170a170a000149e00b170b0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a180a0a170a17170a0a170a170b170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170b0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a1a0a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a180a1a170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a000149e00a170a0a170a17170a0a170a170a170a17170a170a0a170a17170a170a170a0a170a17170a0a17170a0a17170a0a17170a0a17170a170a0a170a17170a0a170a170a0005dc00000000"}

Any hints???

I wasn’t able to successfully capture RF codes via the app & webpage suggested by Cato in his instructions.

They can be captured using the e-control android app, and then extracted from the app with the python script below - and that worked for me (with some assistance from the magnificant Cato)

2 Likes

Hi
Is there way to “teach” broadlink an IR code not using a remote Control?
The problem is that my TV remote doen’t have most of the buttons (new Samsung minimalist remotes). I’d like to use for instance “HDMI2” command without toggling through all sources.

thanks

Hello!

You could use Android phone with IR blaster in conjunction with ZappIR application, I’ve used it to learn Power On and Power Off commands for my Samsung TV (to use it instead of Power toggle), and it works really well.

Best regards,
Davor

1 Like

That’s a good idea. unfortunately I don’t have and Android with IR. Do you Think those cheap IR adapters for Android phone works? the ones you connect on the 3.5mm audio output.

Hello!

I haven’t had chance to try it, so, I really don’t know if it works. Maybe other users could help you with that.

Best regards,
Davor

Hi all,

Apologies for disappearing there for a while. Started on a new job and it took all focus and energy there for a while.

Anyways, lets get this train back on track. First thing first, I need to read through all your comments since last time I was online, then rebuilt my develop environment, and then get some fixes in there before releasing the new version.

Thank you all for your patience.

Cato

1 Like

Hey,
It works with RM3.

Best Regards,
Cato

Hi,
Yes, I have promised this earlier. It will be done.
Best Regards,
Cato

1 Like

Hi,
I believe it going offline its something in my code that does not work well with rpi. I will look into this.

Best Regards,
Cato