I bought a Broadlink RM4C Pro and also struggled with the setup.
Based on the instructions above, I finally got it to work.
Here are the steps I followed.
Prerequisites:
-
Add a new “UserDefine” device in the BroadLink app on your phone.
-
Add a control button for the device and verify that it works.
-
Connect the BroadLink to Home Assistant through the corresponding integration.
-
Install the “File editor” addon.
-
In the addon’s configuration, unhide the .storage folder (remove it from the dirs_filter list).
Learning the Command in HA:
-
Go to Developer Tools => Actions.
-
Select the action
remote.learn_command. For the target, choose your Broadlink device. Then, fill in the following:
-
Device: An arbitrary name for your device, e.g., bathroom_wall_strip
-
Command: An arbitrary name for the command, e.g., power
-
Command Type: rf
-
In the BroadLink app, go to your UserDefine device and tap
add functional buttonsat the bottom, thenlearn simple RF code. The frequency from the last connection should be pre-filled. PressNext. -
After this, the indicator light on your Broadlink device should turn orange.
-
As soon as the light is on, click
Perform actionin Home Assistant. -
Next, press the button on your physical remote. The indicator light should turn off and then light up again. A green checkmark should briefly appear in the HA UI.
-
As soon as that happens, press the button on your remote again.
-
Another green checkmark should briefly appear in HA.
-
If everything was successful, you can find the new command in the “File editor” in a file named something like
/homeassistant/.storage/broadlink_remote_xxxxxxxxxxxx_codes. -
If the command doesn’t appear, something went wrong. Try the process again. Personally, it didn’t always work for me on the first try.
Example of a command that should appear in the broadlink_remote_..._codes file:
{
"version": 1,
"minor_version": 1,
"key": "broadlink_remote_348e893324c9_codes",
"data": {
"bathroom_wall_strip": {
"power": "scCkAJyeBgASAAGADyYQJSoMDycPJikMKA0oDQ8mDycOKCcNDycoDiYODigOJw8nDigOJw8nDycPJycNDwABhw8nDycnDg4nDycoDScOJw4OKA0pDSgnDg4nJw8mDg4oDSkNKA4nDycPJw8nDignDQ8AAYgOJw4oJw0PJw8nKA0nDicODSkOJw4oJw4NKSYOJw4NKQ4oDSkNKA4oDigNKA4oJw0PAAXc"
}
}
}