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

Hi,
I don’t think you will find the required key and iv on that page. You will need to obtain the RF/IR codes for your devices by exporting them from e-control or re-learning them. See a few posts above for links.

Cato

Sorry I meant these codes which are saved when the python script linked above records the ir command

Hi,
The code appear to be in the right format. If the code is correct for you device then you should be good.

Cato

I’m trying to manually add a device. What is the network port parameter? A port number? What would the default be?

Hi,
I havent actually tested if adding devices manually works. The port should be 80.
Let me know if it works.

Cato

Cato,

Thanks for your prompt reply. Will try to see if it works.

Hi Cato,
I can’t get the rmt.db file using the comand “adb pull /data/data/com.broadlink.rmt/databases/rmt.db”.
The returning message is “adb: error: remote object ‘/data/data/com.broadlink.rmt/databases/rmt.db’ does not exist”.
I’m using the comand on mac and also pc, my android phone is rooted.
After all the things how can I transfer the files in the folder in openhab2? (I’m using openhabian on a Raspberry Pi 3).

Thanks

Hi,
I had the same problem. To solve it I installed Root Explorer on my Android handset and navigated to the folder and emailed the rmt.db file to myself.

Cato

Now that I have all the files in the mac folder, how can I get the bridge working with openhabian?

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

Hi

can I also create items with a direct command?
e.g. like

String TV_louder “TV” { channel=“broadlink:rm3:24-ea-44-b3-c2-e5:command:260046009696133713381337121313131213121313121338123813381213121313121313121312381338133d050000” }

the background is: I use HUE emulation to control alexa

so I would like to create an item that I can control that way

Hi,

Current version does not support the IR code in the item definition. I will look into adding it to the next beta.

Cato

1 Like

Hi, I can confirm the binding works great with my RM3 Pro, both with IR an RF commands. Thank you! Works also with Alexa!

1 Like

Hello Cato,

First of all, thanks for all the good work in making this binding!, I love it!, I have many Broadlink devices (RM2, RM3, A1, MP1s, S1C and SP3 Contros) and started testing with your binding.
I’m running OH 2.0.0, installed the MAP transformation, and placed the Beta2 in my Addons folder, restarted OH, and it found All Broadlink devices in my inbox i have online (2xRM2, 2xRM3, 2xA1, 3xMP1 and 1xS1C), Added the Initial Key/Vector to the A1’s and MP1’s.
First I want to focus on the A1’s and the MP1’s: I’ve added them as things and configured the channels, all succesfully appered in PaperUI, and the A1’s gave correct information, and the MP1’s showed the 4 channels, however the did not work from PaperUI.
I restarted OH, and that didn’t help :frowning: , The devices that first came Online now say “Offline”, for they A1’s i now get in my Log:
2017-07-21 10:48:15.096 [ERROR] [broadlink.handler.BroadlinkA1Handler] - Response from device ‘192.168.1.54’ is not valid.
2017-07-21 10:48:16.220 [ERROR] [broadlink.handler.BroadlinkA1Handler] - Response from device ‘192.168.1.17’ is not valid.
Hope you can help, off course I’m available tot test!

Hello I have sp3 and sp2 devices I can test.
Sandro

@sadsad23 @X-Ray181

Great, I’ve waiting for someone having other devices that the RM and A1. I am working on new beta and have added untested support of lots of more power sockets, including the SC1 and SP3S, and the S1C. I will send you guys a PM no later tomorrow with the latest beta version.

@sadsad23 I believe I have fixed the issue with A1 going offline. The binding got confused when having two or more devices of the same type. The beta I will send to you tomorrow will include the fix.

Cato

Thanks!, can’t wait, After another restart one of my two A1’s came online again and i get these error messages in my KARAF OH Console:
openhab> java.lang.NullPointerException
at org.openhab.binding.broadlink.internal.Hex.fromHexString(Hex.java:35)

    at org.openhab.binding.broadlink.handler.BroadlinkStripModel1Handler.get

StatusFromDevice(BroadlinkStripModel1Handler.java:114)
at org.openhab.binding.broadlink.handler.BroadlinkStripModel1Handler.upd
ateItemStatus(BroadlinkStripModel1Handler.java:163)
at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler$1.run
(BroadlinkBaseThingHandler.java:92)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:748)

I followed the step by step guide but when I configured the command in map file and added item and sitemap, nothing worked. Help, please.

Item file:
//This is the Items File

//Lights
Color MilightrgbLed0color “Tutte le luci” [ “Lighting” ] {channe$
Color MilightrgbLed1color “Scrivania” [ “Lighting” ] {channel="m$
Color MilightrgbLed2color “Divano” [ “Lighting” ] {channel="mili$
Color MilightrgbLed3color “Sinistra” [ “Lighting” ] {channel="mi$
Color MilightrgbLed4color “Destra” [ “Lighting” ] {channel="mili$

//Broadlink
String TV_SAMSUNG “TV” {channel=“broadlink:rm2:34-ea-34-f4-50-8b:command”}

Sitemap:
`sitemap home label=“The Cave”
{
Frame label=“Lights”
{
Switch item=MilightrgbLed0color label=“Luci” icon="light"
Slider item=MilightrgbLed0color label=“Brightness” icon="dimmabl$
Colorpicker item= MilightrgbLed0color label=“Color” icon=“rgb”

           Switch item=MilightrgbLed1color label="Scrivania" icon="light"
           Slider item=MilightrgbLed1color label="Brightness" icon="dimmabl$
           Colorpicker item= MilightrgbLed1color label="Color" icon="rgb"

           Switch item=MilightrgbLed2color label="Divano" icon="light"
           Slider item=MilightrgbLed2color label="Brightness" icon="dimmabl$
           Colorpicker item= MilightrgbLed2color label="Color" icon="rgb"

           Switch item=MilightrgbLed3color label="Sinistra" icon="light"
           Slider item=MilightrgbLed3color label="Brightness" icon="dimmabl$
           Colorpicker item= MilightrgbLed3color label="Color" icon="rgb"
  }

Frame label=“Broadlink”
{
Switch item=TV_SAMSUNG label=“ON” mappings=[TV_POWER_ON=“On”, TV$
}
}

Map file:

TV_POWER_ON =
26007200571e0c1f0d110c110d1f1b100e100c111c1f1b1f1c1e0d111b110c110c110c110c110d000aba561e0d1f0d100d110c1f1c100d100d111b1f1b201b1f0d101c100d100d100d100d110c000aba571e0c200c110d100d1f1b110c110d101b201b1f1b200c111b110c110c110d100d100d000d05000000000000

TV_POWER_OFF =
26006c00551f0d1f0d100d112a2d0d100d111b1f1b201b1f0d100d110c111c100c200c110d000aaa561f0d1f0c110c112b2d0c110d101c1f1b1f1b200c110d100d111b100d1f0d110c000aab551f0d1f0d110c112a2d0d110c111c1e1c1f1c1e0e100c110d101c100d1f0c110d000d05000000000000000000000000

Hi,
Your items definition does not seem to be complete. It may be copy and paste thing. Could you post the item definition for your Samsung TV.

No error. I followed your example. It’s the itemtype, itemname, label and binding