Hi I am trying to learn some remote commands for a Broadlink RM4 Pro. I’m using Remote: learn command under dev tools, actions. When I fill everything in and click “perform action” nothing happens. I do not get a prompt, LED in the device does not turn red, and there is nothing in the designed storage location afterward. What am I doing wrong?
Basically everything. Here is the YAML it generated:
action: remote.learn_command
target:
device_id: cb51b9e16d621767fb3c52c73625a252
entity_id: remote.universal_remote
data:
command_type: rf
device: awning
command: open
But something may have happened after all. I was getting help with Gemini and it advised me to create a script and told me that when I ran it a notification would pop up with instructions. Well a notification did not “pop-up” but I opened the notification panel and there were the instructions.
It seemed to work, but I don’t see any new entities or devices. Should there be?
UPDATE: Whether there should or not, the remote.send_command is working, so I think I’m good.
No. The only thing integrated with HA is the Broadlink RM4 itself. Home Assistant has no way of knowing what devices the remote is controlling, or what their state is, because RF and IR are one-way - there’s no signal coming back.
You can set up Broadlink switches to give you the assumed state of the devices (details right at the bottom of the Broadlink docs), or perhaps use input_boolean helpers to represent their state.
I created a feature request addressing this mild annoyance, maybe check it out and vote: