Managing your Wi-Fi network with a physical or software switch is a convenient solution for energy savings, security, or parental controls. But how do you properly connect such a switch so it works reliably and doesn't reset your router settings? In this article, we'll cover all the options: from simple buttons on a power outlet to smart switches controlled via a smartphone.
There are three types of Wi-Fi switches: mechanical (interrupt the router's power supply), software (disable the network via the web interface) and smart (integrated into automation systems). Each option has its own connection nuances. For example, a mechanical switch in a socket is suitable for a budget solution, but can lead to configuration failures with frequent outages. And smart relays like Shelly Plug S or Sonoff S26 allow you to manage the network remotely, but require configuration in a mobile application.
It is also important to take into account that some routers (especially models from TP-Link Archer or ASUS RT-AX) have a built-in function Wi-Fi Schedule — it allows you to set up automatic scheduled network shutdowns without any additional devices. We'll cover all these methods, as well as common errors that cause the switch to malfunction.
1. Mechanical switch: connection via socket
The easiest way is to use socket with a button or surge protector with switchThis method is suitable for routers that don't have a software-based Wi-Fi disable feature. Simply connect the router's power supply to such a power outlet and control the network with a physical button.
However, this method has its disadvantages:
- 🔌 Reset settings: Every time the power is turned off, the router reboots, which can lead to DHCP failure or loss of connected devices.
- ⚡ Equipment wear: Frequent switching on/off reduces the lifespan of the capacitors in the power supply.
- ⏱️ Launch Delay: After turning on, the router takes 1–3 minutes to initialize the network.
If you choose this option, follow these simple instructions:
- Connect the router's power supply to a power outlet with a switch.
- Make sure the button is in the on position
ON. - Wait until the router is fully loaded (the indicators should be steadily lit).
- To turn off Wi-Fi, simply turn the switch to the on position.
OFF.
⚠️ Attention: If your router has a backup battery (such as office models), a mechanical switch won't interrupt the Wi-Fi connection. In this case, a software solution will be required.
2. Disabling Wi-Fi via the router's web interface
Most modern routers allow you to turn off Wi-Fi. without physical interruption of power supplyThis is done using the device's web interface. This method is safer because it doesn't require rebooting the router and preserves all settings.
Instructions for popular brands:
| Manufacturer | Path to settings | Disable option |
|---|---|---|
| TP-Link | Basic → Wireless |
Button Disable Wireless Radio |
| ASUS | Wireless → Professional |
Parameter Enable Radio: No |
| Keenetic | Home Network → Wi-Fi |
Switch Turn on the hotspot |
| Xiaomi | Settings → Wi-Fi |
Button Turn off Wi-Fi at the top of the screen |
After disabling Wi-Fi via the web interface, the router will continue to distribute internet via the Ethernet cable, but the wireless network will become unavailable. To re-enable Wi-Fi, simply reset the settings.
Log into your router's web interface (usually at 192.168.1.1)
Log in (default logins/passwords are indicated on the router sticker)
Find the wireless network settings section
Save current settings (in case of failure)
-->
⚠️ Attention: On some routers (for example, Zyxel Keenetic) disabling Wi-Fi via the web interface is reset after a reboot. In this case, use the schedule (Wi-Fi Schedule) or smart relay.
3. Smart sockets and relays: Wi-Fi control from your smartphone
Suitable for remote control of router power supply smart sockets with Wi-Fi support, such as:
- 🔌 Sonoff S26 - budget relay with support eWeLink.
- 🌐 Shelly Plug S - works without the cloud, integrates with Home Assistant.
- 📱 Xiaomi Mi Smart Plug - compatible with the ecosystem Mi Home.
- 🔄 TP-Link Kasa KP105 - easy setup via app Kasa Smart.
The advantages of this method:
- ⏱️ Remote control: You can turn on/off the router from anywhere in the world.
- ⏰ Automation: setting up a schedule (for example, turning off Wi-Fi at night).
- 📊 Monitoring: Some models show power consumption.
Step by step instructions for Sonoff S26:
- Connect the smart socket to the 220V network.
- Install the application eWeLink and register.
- Add your device to the app via
Add Device → Wi-Fi Device. - Connect the router's power supply to the smart plug.
- Control your power via an app or voice assistant (e.g. Alice or Google Assistant).
What should I do if my smart plug won't connect to Wi-Fi?
Make sure your router is operating in 2.4 GHz mode (most smart devices do not support 5 GHz).
Restart the outlet (hold the power button for 5-10 seconds).
Check if your router's firewall is blocking connections from new devices (disable it temporarily).
Reset the outlet to factory settings (usually with a button Reset on the body).
Important: If the router is connected to a smart plug, its web interface will become inaccessible when the power is turned off. To avoid being blocked, configure an exception for your PC or smartphone in the router's firewall rules.
4. Wi-Fi switch with button: connection diagrams
For lovers of “hardware” solutions, there are specialized ones Wi-Fi push-button switches, which are installed in the router's power supply circuit. Popular models:
- 🔘 WiFi Switch Button — compact button with relay, mounted on the wall.
- 🔧 BroadLink RM4 Pro — universal remote control with IR and RF support.
- 💡 Aqara Wireless Switch - works through a gateway Mi Home.
The connection diagram is simple:
- Disassemble the router's power supply plug (or use an adapter).
- Connect the phase wire to the input contact of the switch.
- Connect the output contact of the switch to the phase input of the power supply.
- Leave the neutral wire unchanged.
- Close the case and secure the switch in a convenient location.
Example of a diagram for WiFi Switch Button:
~220V socket
│
├───┬───→ Zero (N) → Router power supply
│ │
│ └───→ Phase (L) → [Switch Input]
│
└───────→ [Switch Output] → Phase (L) → Router Power Supply
⚠️ Attention: When working with electrical wiring, observe safety precautions. If you are unsure of your skills, entrust the connection to an electrician. Incorrect connections can cause a short circuit or damage the router.
5. Automatically turn off Wi-Fi on a schedule
If you don't need manual control, you can set it up Automatic Wi-Fi shutdown by time. This feature is available in most routers and smart plugs.
For example, in routers TP-Link:
- Go to the web interface at
192.168.0.1(or192.168.1.1). - Go to
Advanced → Wireless → Wireless Schedule. - Specify the days of the week and times when Wi-Fi should be turned off.
- Save settings (
Save).
In smart sockets (for example, Shelly Plug S) the schedule is configured in the mobile application:
- Open the app Shelly Cloud.
- Select your outlet.
- Go to
Schedule → Add New. - Specify the on/off time.
- Save the rule.
6. Typical mistakes and their solutions
Users often encounter problems when connecting a Wi-Fi switch. Let's look at the most common ones:
| Problem | Possible cause | Solution |
|---|---|---|
| The switch does not control the router. | Incorrect phase/neutral connection | Check the connection diagram with a multimeter |
| The router does not turn on after being turned off. | Firmware or capacitor failure | Wait 5 minutes, then turn on the power again. |
| Smart plug won't connect to Wi-Fi | The router only works on a 5 GHz network. | Switch your router to 2.4 GHz mode or use a repeater |
| Wi-Fi turns off by itself | The schedule or parental controls were triggered | Check your settings Wireless Schedule in the router |
If, after connecting the switch, the router starts to operate erratically (frequently reboots, loses connection), the cause may be:
- 🔋 Poor quality power supply: replace it with the original one or one with similar characteristics.
- ⚡ Power surges: Use a power strip with surge protection.
- 📶 Router overheating: Provide adequate ventilation (do not place it in a closed cabinet).
7. Alternative ways to manage Wi-Fi
If a physical switch doesn't work for you, consider other methods:
- 📵 Airplane mode on your router: some models (for example, ASUS RT-AX88U) have a quick Wi-Fi disable button on the body.
- 🖥️ Scripts on PC: by using
Pythonand librariesrequestsYou can send commands to the router to turn Wi-Fi on/off via API. - 🤖 Voice assistants: if the router supports Alexa or Google Home, you can control Wi-Fi with your voice (for example, “Alice, turn off Wi-Fi”).
- 🔄 Double network: Set up a guest network and turn it off on a schedule, leaving the main network always on.
For advanced users, the option with is interesting control via SSHFor example, on routers with firmware OpenWRT or DD-WRT You can disable Wi-Fi with the command:
ssh admin@192.168.1.1
uci set wireless.@wifi-device[0].disabled=1
uci commit
wifi down
To turn Wi-Fi back on, use:
uci set wireless.@wifi-device[0].disabled=0
uci commit
wifi up
⚠️ Attention: Interfaces and commands for managing your router via SSH may vary depending on the model and firmware. Please check your device's documentation before using it.
FAQ: Frequently Asked Questions about Wi-Fi Switches
Can I use a regular light switch to control my router?
Technically yes, but it's unsafe. Regular light switches aren't designed to handle the router's load (especially if it consumes less than 100 watts). Furthermore, they lack arc protection, which can cause the contacts to melt. It's better to use specialized outlets with switches or smart relays.
Why doesn't the router turn on after turning off the power?
This can happen for several reasons:
- The fuse in the power supply has blown (check with a multimeter).
- The capacitor is faulty (swelling or electrolyte leakage).
- Firmware failure (try resetting the router with the button)
Reset).
If the router does not respond when turned on, take it to a service center.
How do I turn off Wi-Fi on just one device without affecting others?
Use the function MAC Filtering or Parent Control in the router settings:
- Find the MAC address of the target device (usually found in its network settings).
- In the router's web interface, go to
Wireless → MAC Filtering. - Add a MAC address to the blacklist or set up a blocking schedule.
You can also use apps like NetCut (for Windows) or Fing (for smartphones) to temporarily disconnect devices from the network.
Will turning off the router at night save energy?
Yes, but it's minimal. The average router consumes 5-10 watts per hour. If you turn it off for 8 hours every day, the savings will be about 1–2 kWh per month (approximately 5-10 rubles, depending on the plan). The main benefit isn't the savings, but the security: a disabled router can't be hacked remotely.
Is it possible to control Wi-Fi via a smart speaker (Alice, Google Home)?
Yes, if your router or smart plug supports voice assistant integration. For example:
- For TP-Link: connect the router to Kasa Smart and sync with Google Assistant.
- For Sonoff: use the app eWeLink and set up a connection with Alice through the "Smart Home" skill.
- For ASUS: some models support IFTTT, which allows you to create voice commands.
Example command: "Alice, turn off the Wi-Fi in the children's room."