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
Broadlink binding for RMx, A1, SPx and MP. Any interest? Bindings
Hi all, Under you can find the links to download a Broadlink binding together with instructions on how to get it working on your system. Supported devices in this version are: • RM and RM2 - IR and RF transmitter with temperature sensor and Wi-Fi connectivity • RM3 - IR transmitter with Wi-Fi connectivity • A1 - multi sensor that can detect temperature, humidity, illumination, background noise and air quality In addition, it includes code to support three kinds of smart sockets (listed unde…
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!