Can I create a Device Handler to control two switches of my double relay device?

I had to do this for my Philio dual relay device. I made a device handler that spawns 2 child devices, it’s based on code from other devs and a virtual switch child device that’s already been published so you don’t need 2 handlers.

Have a look, it could be easily adapted to work with the Uno. I’m assuming it’s the creation of virtual child devices you’re struggling with, not the multi endpoint mapping.