

Exactly this. I use Shelly relays in the switch boxes and use the physical switch as an input to the Shelly relay. I have a couple AliExpress zigbee relays too that work well.
The trick is with three/four way switches where the smart relay needs continuous power and to be physically located at the end of the chain where power is actually switched to the light or outlet. Took me a while to figure that out but an SPDT relay with 120V coil solves that. The problem is space: fitting the relay to provide continuous power to the smart relay and the smart relay itself into a standard junction box with a physical switch and all the usual mess of wiring is not easy.





I’ve got one of those KeepConnect smart plugs which monitors a few different external servers and their own cloud, and automatically power cycles its outlet if things don’t work. They’ve damn near doubled in price since I’ve bought mine but it does work very well for me. Annual fee is reasonable too.
I could build something similar but I have too many projects as it is, and I feel I’d be fiddling with it endlessly just because I can. This is literally set and forget and in the last 2y it’s cycled the outlet 48 times, most of them in the middle of the night, presumably with my cable provider maintenance windows.