One of the benefits of smart plugs that I’ve recommended a few times is the ability to turn the internet (i.e. your WiFi router) on and off via the smart plug. This can be particularly useful for enforcing an hour of “no internet”, or having a “dinner’s ready” routine that announces that food is ready, and then turns the internet off…!
But one of the obvious concerns of this approach is: if the WiFi router is off, how can a WiFi smart plug turn it back on again? After all, smart plugs usually say that they need WiFi to work! This actually has an interesting answer, but the gist is…
Some WiFi smart plugs (such as TP-Link Kasa) store “on/off” schedules on the device itself, so they work even if the internet is off. ZigBee and Z-wave smart plugs work the same way. But you’ll still limited in what you can do when the internet is off.
Why You Might Want To Use A Smart Plug To Turn The Internet Off
Hooking a smart plug up to your internet router (i.e. plugging a smart plug into the wall socket, and then plugging the router into the smart plug) might not seem too sensible, but it actually has a range of possible uses and benefits:
- Setting out a “no screentime” rule, and backing this up by disabling the internet. Yes smartphones have mobile internet data too, but turning the general WiFi off will usually help a lot for setting out such a rule.
This can easily be achieved by using timers (or schedules) on the smart plug, setting it to turn off at a set time (the start of the ‘no screentime’ rule) and turn on again at the end of the ‘no screentime’ rule. Your kids may not like it, but it’s a useful idea!
- A similar idea: turning the internet off during meal times. Constant screen use during family meals can have a range of downsides. They are a really important way of families to discuss their day to day lives and anything important, so having most people around the dinner table
There if you have set meal times, you can again use the timer/schedule feature on the smart plug to disable the WiFi router at this time. Alternatively you can build a routine on Alexa (or Google Home) which:
- Announces “dinner is ready” to all Echo devices in the house.
- Turns off the WiFi router.
- Anything else which is useful… sets the lights to a dimmer, more ambient setting perhaps?
- Disable smart cameras. This might seem a weird point, but bear with me: many smart cameras don’t have local storage. They instead upload any video footage to the cloud in real time. This means that if the internet is off, any captured video footage will be lost.
This can vary per smart camera, of course, but the main ones (Ring and Nest) both work this way. Therefore if you wanted to temporarily disable your smart cameras – perhaps you want privacy from your backyard camera whilst you have a backyard party – you can use a smart plug to turn the internet router off. Problem solved!
- Manage your router’s power usage. Whilst many internet routers are fairly low power (with a typical household router only costing around $10 per year), some more expensive routers will use more power. Therefore using a smart plug which has energy measuring capability can be a good way of tracking how much the router is costing you.
The Problem With Using Smart Plugs When The Internet Is Off
So the general way that smart plugs work (once they’re already setup) is that you pull out your smart phone, press “on/off” on the smart plug app, and it’ll turn the plugged-in device on/off accordingly.
Or you issue a voice command to your Echo (or Google Home) device, which will interact with the smart plug in the cloud, and carry out your instruction (e.g. turning the smart plug on/off, as you requested).
The flaw with both of these approaches is that when you use your smart plug app or issue a voice command, this sends a request up through the internet to the smart plug cloud service. For example, when you say “Alexa, turn my Kasa smart plug on“:
- Your Echo device hears your request.
- It sends this to Amazon, who turn your words into machine language (i.e. a set of instructions that it can carry out).
- Amazon Alexa (in the cloud) will understand that you want to turn your Kasa smart plug on, so it sends a request to TP-Link Kasa’s servers.
- Kasa’s servers then sends a request to your smart plug, telling it to turn on.
Phew! That’s a long winded explanation, but have you worked out the problem yet? Yes, you guessed it:
The Problem: if your internet router is off, your request won’t make it to the public internet! The same is true if you use the phone app instead.
This is the big downside of using smart plugs to control your internet – but thankfully there are some solutions…
Solution #1: Use A Quality Wifi Smart Plug
Some of the better quality WiFi smart plugs actually store the on/off schedules on the device itself. This is true of TP-Link Kasa’s range of smart plugs which are often available at a great price on Amazon:
The way that Kasa smart plugs work is that when you set-up schedules to turn the smart plug on/off at set times, these schedules are actually stored on the device itself. This means that it’ll still come back on even when the WiFi router is off.
It actually makes perfect sense to design smart plugs this way, otherwise Kasa’s cloud servers could be bombarded at peak times due to having to send out loads of ‘pings’ to turn smart plugs on/off at key time. It’s much better for smart plugs to store schedule/timer information on the device itself.
Unfortunately many don’t do this, even Gosund smart plugs which are a big seller on Amazon. So it’s worth sticking to a make like TP-Link Kasa’s smart plugs if possible.
Having said all this, one problem with Kasa’s smart plugs is that you won’t be able to turn the internet back on with the app (or a voice command) when the internet router is off. This is because this is a manual action, which couldn’t be stored on the device. Solutions 2 and 3 cover ways around this.
Solution #2: Use A Zigbee Or Z-wave Smart Plug
ZigBee and Z-Wave are different ways that computerized devices can speak to each other (i.e. they’re different to WiFi and Bluetooth). I go into this in a lot more detail here, but all you need to know for now is that ZigBee and Z-Wave work independently of WiFi.
This means that if your WiFi router is off (and plugged into a ZigBee or Z-Wave smart plug), it can still be turned back on using a ZigBee or Z-Wave ‘message’ to the smart plug.
What does this mean in practise? Well, Philips Hue’s devices all communicate over ZigBee – to a Hue Bridge setup near your router. Some of their more modern products also work via Bluetooth on your phone.
Since Philips Hue’s smart plugs ‘speaks’ ZigBee (not WiFi), they can potentially turn back on even if your internet router is off. The way that you do this will vary, though.
If you have set-up various timers (schedules) for the smart plug, these will be stored on the Hue Bridge and messages will be sent to the smart plug (from the Hue Bridge) when it’s time to turn on/off.
In this way they’re like the Kasa smart plug (which also stores schedule information within the house, so they don’t rely on internet access). But where things differ is that Hue’s smart plug can also turn the router back on even if the router if off:
- If you have the latest Bluetooth compatible smart plug, you can use the Hue Bluetooth app to turn the router back on.
- If the smart plug doesn’t support Bluetooth, fear not. Whilst you won’t be able to use the normal Hue app to turn the smart plug on (since this will require internet access), you can use Hue’s dimmer switches or tap buttons.
Huh – using a dimmer switch to control a smart plug?! Well yes… this actually works well. Hue’s dimmer switches and tap buttons allow you to turn ZigBee devices on and off.
Since the Hue smart plug is also ZigBee, it’ll be able to ‘listen out’ for the Hue switch/button and turn back on as needed.
The Hue dimmer switch is often cheaper than the tap switch, and it’ll also support dimming of your bulbs – so it’s probably worth buying compared to the tap switch in my opinion.
A final solution is to simply purchase a smart plug which has a physical on/off button on its side.
Both of the smart plugs I’ve spoken about so far (Kasa and Hue) have this. Whilst it does mean that you have to make the long, arduous journey over to your router to turn it back on (via the smart plug’s on/off button), it can be a good simple solution if you don’t want to rely on schedules or ZigBee buttons.
Just turn your WiFi router off via your smart plug (using your voice, the app or a routine), and then turn the smart plug on (manually) again when you’re done. Simple!
Amazon’s smart plug also has a physical button on its side.
Solution #4: Use YoSmart’s YoLink
YoSmart’s YoLink line-up includes a smart plug, but what makes YoLink a bit different is that they use LoRa (long range communication), not Wi-Fi. This means that they are also perfect for turning your internet router off, because they don’t depend on Wi-Fi either.
Naturally you still need a way of turning the YoLink smart plug on again, so in this sense you will have similar issues as you would with Philips Hue, but it’s still good to know that YoLink aren’t Wi-Fi dependent.
You can, of course, create a time-based schedule for the YoLink smart plug to turn back on, and because this schedule is stored on the YoLink hub, it doesn’t require the internet for the schedule to work.
Note: One downside here is that you will need to purchase the YoLink Hub (which is $24) before you can use the YoLink Smart Plug.
If you have any questions, feedback or suggestions about this article, please leave a comment below. Please note that all comments go into a moderation queue (to prevent blog spam). Your comment will be manually reviewed and approved by Tristan in less than a week. Thanks!
18 thoughts on “Using Smart Plugs To Turn Your Internet (WiFi Router) Off & On”
Hi Tristan, thank you very much for all the information. What I would like to do turn the router automatically on when I come home. Do you think this is possible with one of your solutions?
Hi Jeroen, solution 2 is probably going to be closest to what you will need.
Basically a cloud and WiFi based smart plug will have obvious issues, but if you had a Philips Hue smart plug (for your router) and then a Philips Hue motion sensor (mounted wherever it’s best to detect that you’re coming home – inside or outside), you can then set the Hue sensor to turn on the Hue plug when you come home.
And since this is all over locally controlled ZigBee, not the cloud, it shouldn’t matter that your internet is currently off.
Hope that makes sense.
Hi Tristan, I have security cameras that I monitor remotely, but when we have an outage wifi won’t work until the modem is turned off and on again or unplugged briefly. How can I do that remotely with a smart plug
That’s a good question – without a clear-cut answer, unfortunately.
Some smart plugs will execute any timers/automations even when the internet is off, such as the Kasa smart plug range and Philips Hue’s smart plug. So you could potentially hook one of these smart plugs up to your modem, and automatically restart it a few times a day (assuming the modem is quite reliable and always comes back online without issue after restarting it). This is a bit of a hack, but it should work well enough overall.
Alternatively, if you have decent mobile data in the area, you could look at a mobile 4G/5G hotspot – and connect your smart plug via this. Then, even if your main WiFi goes out, you can still control your smart plug (and restart your modem) without issue.
So there are a few options open to you, thankfully. I hope that helps give a lead on possible solutions.
A very helpful article, thank you.
I have a system of routers which, when the Wi-Fi becomes unstable they need turning off and on again in a particular sequence.
8x Mech nodes
Sequence i must follow is:
ISP modem on wait a few mins
Main router on wait a few mins
Network switch on wait a few mins
Then each of the mesh nodes one at a time, waiting each time for it to connect.
Any way I can automate this process with TP Link Kasa?
Thanks for the comment, I’m glad you found the article helpful.
That’s a nice setup for sure, but I definitely feel your pain about having to power cycle everything in a certain sequence. Been there, done that – it’s frustrating for sure!
In this case, TP Link Kasa won’t be sufficient by itself (unless you know some programming, and can code up a custom solution that monitors for downtime, then issues local reboot commands to each smart plug – there’s some Kasa clients on GitHub for this). Something like HomeAssistant, Hubitat or Samsung SmartThings might be your best best – this forum thread shows that this is possible with SmartThings.
It will work if you use 3 Smart plugs one for each device you are controlling. I use 2 Amazon Smart Plugs (which save settings on the plug) to control turning off then on 1 Arris Surfboard Cable Modem then waiting and turning on 1 Linksys EA7500 Dual-Band Wi-Fi Router for Home (Max-Stream AC1900 MU-Mimo Fast Wireless Router). I set up routines to turn both plugs off, then a couple of minutes later turn the Modem plug back on, and then a couple of minutes later turn the Router plug back on. Just use 1 smart plug per device you are controlling. In your case 1 for modem, 1 for the router, and 1 for the switch.
Nice tips, thanks Tom!
And how do you turn it back on when wi-fi is off?
The article discusses this at various points, but you have a few options:
I have a NAS at home, which I use a lot. But when I’m on travel, if my router has lost the connection, I can’t access the NAS and the majority of the time, the solution is to reboot the router. Obviously, this is not easy if I’m not at home and the home is not connected to the internet.
What is your best solution to reboot the router in that situation, supposing you are travelling abroad? is “use a ZigBee or Z-Wave smart plug” my solution?
Unfortunately this is a bit of a problem all round (by default). I’m not aware of any smart plugs that can easily be configured to (do something) after a power outage.
With a NAS, does yours also have a physical power button for on/off? I have DLink and Synology NASes, and both of those do. So you would also need to consider that even if a smart plug switched back on, the NAS might still be off.
This article (discussing SwitchBot) might be more helpful to your use case?
What about Yolink, it uses LoRa technology that doesn’t use internet.
Ah, great suggestion – thanks Bit2in! I have updated the article to mention YoLink. I think it’s pretty cool that their smart home platform uses LoRa – it’s an interesting communication method for smart devices.
Thank you so very much for the article. Very informative and helpful. I’m a novice trying to update my knowledge of new technologies. Please keep up the good work.
Thanks William, I am glad you found it helpful!
Thanks Tristan , I achieved a solution to restart my router by leveraging Node-Red, Zigbee in Home Assistant and, a ZigBee smart switch. Using an event node whenever the switch is turned off I trigger a wait until node for 35 seconds, on expiration it triggers a call service node to turn the smart plug back on, everything runs locally on my Home Assistant server (Raspi 4). It is also scheduled to restart every night by 4am sending an interactive push notification to my phone that can override the restart if I am gaming or actively using the internet connection.
That sounds like a great solution, thanks for sharing it Tony. I love the idea of the interactive notification too, in-case you’re actively using the connection.