You may want to look into Shelly relays. You wire them to the physical switch in the wall and can control them locally with Home Assistant or just individually via WiFi. Only downside for most folks (especially in the US it seems) is that they generally require a neutral wire to work.
The Home Assistant blog covered the whole thing very well: https://www.home-assistant.io/blog/2023/11/06/removal-of-myq-integration/