Trigger scripts via IR commands or how to get an DIY universal remote

Have been researching this myself for few days now so I decided to ask for support here.

I have 3 remotes: one for TV, one for my amp and the third one is a universal one. How do I set up the universal remote in home assistant to combine the 2 other remotes? I have a broadlink rm4 and I use latest HA. I’ve asked chatgpt to give me examples for 3 buttons: power, volume up and volume down. It seemed to only give me code that will send IR codes via RM4, but not the IR receiver part. I am new to this hobby so I am curious if I am using the wrong hardware, wrong scripts etc. I was able to learn the 2 remotes and control the devices via scripts from my phone.

The purpose would be to become independent of the phone so that kids can also turn on lights or start a radio on the hi-fi system.

To rephrase my question, how can I run/trigger scripts in HA via IR commands? From current research it seems I need an IR diode and a microcontroller. So Broadlink cannot do this? Thank you!

As far as I am aware broadlinks are transmitters not receivers. You will need to create your own remote control, either using esp32 and IR diode, or this which is easy to create.

Isn’t that what the remote should do by itself?
Most of them have buttons to switch between devices.
Not sure why you need to route this through HA.

But yes, you can’t do what you are asking for. You need something else to receive

pretty good alternative, thank you.

Going through HA wasn’t my preference however the hi-fi remote uses dual codes for most functions (why, I don’t know). The cheap remote I have doesn’t support this and I will not pay 200 euros for the new ones that can probably do it. So I’ll either explore more cheap remotes that can do that or go esp32 way. Why this was not made possible with Broadlink… beats me.