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

BTW, here is the device handler I based mine on, and it also handles the Fibaro FGS-222 (and other multi-relay devices) if that’s more use to you, it has a lot more code and options than mine does.