You can create a virtual switch and control the two switches from a simple automation. For virtual switch use this:
Virtual Things Edge Driver [YG] More info. here :