Hi guys, sorry for asking this, I’ve done some searching, but not sure I’m doing the right thing(s).
Bit of a noob with HA, but trying to learn fast.
I’ve just got a RM4 pro, trying to learn front gate RF, along with blinds and a few other things.
From what I’m reading on here, you have to ‘stop’ the Android install from creating a Broadlink cloud account, but I can’t seem to find out how.
On my newly installed broadlink android software, after I select the country (aust), I’m then asked to ‘sign in’, either Google acct, Apple act, or broadlink acct?
Initially I did this, and tried the android software to read in RF (long story), but now trying to use the learn remote commands from H/A…
I’ve wiped the data from android broadlink, so do I just select google, or BL account and go through the next steps?
I did actually add the device to HA and tried to read in some RF code (albeit I had to press buttons multiple times before I got the green tick), but I couldn’t find the broadlink RF code file in the file explorer under .storage, even after trying a few times, hence me trying to re-do the android app to see if that fixes it.
Anyway, hopefully I’ve made sense and somebody can point me in the right direction…
The only reason to use the Broadlink app is to get the RM4 onto your wi-fi network - once you’ve put in the SSID and password you can stop, and delete it if you like. The HA integration is entirely local and doesn’t make use of Broadlink servers.
If you’ve already linked the RM4 to your Broadlink account you’ll probably need to reset it (as I remember there’s one of those pinhole buttons) and start again.
As you say, the codes are stored in .storage. They should have names something like broadlink_remote_24dfa7e87063_codes. It’s reassuring to know they’re there and you may need to copy them later (if you make custom Broadlink switches, for example) but you can’t edit them as it’s a json file.
Thanks Jack, I’ll give it a go again. I couldn’t see the broadlink_remote file… I’ll do the factory reset, get it on wifi (as I’ve stated, the version I have means that I have to login either with google, or with broadlink account, so not sure if that means I then have a web account after that).
I’ve setup the remote and it ‘seems’ to be learning codes (albeit I have to press the button many times before I get the green tick). I followed a recent instruction on how to get the broadlink to connect via python, and I managed to get it on to my wifi network fine, without using the android app now.
I’m using HAOS on a x86 pc… Using HA 2025.5.3.
I can see a .storage folder in File Editor (in HA, not windows mapped drive)… It says \homeassistant/.storage/
And has some folders in there (alarmo.storage, auth, backup, camera, cloud, core.analytics etc).
However, I don’t see any broadcomxxxx files when I scan in RF codes.
I also have a homeassistant\config folder, but it just has custom_components, and www folders…
So, it seems to read in the RF codes after lots of pressing, but when I go to test them, it says: Failed to perform the action remote.send_command. Unknown error
I’m assuming it’s not seeing the “up” command that I thought I’d recorded/saved:
Can you clarify how you are learning the commands. You state above that you managed to connect via Python but if you are also using Python to learn the commands then HA won’t know anything about them.
For HA to learn the command and create/save it to the .storage folder you need to follow the instructions in Broadlink - Home Assistant
Specifically, in HA go to Developer tools->Actions.
Choose the ‘Remote: Learn command’ from the drop down options.
Select your HA registered Broadlink via the Targets area/device/entity/label filters.
Enter the name of the device you want to learn, e.g. Sony BluRay
Enter the name of the command you want to learn, e.g. Mute
Choose rf as the command type
Click the ‘Perform Action’ button.
You will need to hold the button down to scan the frequency then again to learn. Don’t just look for the light on the Broadlink, HA will (I think) give you a pop-up alert or two.
Then have a look in your .storage folder to see if the broadlink_remote_xxxxxxxxxxxx_codes file has been created and check if the command is in there. If so then you can try sending it via HA remote.send_command.
I’ve setup the broadlink via the ‘python’ method. This is only to get it on to my wifi network, nothing more (ie, I don’t have to use the android online/web procedure). Specifics HERE.
I then use the method you have mentioned above (Remote: learn command) and HA responds with ‘press buttons’ etc, then a green tick after a minute or so of learning.
Repeat steps 2 for three buttons I’m testing (window blind controller).
I’ve then gone to look for the remote codes, but I don’t have the ‘broadlink_remote_xxx_codes’ file on my system anywhere. I can see homeassistant\config folder, but it just has custom_components, and www folders…
I then try a ‘remote: send’ command, but it comes back and says: “Failed to perform the action remote.send_command. Unknown error”
I can ping the broadlink remote, so I’m assuming it’s fine and on the network, and I’m getting the tick when I try and save RF codes, so not sure what I’m doing wrong, or what logs I can check to see what is going on.
Update 2: It’ still not working 100%. I did get it to ONCE write out a broadlink file, and had one button, but I’ve been unsuccessful since trying to get any other buttons recorded (even thought I get the green tick).
I’ll keep on persisting and see if I can find out why.
Update 1: Ok, ignore all that, Update!
I’ve just tried to learn a remote code again, and this time it’s working (not sure what changed!).
I can also see the broadlink_xxx file, so all seems to be good.
Thanks again Don, let’s just put it down to ‘IT problems’ and call it a day
That’s good you’ve made progress and managed to get some codes saved.
Just note that learning codes via the HA remote learn can be tricky, especially if you have a remote where short press and long press of the same button issues different commands. I’ve posted elsewhere about a method to overcome this but it is a bit complicated so I suggest you stick with the HA remote learn unless you find the commands you’ve recorded are unreliable.