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

Thank you vey much. I must just ask you where can I find instructions?
Cheers
Sadsad23

Hi,

I’ll send you the binding for testing later today, together with instructions on how to get it working on your system.

Cato

@Cato_Sognen First of all thank you very much for your efforts.

The binding works for me, altough I also have the problem to get it integrated with Alexa via hue-emulation.

What about uploading this to GitHub right now and not only after all bugs have been fixed? That would allow to keep track of issues much better than in this thread and also new versions can be published directly on GitHub instead of using MEGA.

1 Like

I integrated in hue emulation via a rule and helper item

When helper item is triggered via Alexa / hue the rule Fires a sendcommand to the broadlink item

I am currently using an approach with a python script and the exec binding, so I already have a working solution. Your solution is also rather a workaround, so I will probably wait for switching until this is supported natively by the binding.

Hi @clel
Agreed. Expect it to happen within a week or two.

1 Like

Hi Cato, ALL

Wonderfull work… Thanks again for doing this. I just started interest in home automation. so I started with broadlink and I believe it has potential… now I started looking at OpenHab and integrating the two. Until I found out that there is no official binding until I saw this topic and now wanted to try it. Thanks again.

Current my Broadlink in OpenHAB is show as online
I’ve installed Map Transformation

broadlink.map under openhab\transformation (I manually created this folder is it normal?)
AIRCON_ON=260076006d320e0d0e0e0d27100b0f260e0e0f0a100b10250f270e0c100b0e0d0e270e27100b0f0d0d0e0d0d0d0d0e0c0f0d0f0b0e0d0e0c0f0c0f0c0f0c0e280d0c0f0c100b0e0d0e0c0e0d100c0e260e0d0f0b0f0d0f0a10260e0d0f0c0e0d0e0c0e0c0f0c0f260f0c0e280e270e270e2710270d2710000d050000
TV_POWER_ON=260018019690153514361336131113111511131113121335133714341411150f15101411141113111435141212121411140f1411150f133615101337133513361336143614351300061394911436133613361312131114121211150f143613351436141014111412121213121212143414121312131113121212131113361411133613351535133514361335140006149590143514351436131213121410131113111534143514371212131115101312131113111435141114101511131014111510133613111336153513351435153415341400061493921436133513371312131212131112141212351336143613121212141212111412121113361511131112111511131114121236131212361534153414361434143613000d05
TV_POWER_OFF=260018019690153514361336131113111511131113121335133714341411150f15101411141113111435141212121411140f1411150f133615101337133513361336143614351300061394911436133613361312131114121211150f143613351436141014111412121213121212143414121312131113121212131113361411133613351535133514361335140006149590143514351436131213121410131113111534143514371212131115101312131113111435141114101511131014111510133613111336153513351435153415341400061493921436133513371312131212131112141212351336143613121212141212111412121113361511131112111511131114121236131212361534153414361434143613000d05
PROJ_UP=e9083400220c0b23210c210d210c210d0b22220c0b22220c210d210d210d0b220b230b23220c0b0001580d210d21230c220c0b22220c220d00000000
PROJ_DOWN=e90834000c22220c220c220c0c22230c210c220c220c0c22220c0c22220c210c220c220c0b22220d0b220c220c0001580d210d21230b220b00000000

default.items (under openhab\conf\items)
String TV_LIVINGROOM “TV” { channel=“broadlink:rm2:b4-43-0d-aa-80-87:command” }
String HT_PROJ “PROJECTOR” { channel=“broadlink:rm2:b4-43-0d-aa-80-87:command” }

default.sitemap (under openhab\conf\sitemaps)
sitemap default label=“My first sitemap”
{
Switch item=TV_LIVINGROOM label=“TV” mappings=[TV_POWER_ON=“On”, TV_POWER_OFF=“Off”]
Switch item=HT_PROJ label=“PROJECTOR” mappings=[PROJ_UP=“On”, PROJ_DOWN=“Off”]
}

screenshots
https://1drv.ms/w/s!AhLWD2HpO2hDkt0QNaotc-IKn79yuQ

Thanks for the help…CATO and ALL

EDIT :slight_smile:
I’m having these errors

2017-07-23 20:26:11.752 [ERROR] [dlink.handler.BroadlinkRemoteHandler] - Failed to transform PROJ_UP for thing Broadlink RM2 [192.168.30.121] using map file ‘broadlink.map’, exception=An error occurred while opening file.
2017-07-23 20:26:13.460 [ERROR] [dlink.handler.BroadlinkRemoteHandler] - Failed to transform PROJ_DOWN for thing Broadlink RM2 [192.168.30.121] using map file ‘broadlink.map’, exception=An error occurred while opening file.

1 Like

hi Cato,

is it possible to config a device with a broadlink.things file? If so, what is the format?

Thanks.

Hi,

I dont know but have previously wondered about the same. At that time the format was not documented anywhere. Let me know if you find out.

Is this for Alexa?

Cato

I’d rather have things setup via a file, so I don’t have to manually recreate after OH upgrades (which is uninstall/install on my hardware).

I’ve had a few goes at doing the file but with no luck.

The important part I’d need to know to do it are the parameter names, if you happen to know what they are?

Ps: I have Alexa controlling my RM2 & RM3 using the hue emulation binding and some virtual switches and rules. So not for Alexa, no.

Hi,
It looks like the binding is unable to open the transform file. I believe you may have placed it in the wrong folder it should be conf/transform and not openhab/transform which you suggest in your post. Let me know if that solves it.

Cato

2 Likes

I don’t seem to be able to find the link, anyway you can post it? Thanks

Thanks Cato… it is now working.
Thanks again

Hi Cato,

Thanks for the addon!
I have following types of broadlink’s smart sockets: SP2, SPmini, SP3 and will be happy to help with beta testing.
P.S.
I’ve tried to confIgure a SPmini with beta2 version of the addon, but with no success.

Cheers

Hi lurii,

I have sent you a private pm.

Cato

Hi guys

First you are really impressive

almost two weeks, that i am starting my home automation with OpenHab and Broadlink and IFTTT and i an definitely blocked.

[I want to do this :frowning:https://docs.google.com/presentation/d/160jB1x0aUeJYZHzyCclqr1QeqPfpAa6ya3lefFNdXDY/edit?usp=sharing)

i have several issues:

  • List item

Impossible to select an Item in IFTTT

and sorry to be a noob and i have gone over the doc but i do not understand the flow.

  • List item

should i add a new binding or use a binding ? i just need to save it under the folder add on?

  • List item

Could someone have the kindness to share some rules for TC2 Broadlink

Thanks

Hi Cato,

Just to clarify does this work with Mini R3? Planning to buy one for my HT

Thanks

yes it does - I have one set-up and working.

Thanks Neil