Guide: How to learn broadlink RF codes

Hi
I called “cancello dk1” my front gate. The device is a standard motorized gate provided by came with non rolling code remote.
If I complete the broadlink app configuration and configure that remote on button: It work.

Now, I tried and I got the two codes for my first and second gate.
If I try to activate remote.send in HA , It doesn’t work.

Now… eureka. It work!!!
I learned codes, I putted on HA

entity_id: remote.broirrf
device: cancello dk2
command: “b64:codexxxxxxxxx”
num_repeats: 2
delay_secs: 0.25
hold_secs: 1

And the gate is open… HAHAHAHAHHAHAHAHAHAH
I’m really feel happy and I want to send my biggest thantk you as I can because it was 4 month that I’m tryng and doing tests.

Only one question: Now On Broadlink APP I still Have the broadlink configured. Do I have to remove it, from broadlink cloud? Really I wouldn’t like to have in cloud the control for my gate, so I prefer to remove it, but… It’s most important that work.

1 Like

Hi,
I have same issue to learn RF codes. Please could you explain how do you finally learn RF codes in HA?
In broadlink app I can learn my RF remote command at 433.92Mhz, but from HA I get RM4 pro in learning mode without getting any code (but it works for ir command)

entity_id: remote.broadlinkrm4pro_rack_remote
device: Gate
command: OpenGate
command_type: rf
alternative: false
timeout: 30

many thanks!

Hi Aldo.
It’s very hard to do, but only because I never use point, to point, the guides.
finally this morning i do the same as Oliver answer.

Please be carefull about timing: It’s neccesary to click “learn” on home assistant and very quickly start learning from broadlink app…

I also try to read other guides online but this, in my case work.

1 Like

ok thanks, I have tried several times without success. I will try more times
thanks!

That’s great news Daniele! Congrats! I know how frustrating this is… :slight_smile:

Only one question: Now On Broadlink APP I still Have the broadlink configured. Do I have to remove it, from broadlink cloud? Really I wouldn’t like to have in cloud the control for my gate, so I prefer to remove it, but… It’s most important that work.

It’s up to you. Now that HA is working you don’t need the broadlink app at all. As i am always adding more RF devices, I found it more convenient to leave the RM4 added to the Broadlink app so that i’m ready to learn other devices quickly. But there is no requirement to leave it added.

I’d be interested to know whether you can use broadlink cloud for google voice commands AND home assistant simultaneously once the RF devices have been learned. Most guides on the internet mention to not allow the broadlink register itself with the cloud if adding to HA however once all your devices are learnt you may be to able to do it?

My only fear is that once registered with the broadlink cloud that the RM4 Pro can only communicate with one endpoint at a time? (eg. Just broadlink cloud until cloud access is disabled, like some sort of lock on the RM4 Pro) But for my use case it would be handy.

Working here for RF learning finally.

Now am able to teach Home Assistant my RF codes. At least my Zemismart Roller Blinds remote is working with HA now :slight_smile:

The key to get it to work was to have the Broadlink app paired to the RM4 Pro device and disable lock device in the Broadlink phone app settings.

Then from the app it is important to initiate the learn new button and set the correct RF frequency of the remote.

Then have Home Assistant also ready in the background:

Then start the code learning in Broadlink app and immediately after that click call service in Home Assistant.

That way the Broadlink app is setting the Broadlink hardware to the correct RF channel and HA can lear the code.

5 Likes

I’ve been struggling with rf learning codes for months. Yesterday , everything was smooth. I pointed the remote to the broadlink device while initiating the example in the dev section. And voila.
Writing this post just to inform you guys, the ones who gave up before can now retry with the new update

Just to say thanks for this solution.

I’ve wasted a few hours trying to get this to work. Your solution gets the codes straight away.

Good to hear that it worked for others too :+1:

I donno how to learn with the new “BroadkLink” app RF commands. In the video he uses e-control app. In the broadlink app what is the procedure to sweep frequency?

in the broadlink app, how to create a button?

1 Like

How did you do with RF?
I have to do sweep frequency as describied but donno how to create the button.

The broadlink integration has now been updated and you don’t need use the app to put it into RF learning mode.

You can use the developer tools to invoke the learning mode (service)

example

service: remote.learn_command
data:
  entity_id: remote.rm4_pro_remote
  device: bedroom3
  command:
    - down
  command_type: rf
4 Likes

ok let me try and let you know

It worked for me. Thanks.
“command_type: rf” clearly was the difference vs. IR buttons learning procedure.
the only difference is that the script asks you twice. first to “press & hold the button X” and second “press the button X”.

1 Like

Perfect. It worked for me. Thx a lot

This guide is pretty much out of date, so should I edit the first post and just link to the home assistant website guide here → Broadlink - Home Assistant ??

I must be smoking something. The RF simply does not work.

I open the Broadlink App on my phone, then initiate remote.learn on HA and call service. I get as far as “press & hold the button X” which I keep pressed even after the notification disappears. I don’t ever see the second “press the button X".

Is something perhaps broken or am I doing something wrong?

1 Like

I did not use the app. No more need of the app

example:
entity_id: remote.broadlink_rm4_pro_remote
device: window1
command: up
command_type: rf

They changed the app slightly. You don’t need to set frequency for every button in the remote anymore. Otherwise instructions still valid