Home assistant bridge to homekit. In the home ap, create a scene that controls that switch.