Home automation – restarting the router
For several years I have been struggling with the Huawei router supplied by Spark. It’s a wireless Internet router, with 2.4 and 5G wifi. It basically does what it is supposed to, and does it quite well at times. My usage is heavy and complicated, lots of devices, 3 phones, 6 computers, 3 raspberry PIs driving cameras and relays (all with web servers), a smart TV and a server allowing access to all the various devices that are controlled by the PIs, and to my NAS disks. Oh, and some printers and scanners.
Like most routers I have owned it seems to have some sort of memory leak, and periodically it has to be restarted to fix speed problems with both the Internet and the WIFI.
I have wanted to automate this restart process in the same way I restart my 3 raspberry PIs, using a script running on my server, that restarts each PI in turn, then restarts itself. I have never worked out how to do it.
I am feeling a bit stupid, because I read a page explaining how to do it. No server script, no coding, just a socket with a timer to switch it on and off once a day. Just like unplugging it for 10 seconds, which is how I do it now.
The cheapest and best solution I could find was a TAPO P100 wifi switch socket, for $22.07 from PBTech. I already have a TAPO LED light system in my faux skylight, so the app was already on my phone. Set up was less than 10 mins.
I set it to turn the router off at 3.00am each day, and back on at 3.01 am.
Problem solved. Router is restarted everyday, a bit over kill as it will go a few days without intervention usually.
Update 16/11/2026
Just checked the router log. It restarted at 3.01 am as scheduled. All good.