Anyone write code to create a virtual device that uses a in-wall switch module and smart bulb into 1 virtual device?

What @acjohnson55 said and maybe try this for grouping.