Defining slave devices

Hi,

I have decided to move from my own build home automation system to HomeAssistant. So far it is mostly ok. But now, I am faced with a weird problem.

I have a number of radio frequency (RF) curtains that I want to control via a Broadlink RM4 Pro device. I have all the codes I need from my previous setup and I understand how to create “scripts” that will do my bidding.

But I don’t feel that it is what it should be. What I really want to do is create a slave device with 3 commands (open, close and stop) that would be proxied through the RM4 Pro.

Is there a way to do that via YAML?

TIA
François