Are you tired of Wi-Fi running 24/7, wasting power and creating unnecessary network congestion? Or do you want to limit your children's internet access at night? Set up automatic Wi-Fi shutdown on a schedule solves these problems without manual intervention. In this article, we'll explore all possible methods—from built-in router functions to third-party programs and scripts.
The methods vary in complexity: some require just a couple of clicks in the router's web interface, while others require installing additional software or even writing commands for OpenWRTWe'll describe each option in detail so you can choose the best one for your equipment. And if your router doesn't support timers, no problem: there are workarounds using your smartphone, computer, or smart plugs.
It's important to keep in mind that some solutions (such as scheduled shutdowns at the operating system level) only work for a specific device, not the entire network. Therefore, first determine your purpose: do you need Complete shutdown of the router or is it enough Internet blocking for individual gadgets.
1. Built-in timers in routers: step-by-step setup
Most modern routers (TP-Link, ASUS, Keenetic, Zyxel etc.) have the function Parental Control or Schedule, which allows you to create Wi-Fi schedules. Let's look at the process using popular brands as examples.
General algorithm:
- 🔧 Go to the router's web interface (usually at
192.168.0.1or192.168.1.1). The default login and password are indicated on the device sticker. - ⏰ Find the section with timers - it may be called
Schedule,Parental Control,Wi-Fi TimerorTime Settings. - ✅ Create a rule by specifying the days of the week and time intervals when Wi-Fi should be turned off.
- 🔄 Save the settings and reboot the router if necessary.
Below are detailed instructions for specific models:
| Router brand | Path to settings | Peculiarities |
|---|---|---|
| TP-Link (Archer, Deco) | Additional settings → Schedule |
You can create up to 8 rules. Supports disabling Wi-Fi only (no wired connection). |
| ASUS (RT-AX, RT-AC) | Wireless Network → Wireless Network Timer |
There is an option Disable the radio module — completely disables Wi-Fi, but does not affect the LAN port. |
| Keenetic | Home Network → Segments → [Network Name] → Schedule |
Flexible settings for each network (2.4 GHz and 5 GHz separately). |
| Zyxel Keenetic | System → Tasks → Scheduler |
You can bind the shutdown to specific devices by MAC address. |
⚠️ Attention: On some routers (for example, D-Link DIR-300) The timer function is unstable after a firmware update. If the rule doesn't apply, try rolling back to the previous software version or use the alternative methods in this article.
For routers with firmware OpenWRT or DD-WRT The process is more complicated, but it opens up more possibilities. For example, you can configure the shutdown of not only Wi-Fi, but also specific ports or services. More on that in the next section.
2. Automation via OpenWRT/DD-WRT: for advanced users
If your router is running on alternative firmware (OpenWRT, DD-WRT, Tomato), you can use cron jobs for scheduled Wi-Fi management. This method requires command-line knowledge but offers maximum flexibility.
Instructions for OpenWRT:
- Connect to the router via
SSH(use PuTTY for Windows or terminal for Linux/macOS). - Open the file with cron jobs:
vi /etc/crontabs/root - Add lines to disable and enable Wi-Fi. Example for disabling at 11:00 PM and enabling at 7:00 AM:
0 23 * wifi down0 7 * wifi up - Save the file (
:wqV vi) and restart cron:/etc/init.d/cron restart
For DD-WRT the path will be different:
- 📌 Go to
Administration → Commands. - 🖥️ In the field
Command Shellenter:0 23 * sleep 10; wl -i eth1 down0 7 * sleep 10; wl -i eth1 up(Where
eth1- Wi-Fi interface, check it throughifconfig). - 💾 Click
Save Startup.
⚠️ Warning: Incorrectly configured cron jobs can lead to loss of access to the routerIf you disable Wi-Fi and can't connect via cable, always test commands manually before adding them to the schedule!
If you are not confident in your command line skills, it is better to use graphical tools (for example, LuCI For OpenWRT) or return to the first method with the web interface.
Make sure you have access via LAN cable in case of an error
Check the current Wi-Fi interface name using ifconfig
Make a backup copy of your router settings
Test commands manually before adding them to cron
-->
3. Disabling Wi-Fi via Smart Plugs: A Universal Workaround
What should I do if my router doesn't support timers and the firmware can't be updated? Smart socket With a scheduling function, it's a simple and reliable solution. Simply connect the router to such an outlet and set it to automatically turn off the power at the desired time.
Advantages of the method:
- ✅ Works with any router, even the oldest one.
- ⚡ Saves electricity (the router is completely de-energized).
- 🔌 Can be controlled remotely via an app (for example, Mi Home for sockets Xiaomi).
Cons:
- ❌ When the power is turned off, all unsaved router settings (for example, traffic statistics) will be reset.
- ⏱️ After turning on, the router will take 1-2 minutes to boot up.
Popular models of smart sockets with timers:
| Model | Application | Max. power | Price (approximately) |
|---|---|---|---|
| Xiaomi Mi Smart Plug | Mi Home | 2200 W | 1 200 ₽ |
| TP-Link HS105 | Kasa Smart | 2300 W | 1 500 ₽ |
| Redmond SkyPlug | Ready for Sky | 3680 W | 1 800 ₽ |
Setting up a schedule in the app Mi Home:
- Connect the socket to the network and add it to the app.
- Go to
Device → Timer → Add. - Select
Disable, specify the time (for example, 23:30) and days of the week. - Create a second rule for
Turn on(for example, at 7:00).
4. Software solutions for Windows and macOS
If you only need to turn off Wi-Fi on one computer (for example, on a work laptop), you can do this without having to configure the router. Built-in operating system tools or third-party utilities will do the trick.
For Windows 10/11:
Method 1: Through Task Scheduler:
- Open
Task Scheduler(clickWin + R, entertaskschd.msc). - Create a new task:
Action → Create Task. - On the tab
TriggersAdd a schedule (for example, daily at 23:00). - On the tab
ActionsselectLaunching the programand indicate:C:\Windows\System32\netsh.exewith arguments:
interface set interface "Wi-Fi" admin=disable - Create a second task to enable Wi-Fi with an argument
admin=enable.
Method 2: Through PowerShell (to disable the adapter):
# Disable Wi-FiDisable-NetAdapter -Name "Wi-Fi" -Confirm:$false
Turn on Wi-Fi
Enable-NetAdapter -Name "Wi-Fi" -Confirm:$false
For macOS:
Use Automator or launchd:
- Open
Automatorand create a new oneQuick Action. - Add an action
Run Shell Scriptand enter:networksetup -setairportpower en0 off(replace
en0on your interface, check throughnetworksetup -listallhardwareports). - Save and assign hotkeys or schedule launch via
Calendar.
⚠️ Attention: On some laptops (especially with Realtek adapters) software disabling of Wi-Fi can lead to adapter hangs before rebooting. In this case, it's better to use hardware methods (such as a power outlet or router settings).
5. Mobile applications for Android and iOS
If you need to turn off Wi-Fi on smartphone or tablet Scheduled backups can be done without root access or complex settings. There are apps that automate this process.
For Android:
- 📱 MacroDroid — allows you to create macros based on time, geolocation, or events. For example: "Turn off Wi-Fi at 11:00 PM if battery level is > 20%."
- ⏰ Tasker — an advanced automation tool. You'll need to set up a profile with an action.
Net → Wi-Fi → Off. - 🔄 WiFi Timer — a simple application specifically for managing Wi-Fi on a timer.
For iOS The capabilities are limited due to Apple's policies, but there are workarounds:
- 🍎 Shortcuts (built-in app): Create an automatic action
Set Wi-Fiand tie it to time throughAutomation. - 🌙 Sleep Cycle or ShutEye: Some sleep apps have a feature to turn off Wi-Fi at night.
Example of setting in MacroDroid:
- Create a new macro:
Trigger → Time/Date → Time Range(for example, 23:00–07:00). - Add an action:
Connections → Wi-Fi → Turn off Wi-Fi. - Save and activate the macro.
Please note: on Android 10+ And iOS 14+ Apps are not allowed to directly manage Wi-Fi in the background. Therefore, some solutions may require manual start or use ADB-commands.
How to allow Tasker to control Wi-Fi on Android 12+?
Starting with Android 12, Google has tightened restrictions on changing Wi-Fi status. For Tasker to work:
1. Enable developer mode (tap "Build number" 7 times in the phone settings).
2. In the developer settings, enable the "USB debugging" and "Keep screen on while charging" options.
3. Connect your phone to your PC and run the command:
adb shell pm grant net.dinglisch.android.taskerm android.permission.CHANGE_WIFI_STATE
4. Restart your device.
6. Alternative methods: IFTTT-enabled routers and voice assistants
Some modern routers (ASUS RT-AX88U, Netgear Nighthawk) support integration with IFTTT (If This Then That). This allows you to create automations based on time, voice, or other triggers.
Example of setup via IFTTT:
- Register for ifttt.com and connect your router's service (for example, ASUS Router).
- Create a new applet (
If This Then That). - As a trigger (
This) selectDate & Time(for example, "Every day at 11:00 PM"). - As an action (
That) select your router and commandTurn off Wi-Fi. - Create a second applet to turn on Wi-Fi in the morning.
You can also use voice assistants:
- 🗣️ Alice (Yandex): "Alice, turn off Wi-Fi at 11:00 PM" (requires a smart plug or supported router).
- 🎤 Google Assistant: "Okay Google, turn off Wi-Fi in 1 hour" (works with Google Nest Wi-Fi).
- 🍏 Siri: "Hey Siri, turn on sleep mode" (requires setup via Shortcuts).
The advantage of this method is flexibility. For example, you can link Wi-Fi shutdown to:
- 📍 Geolocations (when everyone leaves home).
- 🔋 Smart plug battery charge level.
- 📅 Calendar (for example, turn off Wi-Fi on weekends).
⚠️ Please note: Integration with IFTTT and voice assistants requires the router to be connected to the manufacturer's cloudIf you have disabled this feature for security reasons, this method will not work.
7. Checking and troubleshooting
If automatic Wi-Fi shutdown does not work, check the following:
For routers:
- 🔄 Make sure that the time on your router is synchronized with the NTP server (Settings →
System → Time). - 📡 Check if your schedule rules conflict (for example, two rules for the same time).
- 🔌 If you use a smart plug, test it separately from the router (connect a lamp).
For PC/smartphones:
- 🖥️ On Windows, check the log
Task Schedulerfor mistakes. - 📱 On Android, grant the app permission to manage Wi-Fi (
Settings → Apps → Special app access → Manage all files). - 🍎 On iOS, make sure that
Settings → Wi-Fioption disabledConnection request.
Typical errors and solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| The timer on the router does not work. | Incorrect time zone | Set up an NTP server in System → Time |
| Wi-Fi disconnects, but the internet remains | Only wireless network works, LAN is active | Use a smart plug or set up port shutdowns |
| The Android app doesn't turn off Wi-Fi. | Background activity restrictions | Add the app to battery optimization exceptions |
| There is no internet after turning on the router. | PPPoE settings are lost | Check your provider login/password WAN |
If nothing helps, try reset the router to factory settings and reset the timer. It's also a good idea to update your firmware—sometimes scheduling bugs are fixed in new versions.
FAQ: Frequently Asked Questions
Is it possible to set different sleep times for 2.4GHz and 5GHz?
Yes, if your router supports separate network management. For example, on Keenetic go to Home Network → Segments, select the desired network and set up a separate schedule for it. ASUS this is done in Wireless → Professional → Wireless Timer (select the desired range).
Will turning off Wi-Fi at night save energy?
Yes, but it's insignificant. The average router consumes 5-10 watts per hour. If you turn it off for 8 hours daily, you'll save ~1.5-3 kWh per month (about 5-15 rubles, depending on your plan). The main benefit isn't the savings, but the reduction of background radiation and protection from night connections.
How can I turn off Wi-Fi for a specific device (for example, a child's) based on a specific time period?
Use the function Parental Control (Parental control) in the router:
- Find the MAC address of the child's device (in the router settings or via the command
arp -aon PC). - In the router, go to
Parental Control → Devicesand add the MAC address. - Create a blocking rule for the desired time.
Alternative: Set up a schedule on the device itself (for example, via Screen Time on iPhone or Digital Wellbeing on Android).
Is it possible to make Wi-Fi turn off when the load is low?
Yes, but this requires advanced settings. On routers with OpenWRT You can write a script that will monitor traffic through nlbwmon and turn off Wi-Fi if the speed is below a threshold (for example, 1 Mbps for 30 minutes). Example script:
#!/bin/shTHRESHOLD=1024 # 1 Mbps to KBytes/s
INTERFACE=wlan0
TRAFFIC=$(cat /sys/class/net/$INTERFACE/statistics/rx_bytes)
if [ $TRAFFIC -lt $THRESHOLD ]; then
wifi down
fi
There is no such function for standard firmware - you will have to use timers.
What should I do if the router doesn't turn back on after being turned off by the timer?
Possible causes and solutions:
- 🔌 Smart socket: Check if the settings in the app have been reset. Try reconnecting the outlet.
- ⚡ Router: If you are using cron or a router scheduler, make sure the enable rule is saved and active. Check the logs (
logreadV OpenWRT). - 🔄 Hanging: If the router does not respond, unplug it from the power supply for 30 seconds and then plug it back in.
If the problem persists, please adjust double rule (for example, switching off at 23:00 and switching off again at 23:05 in case of failure).