Broadlink RM-PRO and TC2 switch

@lostprophet Hi Vlad. I’m using the latest version of IHC, Tasker and RM Plugin.

I have edited the instructions above to make it clearer (I hope :slight_smile: ). Make sure all programs are running including Tasker and test out the RM Plugin URL on your PC

@mdmc95 Hi John, thank you very much, I really appreciate it. Unfortunately I did not manage to get the codes. What I did:

  1. installed RM plugin, installed Tasker
  2. opened RM plugin - enabled HTTP bridge, accessed the webpage to the phone’s ip address and specified port
  3. went into RM plugin - Device list - I can see my Broadlink listed
  4. with the RM plugin opened (because if I close it - the HTTP Bridge gets deactivated) - I switch to IHC for EU app - opened one room and removed the already learnt TC2 switch.
  5. re-added the TC2 and paired it with the Broadlink again - pressed all the buttons - including the All on, Alll off
  6. in the RM plugin - there is no code - when pressing on Code List it gives a toast err message that it cannot extract codes from the Broadlink app as I have no remote learned.

I don’t know what I am missing. Also, where Tasker comes here?

Thank you very much for your help

On your desktop PC, what do you see when you go to your android device’s IP address/port:

http://[android_ip]:9876

for example: http://192.168.0.25:9876

I cannot replicate right now - as I am at work, but on the PC I have a webpage with all the API options - amongst which there is also the Code List but it’s empty - CodeList = [] and it remains like that.
I will try to replicate tonight and send a screenshot of it.

Edit:
I replicated what I did, unfortunately with no sucess :frowning:. Here are the screenshots taken from the browser window where I accessed the RM Plugin HTTP. I can see that the device (RM Pro) is discovered, but if I add a new TC2 in the IHC app, the code is not captured by the RM plugin. The same error appears in the app and in the browser, the list is empty.

The TC2 RF code can be gathered from the latest Broadlink app for iphone. Here you can follow these steps to get the code:

  1. You should create two scenes from the app on the phone. The scene should include one action Turn on TC2 switch. the other scene should include Turn off TC2 switch.
  2. These scene scenarios is saved into the applications documents folder BLDataManager.sqlite. You should reach this file using the appropriate way (if you are jailbroken you can use Filza to reach this file. If you are not jailbroken backup your phone and use a third party iphone backup extractor.)
  3. Find a portable SQlite database browser and open the tables in the file. Find “BL_SceneDevInfo_List” table. the key starting with {“cmdParamList”} includes your RF code for your TC2 in “val” key.
  4. get this code convert it to base64 (follow hass.io recommended link) and use it in your configuration.yaml file.
1 Like

I managed to solve the issue by using IFTTT api calls and the existing IHC integration. On Android I do not think you can extract the RF codes.

I’ve been searching the web looking for how I would integrate my TC2’s to my HA, and I arrived here to this post. I read all 266 messages, and I saw many solutions, some of them are insane, some of them are really complicated… So here´s what I did. I will show with pictures… not all the people here are pro, and sometimes we have no idea what people here are trying to explain.

  1. Install BROADLINK MANAGER (For windows)
    2 - Open it, wait for the software finds your RM Pro…
    3 - Click LEARN NEW COMMAND and then LEARN INFRARED (yes, Infrared… I tried to use “learn RF” but never worked"
    4 - After click, look at the RM Pro… you will see a orange light… it is waiting for the command.
    5 - Open your E-control app (I dont know if it works with IHC)
    6 - Go to the tc2 you need the code, and then click ON (repeat all the steps, and then click OFF
    7 - Thats it!! a txt file will be generated with the code…

Thats it! you dont need to use script, you dont need to get files from your android device, and you dont need to convert your code to hex64 …It worked in my 10 TC2 all around the house…

ps: sorry about my english


1 Like

Hi, are they working well for you?

I had TC2 working well for years inside HASSIO, but since a couple of versione back, there is now a huuuuuuge delay (like minutes, crazy)

my tc2s are working fine… no delays… Do u have only 1 or many and all of them have delay?

I have 5 all with delays. It all started 1 or 2 versions ago. They all worked fine for years

are you on 108.6 or?

I will try now to use a Sonoff RF to send the messages to the TC2, hope it works. In order to get the codes where do I get this?
BROADLINK MANAGER (For windows)

The same version here … 108.6 I guess you wont have problems to use your SONOFF RF with your TC2, as long it learns the right codes.

you have 2 ways to get the codes from your TC2:

1 - The method already explained here by other users. download 3 files from the e-control app, download here and run the getBroadlinkSharedData.py file, and you will get all the codes. It works fine

2 - Download the software “Broadlink Manager” (for windows)… it is a very simple software. You just have to scan your local network, and it will find your RM2 Pro … After that, you just have to click LEARN IR (not RF)!!. And then u just have to use the e-control app, learning one by one. …just follow my screenshots.

I was never able to use the Sonoff RF with the TC2. Sonoff works for many 433MHz but for those TC2 not, you suceeded?

BTW I do have the codes of the TC2 already (, thats how I integrated TC2 with HASSIO long ago), which are a very long sequence of characters. But in the Sonoff bridge usually are just HEX or decimal codes , not long ones

I am also stuck with gathering the RF codes for TC2 switches. The option 1 doesn’t work for me, because I cannot setup the rm2 pro with eControl app, only with IHC. Option 2 works only for IR codes with IHC or with the newest Broadlink app.

1 Like

Why can´t you use the econtrol app? I have e-control, IHC and the newest one… you can configure all of them… I use IHC, but I have my e-control ready in case I need RF codes and stuff (I bought 2 more TC2, just have to wait them to arrive)

About the the option 2: It works with IHC ! I just tried here… After you scan your network, find your RM Pro and connect, use the option LEARN IR CODES, even if you want to learn RF Codes!! If you choose “learn RF codes”, you can manually or by app turn on an off your lights 100 times and nothing is gonna happen. Use Learn IR, open your econtrol or IHC app, and then turn on or off the lights… The code will be displayed right away in your broadlink manager.

Am I able to attach a video here?

Actually I don´t have the SONOFF RF …

for example, in one of my TC2s…

  1. When I download the 3 files from e-control app and extract the codes, they are like this:
Button Name: quadro

Button ID: 422

Code: e9144600df090916091616090916160909160916091616090916160916090916160909161609160916091609160909160916160916090916091609160916160909160916160909000148

Base64: 

6RRGAN8JCRYJFhYJCRYWCQkWCRYJFhYJCRYWCRYJCRYWCQkWFgkWCRYJFgkWCQkWCRYWCRYJCRYJ
FgkWCRYWCQkWCRYWCQkAAUg=

to have it working in my home assistant, I double the code (e9144600df090916091616090916160909160916091616090916160916090916160909161609160916091609160909160916160916090916091609160916160909160916160909000148e9144600df090916091616090916160909160916091616090916160916090916160909161609160916091609160909160916160916090916091609160916160909160916160909000148) and then access this site: http://tomeko.net/online_tools/hex_to_base64.php
Paste this code there and then copy the base64 code. That´s it! my HA works!

2 - when I use the broadlink manager, this is how I get the code:

2 different codes, for the same TC2, and they both work. Try both methods and then check which one is gonna work… I don´t know Sonoff RF work… it probably has an option “learn code”, and while its learning, use the app (IHC or e-control) to send the code, and then you will be able to capture it.

Maybe you already know everything I´m saying, but I´m giving details because other people may not know how to do…

yes I know I do the same as you.

But the Sonoff RF codes, are like ECB02G

I tried to set up the RM pro with eControl and it doesn’t work, but I haven’t tried to add a configured RM rpo to the eControl app before. Now I could add it, and finally I was able to get app the RF codes from eControl app with RM Plugin Lite.

can you help with your TC2S switches? im unable to get them into home assistant or even get the rf codes using my RM2 Pro Plus 3

Thanks missiles.
Appreciate your sharing, it works for me!!!
I tried many methods, only this works.
I am so exited because it bothers me for nearly a month and finally resolved