Guide: How to learn broadlink RF codes

When you say start remote.learn.command. do you mean you hit call service? And that’s it?

***Right after I posted this I figured it out. Thank youuuuu. I had to dig deep to find the answer to make RF work lol

1 Like

Hi, does the 433.92 work for you? with broadlink rm 4 pro it doesn’t work, it reads the codes and everything, but when I send the order the curtain doesn’t receive it.

I tried it in the same broadlink app and in Home assistant and nothing, with 433 I have no problems, it is with the 433.92 only.

Greetings.

1 Like

Yep, same here. And when I set the 433.92Mhz in the default Broadlink mobile app, it works nicely. Is there a way to set frequency intervals in HA?

We have a Luminite RSF4 that controls 4 outdoor lighting circuits. It uses 433.92Mhz FSK for remote commands (4 circuits each with a simple one button on/off control toggle). I understand the BroadLink RM4 Pro will not be able to learn the commands from the existing remotes due to FSK. Do you think I can pair the RM4 Pro to the RSF4 receiver when putting the receiver in remote learning mode? Said differently, can an RM4 Pro send commands to an FSK RF receiver? If yes, that will be a huge step forward. Secondly, from what I have read (and hopefully not correct) is the Home Assistant integration with the RM4 Pro only works when the remote commands have been configured through Home Assistant. Can I do the remote commands setup via the Broadlink app and later incorporate them into HA routines etc?

I have a Broadlink RM Pro-E that I can learn and transmit RF with in HA.
The trick is to first read as ir (LED on Broadlink lights up) and then directly read as RF after that you can send your saved command :slight_smile:

Honestly, I always refer to this video for additing new devices. (364) Integrate BroadLink universal remote with Home Assistant - YouTube

1 Like

Thanks have added video to original post. The original post is written in 2018.

I having trouble learning RF codes. I have a generic curtain motor with a 15 channel remote. I’m trying to automate using an RM4 Pro. The using the new Broadlink app, the RM4 Pro is able to identify the frequency (433.82) but when it comes to learning the code, it just times out. Ive tried single pressing, multi-pressing and press & holding the key during the code learning phase.

When I trigger the remote.learn_command from HA, the yellow LED lights up. When I press and hold the key as per the HA notification, sometimes it goes to the next stage and sess press ‘x’ button again, but no code is learnt. The logs also say no radio frequency found in 30.0 seconds

I checked via file browser and don’t see the /config/.storage folder at all.

Any help?

when I had this issue followed these steps but was able to start at step 6.

Hey Raj, did you manage to get this sorted?

Same symptoms here, Broadlink App works perfectly, however I’m unable to learn it the codes from my remotes (433.92MHz…) that are easily added to Broadlink via the app. Cheers

Hey, no I read a bit about and it turns out that these remotes send random bits before and after the code for security reasons.

What I did was get a Tuya Curtain wall switch and did the automatons through that instead.

Hiya. Can you share how you manage to get the RF codes please. Been trying for a week now and no results. On the app, i click on the button I want to learn and then I click on learn simple RF code on the app. Following which, I press the physical remote button which i wish to learn and the app says learning sucessful and asks if i want to match or start learning ----- during which point I press the call service button in home assistant (remote: learn command - target = device chosen (not entity), filled in the field according but left alternative and timeout blank). Thereafter I click on start learning on the app and I then go back to the RMpro and click on the physical remote button again but nothing happens. Neither the app or home assistant picked up the signal.

Hello.

These are the directions I used that worked for me. PLEASE note the frequency yoir device has . If you are not sure then it is possible you are out of range for BroadLink.

I had this happen on one of my ceiling fans that was under 315Mhz

My solution was to buy a bond bridge, which is. A bit more money but much more powerful.

But anyways getting back to how I got this to work on my other stuff within range

  • Broadlink app; input the RF frequency, but don’t start “listening” for the command yet.

  • Go to Developer Tools > Services in Home Assistant, type remote.learn_command and fill in the entity_id for your RM4 Pro. For the Service Data I put the device, e.g. my LED strips, the command, e.g. “turn on”, and command_type: rf

  • Then you start the listening process through the Broadlink app. As soon as the Broadlink app says the RM4 Pro is waiting for a command, press Call Service in Home Assistant and immediately press the physical button on your remote

  • The Broadlink app may or may not fail to learn the code - it doesn’t matter. What matters is that you just learned the RF command for your device

  • Now you should be able to use that command in a script or wherever and it should work.

Good luck

Ahhhhhh Finally got it to work after a week + 2 days !!! Thanks image969

So here is how it work:
(basically prepare your broadlink app (add whatever device to RMpro+ and select RF) and home assistant (Developer tools >>Services>>Targets>>Device>>Command>>Commandtype:RF)

Here is the tricky part:

  • click on add functions or define a button on the app and immediately click on “call service” then hold onto one of the buttons on your physical remote. The red light on the device will come on and go off when the app records the frequency. Home assistant’s first notification will do likewise (turn on and turn off) - also the call service button will show a green tick.

At this point. Click on “call service again” and immediately click on “start learning” on the app which is next to “match again” (basically a reverse of what you did before) then press the button on the physical remote - which you wish to have recorded.

The red led on the device should have disappearedand the app should say that it has been successful and ask that you test the new button or entry out… check that the HA notification should be gone as well. You are 90% done.

Test out the newly created entry or button on the app by clicking on it - if it works (switchs on or off), give it a name and icon and save it. Once you save it, home assistant’s call service notification should display a green tick.

Otherwise! if any one of the steps above fail… click on “call service” again and immediately click on retry on the app (assuming the app learning process failed as well) and press the physical button.

Check the storage files for your broadlink remote … the code should be under your device and command given. IF the code is too short… it’s likely not to work when you send it, its usually long. You can test it, it it doesnt work try the steps again… the code recorded should be longer at some point.

something like this:
eAARAQkWGgcZBwnxCRYJFwkXCRYZBxkHCRYJFwkWGgcZBxkGGgcZBgoWCRcJFgkXCRYKFgkWCRcZBxkHCfEJFwkWCRcJFhkHGgYJFwkWCRYaBxkHGQcZBxkHCRYJFwkWCRcJFgkXCRYJFxkHGQcJ8QkXCRYKFgkWGgYaBgoWC09fj09zsjcjz09xjc0jc09zJ09J0JAAQWEKNJNFCVBNLDFVNMKLDFVFDSPVSPVMSDMPSEPSPSVCSDcZBwkXCRYJFwkXCBcJFgkXCRYZCBkGCvEJFwkWCRcIFxkHGQcJFwkWCRcZBxkHGQcZBxkGChYKFgkWChYJFgkXCRYKFhkHGQcJ8gkWCRcJFgkXGQcQCAAF3AAAAAAAAAA="

Hope this helps someone out there. Been at it fora looong time trying to figure this out. Not to mention, spending 3 days trying to pair the device to the app (rolls eyes).

Thanks. Just got it to work. Long hours ahead setting up 6 blinds!

I’ve been fighting for days with broadlink, so far i’m loosing :slight_smile:

Got a RM4 pro, Firmware: 52079.
Running HA 2024.11.1

Broadlink integrates easily with HA, 1 device, 1 entity (both called broadlink).

I use the Developer Tools → Actions → Remote: Learn Command

Target: the broadlink device, broadlink entity
Device: Roller
Command: Up
Command type: rf

After clicking Perform Action, i get the notification to sweep the frequency by pressing and holding the UP button. I do that and after a few seconds, it goes away, and asks to press again the Up button. I do that and all is ok.

This is when the problem comes… I have two more buttons i need to learn. The Down and the Stop buttons. It will not learn these. I tried every combination…

Delete the integration, delete the file from storage, starts learning the Down button, start learning the Stop button… those two buttons don’t work.

The log shows this:
Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:303
integration: Broadlink (documentation, issues)
First occurred: 5:35:08 PM (2 occurrences)
Last logged: 5:35:45 PM

Failed to learn ‘Down’: No radiofrequency found within 30.0 seconds

(same for Stop button)

Any suggestions…?

Thanks!