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

Ok Marcus, ill try :slight_smile:
Thank you very much for your reply!

Can you trust me?
I handy re-write the line (no copy and past) and the item file is now right…
Oh my God!
Its time to debug sitemap file :confused:

Crazy…the problem was copy, past from this topic to my files (item and sitemap).
Anyone in this problem, handy write all, dont copy and past!
:slight_smile:
Edit: Binding works well with OH 2.3.0.to … im happy :slight_smile:

Search in this long topic words step by step and you will find Cato"s tutotial. Handy write items and sitemap adds… works pretty well…

then it was the wrong type of " :wink:

Hehe Marcus… yes! Thanks :slight_smile:

Hi

Did someone figure out how to record/replay all the IR of the air conditionner.

RF signal =“cond_power.state+”&mode="+cond_mode.state+"&fan="+cond_fan.state+"&temp="+cond_temp.state+"&vert="+cond_vert.state+"&horiz="+cond_horiz.state

More details here :
https://community.openhab.org/t/control-air-conditioner/36102/3

it’s not possible to record all the combinations. any smart ideas?

G

Does anyone have a link where i can download the binding ? I couldn’t find it

have a look here Broadlink binding for RMx, A1, SPx and MP. Any interest? or scroll to post 465

@DSTM
“Usually broadlink-mqtt works with single Broadlink device only,”
Is this still the case or has it been solved ? I’m planning to add about 5 RM3 mini to my home.

Broadlink RM Plugin

After alot of fumbling, I just used an android app that provides an http interface to the rm3. Then, use the http interface to grab/learn HVAC minisplit codes from the broadlink rm3 mini. The codes went right into the broadlink.map file and worked great! Details:

Install broadlink addon as described in post #56 of this thread

With the exception: In Step 6, I couldn’t get the rm-bridge.fun2code to work with the rm3 mini. So, instead I did the following:

  • Get android app and install on an android phone (I didn’t look for iPhone equivalent)
    https://play.google.com/store/apps/details?id=us.originally.rm_trial

  • in the app, go to settings, http bridge <check/enable>
    it’ll provide a URL
    http://x.x.x.x:9876

  • Browse to this this URL and it will show details about the http intenow provided and further links. all links referenced below can be clicked from this page.

  • in app, settings, device list should show your rm3mini, with ip-addr, and mac
    go to settings “use this phone as 3g bridge” <check/enable>
    (I don’t think this step is required. But I did it, and liked the results)

  • pre-setup your remote by turning AC on, and setting mode/temp/fan to desired, then turn AC Off
    use http to put rm3 in “/study” mode
    http://x.x.x.x:9876/study?deviceMac=xx

  • when LED lights on rm3, send “ON” command to rm3 with remote control (it will include on+mode+temp+fan settings)

  • then “retrieve” /get_code (name it by replacing “My new code” with a name when hit the retrieve url. )
    http://x.x.x.x:9876/get_code?deviceMac=xx:xx…&name=My new code
    response:

{"rawCode":"2600f6006f32110a100b1026100a1125100b100b100b10251026100b100b100b10251026100b100b100a110a100b100b100b100b100a110a100b100b100b1025110a110a100b100b100b100b100a1125100b100b100b100b100a112510261025112510261025110a110a100b1026100b100a110a100b100b100b100b100b10251026100b100b1025100b100b100b100b100b100a10261026100b100a110a100c0f0b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b102510261026100a110a1026100b10000d050000","name":"cool76auto","timestamp":"1529335146752","deviceMac":"xx:xx:xx:xx:xx:xx","status":"ok","uri":"/get_code","code":{"code":"2600f6006f32110a100b1026100a1125100b100b100b10251026100b100b100b10251026100b100b100a110a100b100b100b100b100a110a100b100b100b1025110a110a100b100b100b100b100a1125100b100b100b100b100a112510261025112510261025110a110a100b1026100b100a110a100b100b100b100b100b10251026100b100b1025100b100b100b100b100b100a10261026100b100a110a100c0f0b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b102510261026100a110a1026100b10000d050000","delay":0,"deleted":false,"id":"l1529335146937","index":0,"learnedByMac":"xx:xx:xx:xx:xx:xx","name":"cool76auto","order":0,"remoteType":0,"renamed":false,"repeat":0,"type":0}}
  • cut/paste retrieved code to openhab broadlink.map
COOL76=2600f6006f32110a100b1026100a1125100b100b100b10251026100b100b100b10251026100b100b100a110a100b100b100b100b100a110a100b100b100b1025110a110a100b100b100b100b100a1125100b100b100b100b100a112510261025112510261025110a110a100b1026100b100a110a100b100b100b100b100b10251026100b100b1025100b100b100b100b100b100a10261026100b100a110a100c0f0b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b102510261026100a110a1026100b10000d050000
  • continuing to step 7 of post #56
    item file:
    String minisplit “minisplit” { channel=“broadlink:rm3:xx-xx-xx-xx-xx-xx:command” }
    sitemap file:
    Switch item=minisplit mappings=[OFF=“OFF”,COOL76=“Cool 76°”] icon=“climate”

  • In rules, be sure and use double quotes “” around command names

minisplit.sendCommand("COOL76")
//...
minisplit.sendCommand("OFF")
[{"learnedByMac":"xx:xx:xx:xx:xx:xx","repeat":0,"order":0,"codeLength":504,"id":"l1529335146937","name":"cool76auto2","sendUrl":"http://x.x.x.x:9876/send?deviceMac\u003dxx:xx:xx:xx:xx:xx\u0026codeId\u003dl1529335146937","index":0,"remoteType":0,"displayName":"cool76auto","type":0,"delay":0,"code":"2600f6006f32110a100b1026100a1125100b100b100b10251026100b100b100b10251026100b100b100a110a100b100b100b100b100a110a100b100b100b1025110a110a100b100b100b100b100a1125100b100b100b100b100a112510261025112510261025110a110a100b1026100b100a110a100b100b100b100b100b10251026100b100b1025100b100b100b100b100b100a10261026100b100a110a100c0f0b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b100a110a100b100b100b100b100a110a100b100b100b100b100b102510261026100a110a1026100b10000d050000"}]
  • Note: the result from the /codes link even provides a url to make the rm3 mini send any of it’s learned IR codes directly (I’m not using this functionality since I like the “Binding” method provided in post #56 better, but it could be used in place of the binding).
    from /codes result:
"sendUrl":"http://x.x.x.x:9876/send?deviceMac\u003dxx:xx:xx:xx:xx:xx\u0026codeId\u003dl1529335146937"

use in a rule:

sendHttpGetRequest("http://x.x.x.x:9876/send?deviceMac\u003dxx:xx:xx:xx:xx:xx\u0026codeId\u003dl1529335146937")
  • Using the app on the phone, you can also go to “code list” and “test” each learned code directly

  • Side note: RM3 Thing Configuration is tied to IP address of RM3. By default, this may change periodically. I configured my router DHCP to always give the same IP address to the MACID of the rm3. On my Netgear R6300v2, this was under: Advanced, Setup, LAN Setup, Address Reservation, Add. (Don’t forget to hit Apply). Refer to your router documentation for other brands.

I hope this helps someone else!

2 Likes

you can run several python service for each device

please explain :wink:

1 Like

@Gad_Ofir
I’ve updated and edited my original post #504 to try to make it more clear.
If you’re still not following it, please ask a more specific question.

hi Michal, thanks for your efforts, i’d like to give it a try, can i have the binding as a jar file as im not aware how to converted, or instruct me if u don’t mind?

Hi, I’m a beginner of openhab, I apologize also for my English. I’m trying to configure openhab with brodlink rm2. I don’t understand what I’m wrong, someone can help me. I installed and configured the Cato binding, and I can read the temperature. Now I would like to turn the TV on and off. these are the configurations:
sitemaps/cinema.sitemap

sitemap cinema label=“cinema”
{
	Switch item=TV_Panasonic				label="TV_Panasonic" mappings=[TV_Panasonic_ON="On", TV_Panasonic_OFF=“Off”]
	
}

items/cinema.items

String TV_Panasonic 		"TV"			Switch			{ channel="broadlink:rm2:34:ea:34:c7:ca:4e:command” }

transform/broadlink.map

TV_Panasonic_ON=260084030e0e0f0a120e0f0e0e0b122a0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f290f0e0f0d0f0e0f0d0f0e0f0d0f0e0f0d0f2a0f0d0f2a0e2a0f2a0e2a0f0e0e0e0f2a0e0b122a0e2a0f2a0e2a0f0e0e2a0f00092970390e0e0f2a0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f2a0e0e0f0a120e0f0d0f0e0f0e0e0e0f0d0f0e0f290f0e0f0d0f0e0f0d0f0e0f0a120e0f0d0f2a0f0a122a0f290f2a0f290f0e0f0d0f2a0f0d0f2a0e2a0f2a0e2a0f0e0e2a0f00092871390e0e0f2a0e0b120e0e0e0f0e0e0e0f0e0e0e0f0a120e0f0e0e0e0f2a0e0b120e0e0e0f0d0f0e0f0d0f0e0f0e0e0e0f290f0e0f0d0f0e0f0d0f0e0e0b120e0e0e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e0e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e2a0f00092970390f0d0f2a0f0d0f0a130d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0b122a0e0e0f0e0e0e0f0e0e0b120d0f0e0f0d0f0e0f290f0e0f0d0f0e0f0d0f0a120e0f0e0e0b122a0e0e0f2a0e2a0f2a0e2a0f0a120e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e2a0f00092871380f0e0f290f0e0f0d0f0e0f0d0f0e0e0e0f0e0e0c110e0e0e0f0e0e2a0f0e0e0e0f0a120e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0d0f0e0f0a120e0f290f0e0f290f2a0f290f2a0f0d0f0e0f290f0e0f290f2a0f290f2a0f0a122a0f00092871380f0e0f290f0e0f0d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0d0f2a0f0a120e0f0d0f0e0f0d0f0e0f0d0f0e0e2a0f0e0e2a0f2a0e2a0f2a0f0d0f0e0e2a0f0a122a0f2a0e2a0f2a0f0d0f2a0e00092971380f0a122a0f0a130d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0b120e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0d0f0e0f0d0f0a13290f0a13290f2a0f290f2a0f0d0f0e0f290f0e0f290f2a0f290f2a0f0d0f2a0f00092871380f0e0f290f0e0f0d0f0e0e0e0f0e0f0a120e0e0e0f0e0e0e0f0a122a0f0a120e0f0e0e0e0f0e0e0e0f0e0e0e0f0d0f2a0f0e0e0e0f0e0e0e0f0d0f0e0f0a120e0f290f0a13290f2a0f290f2a0f0d0f0e0f290f0a13290f2a0f290f2a0f0a122a0f00092871380f0e0e2a0f0e0e0e0f0e0e0b120e0e0e0f0e0e0e0f0a120e0f0e0e2a0f0e0e0e0f0a120e0f0e0e0e0f0d0f0e0f0d0f2a0f0a120e0f0e0e0e0f0d0f0e0e0e0f0e0f290f0a122a0f2a0f290f2a0f0d0f0e0e2a0f0e0e2a0f2a0e2a0f2a0f0d0f2a0f000d0500000000
TV_Panasonic_OFF=260084030e0e0f0a120e0f0e0e0b122a0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f290f0e0f0d0f0e0f0d0f0e0f0d0f0e0f0d0f2a0f0d0f2a0e2a0f2a0e2a0f0e0e0e0f2a0e0b122a0e2a0f2a0e2a0f0e0e2a0f00092970390e0e0f2a0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f2a0e0e0f0a120e0f0d0f0e0f0e0e0e0f0d0f0e0f290f0e0f0d0f0e0f0d0f0e0f0a120e0f0d0f2a0f0a122a0f290f2a0f290f0e0f0d0f2a0f0d0f2a0e2a0f2a0e2a0f0e0e2a0f00092871390e0e0f2a0e0b120e0e0e0f0e0e0e0f0e0e0e0f0a120e0f0e0e0e0f2a0e0b120e0e0e0f0d0f0e0f0d0f0e0f0e0e0e0f290f0e0f0d0f0e0f0d0f0e0e0b120e0e0e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e0e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e2a0f00092970390f0d0f2a0f0d0f0a130d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0b122a0e0e0f0e0e0e0f0e0e0b120d0f0e0f0d0f0e0f290f0e0f0d0f0e0f0d0f0a120e0f0e0e0b122a0e0e0f2a0e2a0f2a0e2a0f0a120e0f2a0e0e0f2a0e2a0f2a0e2a0f0e0e2a0f00092871380f0e0f290f0e0f0d0f0e0f0d0f0e0e0e0f0e0e0c110e0e0e0f0e0e2a0f0e0e0e0f0a120e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0d0f0e0f0a120e0f290f0e0f290f2a0f290f2a0f0d0f0e0f290f0e0f290f2a0f290f2a0f0a122a0f00092871380f0e0f290f0e0f0d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0d0f2a0f0a120e0f0d0f0e0f0d0f0e0f0d0f0e0e2a0f0e0e2a0f2a0e2a0f2a0f0d0f0e0e2a0f0a122a0f2a0e2a0f2a0f0d0f2a0e00092971380f0a122a0f0a130d0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0b120e0e0e0f0e0e0e0f0e0e0e0f0e0e2a0f0e0e0e0f0e0e0e0f0d0f0e0f0d0f0a13290f0a13290f2a0f290f2a0f0d0f0e0f290f0e0f290f2a0f290f2a0f0d0f2a0f00092871380f0e0f290f0e0f0d0f0e0e0e0f0e0f0a120e0e0e0f0e0e0e0f0a122a0f0a120e0f0e0e0e0f0e0e0e0f0e0e0e0f0d0f2a0f0e0e0e0f0e0e0e0f0d0f0e0f0a120e0f290f0a13290f2a0f290f2a0f0d0f0e0f290f0a13290f2a0f290f2a0f0a122a0f00092871380f0e0e2a0f0e0e0e0f0e0e0b120e0e0e0f0e0e0e0f0a120e0f0e0e2a0f0e0e0e0f0a120e0f0e0e0e0f0d0f0e0f0d0f2a0f0a120e0f0e0e0e0f0d0f0e0e0e0f0e0f290f0a122a0f2a0f290f2a0f0d0f0e0e2a0f0e0e2a0f2a0e2a0f2a0f0d0f2a0f000d0500000000 
23:16:56.566 [WARN ] [.rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/TV_Panasonic' with an invalid status value ‘TV_Panasonic_ON’.
23:16:58.640 [WARN ] [.rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/TV_Panasonic' with an invalid status value ‘TV_Panasonic_OFF'.

hi guys, can anyone get me the jar file from modified binding by mgw

Is anyone facing problems with connection to broadlink Mini RM3 lately?
I started using the binding about 2 weeks ago and it worked great until yesterday. Now, it seems that OpenHAB is unable communicate with the RM3 although it is showing as Online in the things. Any ideas ?

I’m not sure if it’s already mentioned in this topic, but it seems someone has picked up development for this binding.

3 Likes

This sounds very good! So hopefully we will have a supported binding in the future for these nice devices.