I pretty much like the idea. I am planning to configure something similar for my situation @ home sooner or later.
But for now I think we should be combining existing available platforms to achieve your goal. This remote is set up as actually a remote and the brains are mainly in your home automation software like Home Assistant for example. So if this was supposed to work right now, I think this should be set up by bundeling powers like Yio Remote + HA and use Node-Red to do the IF and ELSE statements. The remote could then solely use the flows designed in Node-RED.
To my knowledge, you wouldn’t want to have an intelligent system like this within the Remote software and have a small window to do and configure it all. If Marton decides to build this anyway, then I think a desktop software application is needed to design configurations like that. Then export it as some file (either XML or JSON) to then load the intelligence into the Yio Remote.
Buuut, before going down this road, I think that it’s best if we put more energy towards making the current software more complete, and use my suggestion first. Who knows what Yio Remote will bring in the future