A new plug refuses to pair. A Tuya bulb that worked for a year drops off after a router firmware update. An ESP8266 sensor reconnects every few hours. In a lot of these cases the device is fine and the problem sits in the access point settings: a modern router ships with defaults tuned for phones and laptops, and some of those defaults confuse the simple Wi-Fi stacks inside cheap IoT hardware.
This guide goes through the settings that matter, what each one does and what router vendors themselves recommend. The examples come from Ubiquiti's and TP-Link's support documentation and the ESPHome Wi-Fi docs; menu names differ between brands, but the options are the same.
Most IoT devices only speak 2.4 GHz
The ESP8266 and the classic ESP32 radios work on 2.4 GHz only, and so do most plugs, bulbs and sensors built around them or around similar chips. Dual-band ESP chips exist (ESPHome has a band_mode option specifically for the ESP32-C5, which can use 2.4 and 5 GHz), but they are still the exception.
Ubiquiti's IoT guidance says it plainly: 5 GHz may not be supported by all IoT devices, so limit them to a 2.4 GHz network if they have trouble connecting. The usual way to do that without hurting your phones is a separate SSID that broadcasts on 2.4 GHz only, used for the smart home and nothing else. It is also a natural starting point for an IoT VLAN, if you plan one later.
Band steering and the "one SSID for everything" trap
Band steering nudges clients from 2.4 GHz to 5 GHz. On a combined SSID it is the classic reason a 2.4 GHz-only device fails during setup: the phone doing the pairing is pushed to 5 GHz, and some setup apps expect the phone and the device to be on the same band during provisioning.
TP-Link's IoT FAQ lists "disable band steering" as the first step, and notes that it is enabled by default. Ubiquiti's general settings page recommends leaving band steering on for normal networks, and its IoT page recommends turning it off. Both statements are consistent once you split the networks: keep band steering for the main SSID, switch it off on the IoT one (on a 2.4 GHz-only SSID there is nothing to steer to anyway).
Security mode: WPA2-only beats the mixed mode for old devices
WPA3 is better security, and mixed WPA2/WPA3 ("transition mode") is a sensible default for phones and laptops. The catch is in TP-Link's write-up on Wi-Fi 7 routers: the Wi-Fi Alliance found that some older devices, especially certain IoT ones, cannot associate properly when an access point offers both options, because they cannot interpret the advertised encryption correctly. TP-Link's fix is to set that band to WPA2-PSK (AES) only.
Ubiquiti says the same for the 2.4 GHz band: WPA2 is more compatible with IoT devices and WPA3 is not recommended there. Use AES (CCMP), not TKIP. ESPHome by default refuses WPA/TKIP networks altogether (min_auth_mode defaults to WPA2 on ESP32 and ESP8266), and the docs describe TKIP as having known vulnerabilities.
A WPA2-only IoT network is a compromise, not a free win. Pair it with a long random password and, ideally, its own VLAN so a device on it cannot reach your laptops. Your main SSID can stay on WPA2/WPA3 or WPA3.
Protected Management Frames (PMF)
PMF (802.11w) encrypts management frames such as disassociation messages, which stops an attacker from kicking clients off the network with forged frames. WPA3 requires it. Ubiquiti offers three settings: Optional, which is the default and uses PMF only when the client supports it; Required; and Disabled, which it recommends only for a separate WPA2 SSID for legacy or incompatible devices.
So try "Optional" first. If a specific device still will not stay connected, turn PMF off on the IoT SSID only. On Ubiquiti, PMF cannot be disabled on WPA2/3 or WPA3 networks, which is one more reason the IoT network ends up WPA2-only.
Roaming features: 802.11r, BSS Transition and friends
Mesh and multi-AP systems add features that help phones move between access points:
- Fast roaming (802.11r): Ubiquiti's troubleshooting page says legacy clients often do not support it and recommends disabling it for maximum compatibility.
- BSS Transition (802.11v): asks clients to move to a better AP. Ubiquiti notes that some very old devices may not handle it properly.
- Multi-Link Operation (Wi-Fi 7): Ubiquiti's IoT list sets it to off. On its platform MLO also requires WPA3-only, which already rules it out for the network above.
The same IoT list from Ubiquiti also turns off hidden SSIDs, client isolation, proxy ARP, U-APSD, multicast enhancement, MAC filtering and group rekeying, and leaves DTIM period and minimum data rate on auto. You do not have to copy all of it at once. Start with band, security, PMF and fast roaming, which are the settings most often blamed, and work down the list only if a device still misbehaves.
Two of those deserve a comment. Client isolation blocks traffic between devices on the same SSID, which also breaks local discovery and control (Home Assistant finding a device, a phone app talking to a plug on the LAN). Hidden SSIDs give no real security and make connecting harder; ESPHome's docs point out that with a hidden network it cannot pick the access point with the best signal.
Channel and channel width
On 2.4 GHz there are three non-overlapping 20 MHz channels: 1, 6 and 11. Pick the one least used by your neighbours (any Wi-Fi analyser app shows this; TP-Link suggests the same) and keep it fixed if your router's auto selection keeps moving. Ubiquiti's checklist also points to interference and to using non-overlapping channels on neighbouring APs.
Set the 2.4 GHz width to 20 MHz. 40 MHz takes up most of the band, collides with neighbours more often, and IoT devices do not need the throughput. TP-Link recommends a lower channel width for the same reason, and a widely quoted answer on the Ubiquiti community forum calls 40 MHz "at best useless" for this use.
One more router-specific detail from TP-Link: on Wi-Fi 7 routers, set the 2.4 GHz mode to 802.11 b/g/n/ax mixed, without "be", if IoT devices are unstable.
Signal strength still matters
No setting fixes a device that cannot reach the access point. Ubiquiti recommends a signal better than -70 dBm and reminds that an AP's transmitter is stronger than a client's: a device may hear the AP fine while its own replies do not make it back. A plug behind a fridge or a sensor in a metal box is a placement problem. Moving it, adding an AP, or choosing a Zigbee or Thread device for that spot often works better than tuning the router.
On the device side: ESPHome options worth knowing
If you build your own devices with ESPHome, a few wifi: options deal with the same issues from the other end:
wifi:
ssid: !secret iot_ssid
password: !secret iot_password
min_auth_mode: WPA2 # default on ESP32/ESP8266
power_save_mode: none # ESP32 defaults to LIGHT
manual_ip:
static_ip: 192.168.20.42
gateway: 192.168.20.1
subnet: 255.255.255.0
power_save_mode: the docs say power saving reduces the reliability of the connection, with frequent disconnections in theHIGHmode. Mains-powered devices can usenone.manual_ip: a static address skips DHCP and, according to the docs, can noticeably shorten connection time.phy_mode: 11Gon ESP8266: works around a known compatibility problem between some routers and ESP8266 devices using 802.11n.post_connect_roaming(on by default): after connecting, the device checks up to three times, every five minutes, for an AP with the same SSID that is at least 10 dB stronger. This keeps it from staying on a distant AP after a power cut or an AP reboot.enable_btmandenable_rrm(ESP32 only): turn on 802.11v and 802.11k for proper roaming in multi-AP networks, if your access points support them.
A checklist for the IoT SSID
- A separate SSID on 2.4 GHz only, visible (not hidden).
- WPA2-Personal with AES, a long password; main network stays on WPA2/WPA3 or WPA3.
- PMF optional, or disabled if a device still fails.
- Band steering, fast roaming (802.11r) and MLO off on this SSID; BSS Transition off if old devices drop.
- Client isolation off unless you control traffic between devices in some other way.
- Fixed channel 1, 6 or 11, width 20 MHz.
- Signal better than -70 dBm at the device.
Change one thing at a time and note what you changed. Router firmware updates sometimes reset or rename these options, so after an update that coincides with devices dropping off, this list is the first place to look.