Power cycle WiFi router

The solution I’m using at two locations is KeepConnect, my SmartThings use case is described here.

I’ve found it very reliable, particularly with the latest version of firmware.