Well I did find a way to add RF commands using the Broadlink app. It’s similar to what others were saying (if you’ve looked on the forums for the convoluted steps people are taking to add one command). It didn’t work for me originally, but for some reason it just started working, so maybe it will work for you too.
- Begin adding a new RF command through the 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_commandand fill in theentity_idfor your RM4 Pro. For the Service Data I put thedevice, e.g. my LED strips, thecommand, e.g. “turn on”, andcommand_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 Servicein 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
commandfor yourdevice. - Now you should be able to use that
commandin a script or wherever and it should work.
Hopefully this works for you as a temporary, rather tedious solution for now. I’ll be waiting for the command_type: rf parameter to get fixed soon, as that process is very painful to do more than a couple times.