Creating a remote entity from buttons?

Hi,

I have two devices which I have successfully been able to control over serial using the terminal/shell_command and I can make these into buttons to control from the HA Dashboard.

I also have an Unfolded Circle Remote 3 which has a HA integration and can be used to control HA entities. However, it ideally needs a remote entity per device with every button integrated as I don’t really want to add each button as a separate entity.

Can I somehow turn the buttons into a remote entity? Or does anyone else have a clever way of doing this?

What is your final goal?

Combine the individual buttons somehow?
Control the buttons with remote connected to HA?

I think both of these can be done via automations.
Maybe template

The final goal is to expose a single entity to the remote that contains all the commands to control the device.

Would an automation work without having to have one automation per command?

Yes. A single automation can except multiple triggers and perform individual action per trigger.

Maybe a script is more appropriate. They are both the same in my opinion but maybe there is difference

Anyway

Trigger id is what you will use along with if-then action