Broadlink Manager - Nicer way to Learn and Send IR/RF commands

I finally install the newer version of Broadlink Manager on a pi using the same tutorial you provided. Unfortunately, it still not working for me. When learning either type of codes, it just stuck on waiting. No codes, no errors. nothing. :frowning:

Hi duceduc,
Can you share how you added the RM4 Pro to Broadlink Manager?
I tried, but Broadlink Manager doesn’t stop scanning and my RM4 Pro is not recognized.
Did you put the RM4 Pro into AP mode before scanning?
Did you use this RM4 Pro with the Broadlink official app before trying to find it with Broadlink Manager app on Raspberry Pi?
I could use some help :pray:

I think your issue is that you added the RM4 Pro to the mobile app? Do not add the app after you connect to your wifi. HA and the Broadlink manager will not recognize it.
This is what I did.

Use the Broadlink app. Do not use the e-control or the ihc app. RM4 Pro needs to use the 1st.
Make sure you assign the rm4 pro with a static ip address in your router with its mac address.
Connect the rm4 pro to wifi via AP mode.
Once connected to your wifi, do not add the device to the app. Close out of the app. For me, I added the device to the app the first time and update the firmware. Then I started the process again by deleting from the app and reset the device.
Broadlink Manager should detect it now. I hope you will have better luck to learn the code after it is connected.

1 Like

I am unable to learn IR/RF codes via the Broadlink manager. How do we learn RF codes in HA. It states we can.

Thank you for the detailed explanation how to find the RM4 Pro in Broadlink Manager. I was able to find it on my system.
However, I’m also getting the same results like you when trying to learn an RF code. Broadlink Manager says the “RF Scan Completed Successfully”, but the app doesn’t show me the code. I just see the moving lines.

@mjeshurun
I’ve found another solution that may learn RF codes. I can confirm steps 1-5. I am able to add the device to the app while HA still detects it and is able to learn the code. HOWEVER, I just found out that my tv box remote is not transmitting RF. It uses bluetooth. Hope this solution will help you.

BTW: step 11 means that you will need to reset the rm4 pro after you learn all your rf codes. When you restart HA, the device will not be detect with HA any longer because you have added rm4 pro to the app.
So, delete rm4 pro device in the app. Reset rm4 pro and connect the device to wifi. I was wrong earlier that you need to connect rm4 pro via wifi and not AP mode. AP mode is fine and is faster. The key thing is not to add the device to the app once the device is connected to wifi. Just close the ap. Restart HA and use the codes.

1 Like

Thanks again :slight_smile:
To be honest, I’m trying to find the easiest way to capture the RF codes of 3 remotes, and later use the RM4 Pro with OpenHAB (not Home Assistant).
So I’m not sure this solution will work for me.

Hi All,

I’m a bit confused by this project. There seems to be a lot of different ways to install but none that work on an out of the box Raspberry pi home-assistant.io image.

Is it available in HACS? Can it be installed on the home-assistant.io image?

Thanks

Hi All,

Im a complete noob with docker and im very confused on how to install this.

I have installed docker toolbox on windows 10 and then i downloaded the zip from github.

I copied the contents in the docker toolbox path and then i run the following command inside docker:
docker build broadlinkmanager-docker-master
But im getting the following error:

error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=gxgz7fbzgj0r4dpr2wix0564r&shmsize=0&target=&ulimits=null&version=1: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

Im probably doing this all wrong. Can anyone help?

I bought two Broadlink RM mini 3 devices just recently (version 0x5f36 ), and have tried just about anything but haven’t got them to work. I mean, they do work if I add them via broadlink app, with that I can control my devices and also they learn IR commands, but outside of that, I haven’t managed to teach them IR commands that I can use in Home Assistant. I have tried HA integration, Broadlink Manger Windows program and now I also set up a separate Raspbian as I had an extra Raspberry Pi around, and installed Broadlink Manager docker there.

Windows version doesn’t even recognize the device, docker version does. But Learn command just don’t do anything until timeout.

Same thing with Home Assistant: I can use developer tools to launch learn_command, and when I do that, a white led lits up on my Broadlink, and it gives a notification to press button on my remote. But nothing happens when I press remote button, until timeout occurs again.

So, has anyone actually managed to get Broadlink RM Mini 3, version 0x5f36, to actually learning commands via Broadlink Manager or Home Assistant? Or, is this version of the device no good with HA?

-Windows version doesn’t even recognize the device, docker version does. But Learn command just don’t do anything until timeout.

Turn off any adblocker in browser and or Pihole if you have install. It worked for me once I did that.

So, has anyone actually managed to get Broadlink RM Mini 3, version 0x5f36, to actually learning commands via Broadlink Manager or Home Assistant?

What app are you using to connect the devices? I found out the iHC app works best to get the rm3 to connect to your wifi and later HA. The Broadlink app is flaky with the rm3. It may work and connected to HA. But once you reboot, HA, you loose connection to rm3.

I tried once again and this time turned adblocker off as well. My Pi has freshly installed Raspberry OS (20.8.2020 dated version) without any addons. When I have added my Pi, my Broadlink and my desktop computer to the same wifi network, Broadlink Manager can find the device:


But when I choose Learn IR command after pressing Actions, nothing happens.

I have tried adding BOTH my Broadlinks using IHC app, Broadlink app and Broadlink Manager windows app, and they all succeed adding my RM Mini 3 to my home network (as my router sees them and gives IP address), but whatever I do, I cannot learn IR commands, not with Home Assistant or with Broadlink Manager. Both sofware turn Broadlink led on and stay at waiting for IR signal, until timeout happens.

When I see Broadlink Manager’s supported device list, these are the supported RM Mini 3 devices:

  • 0x27c2, # RM Mini 3
  • 0x27d1, # new RM Mini3
  • 0x27de, # RM Mini 3 (C)

But as seen from my screenshot, my version is 0x5f36. That seems odd as all other devices listed are 0x27something, so either Broadlink Manager shows it wrong (how do you know which device you actually have?) or then this is yet another version and it cannot be controlled any other way than via IHC/Broadlink apps :confused:

I have the same RM3 as you.Try all the browsers you have install on your pc.

If HA detects the RM3, you have tried to navigate to developer tool and type in these settings to learn IR codes?

-I have tried adding BOTH my Broadlinks using IHC app, Broadlink app…

You don’t really need to add the RM3 to the app if you don’t plan to use the app. You just need the app to discover the RM3 to your router. Once that happens, close out the app and don’t add the rm3 to the app.I know for the RM4 Pro, once you add the device to the app, HA, Broadlink Manager will not detect it.

That’s encouraging, if you have the same model. I haven’t tried yet but Chrome, what did you use? But I don’t think it’s because of browser, because other methods fail as well.

Yes, tried that several times. I have this in configuration.yaml (also tried redbean as well):

remote: 
  - platform: broadlink
    host: 192.168.0.123
    mac: 'C8:F7:XX:XX:XX:XX'
    type: rm_mini3_newblackbean

And this in developer tools (HA sees the device, and also gives notification to push remote button, so everything should be okay but nothing is being recorded:

How that is done though without adding the remote to app? Because you give your wifi ssid and password with that app, and only when you press “Next” the app sends that information to the device, and when that process is done, the device is added to the app. I have been reading lots of posts saying that just give your wifi info but don’t add device to app, but how’s that done actually? Not sure if that was possible before, and apps (both IHC and Broadlink) have changed, but you do both adding wifi info and the device to the app at the same time nowadays.

However, I have also successfully used Broadlink Manager windows program to send wifi-info to Broadlink Mini that is in AP mode after resetting, and as I have seen my device on my router’s DHCP list, it should work, but again the same result, no IR commands learned. Then again, I am not sure if BM windows program handles my device correctly, as it doesn’t recognize it anyway.

How that is done though without adding the remote to app?

I don’t remember exactly off hands. If you use the AP method (Best method to use imo), I think you would stop after it says to connect back to your wifi network. You don’t recall a step that says add your device to a room of some sort during the setup in the app? You don’t want to add. Might be worth a shot to also assigned a static ip address to your broadlink once you know the mac address.

Any rate, for the rm3, it is ok if you add it to the app. It will still work. I have one of my rm3 added t othe app and I was still able to integrated with HA.

I can’t think of any other reason why HA isn’t able to learn IR code and Broadlink manager detects your device.The original author of Broadlink Manager posted and said he is working on adding more devices. Hopefully, he will get a chance to fix this issue so many users have posted. I think the iHC app allows you to connect your device to router and still be able to cancel last part of the setup where you add the device to the app.

I am using Chrome for windows btw. Have you seen this video of connecting Broadlink? Might be worth a shot if there is something he mentioned you haven’t tried.

I appreciate your efforts, but for me, it just doesn’t work, and I really don’t know why. I hadn’t seen that video, but even when I watched it, there wasn’t anything new I hadn’t tried. No matter the method I try, it always works until I am trying to learn IR commands. Then the white led just stays on on Broadlink, until timeout, and no signal received. And as I have managed to use my RM3 via app, and even teaching it some IR command, the device itself is not broken. I really don’t know what’s the reason I get stuck with teaching IR commands either by HA, Node Red or Broadlink Manager.

By the way, IHC doesn’t seem to support AP mode, Broadlink app does. I even tried it so that I prevented my Broadlink MAC address from accessing internet completely via router settings, then resetting the device (again), and using Broadlink app AP mode to add device. The app says after a while it failed, probably because my RM3 cannot access internet, but I can see from my router that RM3 has connected to my WIFI network). And Home Assistant still doesn’t read IR signals after launching remote.learn_command -service via developer tools.

@Gilean, when you click actions, does it bring you to this screen?

@BrianMac Yes. And when I press “Learn IR Code”, it says “Press button” (or something like that) and my Broadlink led turns white, waiting for remote button press. No matter how many times I press my remote button, it doesn’t notice it :frowning:

What browser are you using? Does you browser have any extensions installed?

Chrome, and at least duceduc used the same browser. I have Ghostery installed, but have tried this with Ghostery disabled as well, without luck. And since Home Assistant learn_command ends up in same state as Broadlink Manager, I don’t think it’s browser related?