Integrations · Home Assistant

Wi-Fi Devices.

Reading time
~10 min · 2,057 words
Section
All Home Assistant pages

Wi-Fi is the right answer for mains-powered smart devices and the wrong answer for battery-powered sensors. A smart plug that controls a pump, a Wi-Fi-connected LED controller, an IP camera, a commercial Wi-Fi thermostat: all of these fit Wi-Fi well because they have constant power and need the network anyway. A battery-powered Wi-Fi temperature sensor, by contrast, exhausts its battery in weeks because Wi-Fi is power-hungry. For agricultural operations, Wi-Fi is most useful for specific categories of devices (smart plugs, ESPHome-based custom controllers, IP cameras, commercial Wi-Fi equipment) and less useful for the sensor applications that BLE and Zigbee handle better. The patterns that hold up are alternative firmware like Tasmota for reclaiming vendor-locked devices, ESPHome over Wi-Fi for custom controllers, and a firm preference for commercial devices that keep working locally when the vendor's cloud goes down.

The Wi-Fi device landscape.

Unlike BLE, Zigbee, or LoRa, Wi-Fi is not a dedicated IoT protocol. It's a general-purpose networking protocol that IoT devices use. This has implications.

Power.

Wi-Fi radios consume substantial power compared to low-power protocols. A Wi-Fi sensor running continuously uses watts; a BLE sensor uses milliwatts. Battery-powered Wi-Fi devices therefore either accept short battery life (weeks to months on the largest practical batteries) or operate in deep-sleep modes that compromise response time.

For mains-powered devices, this is a non-issue. Smart plugs, bulbs, and wired controllers run on the building's power; Wi-Fi's power consumption is irrelevant.

Range.

Wi-Fi range is limited to the Wi-Fi network's coverage: typically 100-200 feet indoors for consumer access points, further for commercial ones. For operations with good Wi-Fi coverage, Wi-Fi devices work where the network reaches; for operations with marginal coverage, Wi-Fi devices struggle at the edges.

Scale.

Consumer Wi-Fi access points handle 20-50 devices well; beyond that, performance degrades. Commercial access points handle hundreds of devices but cost more. For operations with many Wi-Fi devices, the access-point capacity can become the bottleneck.

Security.

Wi-Fi devices, especially cheap consumer ones, have highly variable security. Some run outdated firmware with known vulnerabilities. Some phone home to cloud services with questionable data handling. A deployment of cheap Wi-Fi devices without careful network segmentation creates security risks.

Cloud dependency.

Many commercial Wi-Fi devices require internet access and cloud services to work. The device talks to the vendor's cloud; the cloud talks to the phone app or Home Assistant integration. When the cloud service is down or the internet fails, the device is useless. For critical monitoring, this is unacceptable.

Local control.

Devices with local control (no cloud dependency) are preferable. Some commercial Wi-Fi devices support local control natively; others can have their firmware replaced with Tasmota, ESPHome, or similar to achieve local-only operation.

Wi-Fi devices that work well.

Specific categories where Wi-Fi is the right protocol.

Smart plugs and power monitoring devices.

A Wi-Fi smart plug controls a mains-powered device: a pump, fan, light, heater. Many models also monitor power consumption. Useful for remote control and energy monitoring of existing equipment without rewiring.

The specific product matters. Some brands require cloud services; others support local control. Tasmota-compatible devices (Sonoff and many Tuya-based budget plugs) can be flashed with Tasmota firmware for fully local operation; Kasa/TP-Link plugs generally cannot be flashed, but they offer local control through Home Assistant's native TP-Link integration.

ESPHome-based custom devices.

Covered in detail in ESPHome. ESPHome devices use Wi-Fi as their communication medium. For mains-powered custom controllers, sensors near power, or anywhere Wi-Fi coverage is good, ESPHome over Wi-Fi is reliable.

IP cameras.

Most IP cameras use Wi-Fi (or Ethernet, which is more reliable for cameras). Cameras generate substantial network traffic; dedicated wired connections or well-planned Wi-Fi capacity matters. Frigate and Computer Vision covers camera integration in depth.

Commercial Wi-Fi equipment.

Some commercial agricultural and industrial equipment has Wi-Fi interfaces: specific environmental controllers, thermostats, irrigation timers. Quality and integration maturity vary substantially by manufacturer.

Wi-Fi-to-Modbus gateways.

Devices that expose Modbus RTU over Wi-Fi, allowing a host to reach a remote Modbus bus through the network. Useful for isolated equipment locations where running Modbus wiring back to the Home Assistant host is impractical.

Wi-Fi devices that don't work well.

Categories where Wi-Fi is usually the wrong choice.

Battery-powered sensors.

Short battery life (weeks to a few months on the largest practical batteries). For sensors that should run for years on a battery, BLE or Zigbee is appropriate; Wi-Fi is not.

Devices in marginal Wi-Fi coverage.

Wi-Fi's coverage is sharply bounded. A device at the edge of coverage works intermittently. For distant or partially-shielded locations, BLE proxies, Zigbee mesh, or LoRa are more reliable.

Cloud-dependent devices for critical monitoring.

A commercial Wi-Fi temperature sensor that requires the vendor's cloud service fails when the cloud service fails, the internet fails, or the vendor discontinues the service. For monitoring that matters, local-capable devices are better.

Devices in high-interference environments.

2.4 GHz Wi-Fi shares the band with many other devices. In greenhouses with many Wi-Fi clients, BLE sensors, and Zigbee devices, 2.4 GHz Wi-Fi can struggle. 5 GHz Wi-Fi has less interference but shorter range.

Tasmota and alternative firmware.

Many Wi-Fi devices ship with vendor firmware that requires cloud services. Replacing that firmware with Tasmota or similar open-source firmware enables fully-local operation.

What Tasmota does.

Tasmota is open-source firmware that replaces vendor firmware on ESP-based Wi-Fi devices (ESP8266 and ESP32, which many commercial Wi-Fi smart plugs and similar use internally). Tasmota exposes the device's capabilities through MQTT, HTTP, and web interface: all locally, no cloud required. Home Assistant integrates with Tasmota devices via MQTT.

What Tasmota enables.

  • Fully local operation (no cloud dependency).
  • Home Assistant integration through MQTT.
  • Access to detailed device state and control beyond what vendor apps expose.
  • Consistent configuration across many devices.
  • Long-term viability (Tasmota is maintained; vendor firmware sometimes isn't).

Compatible devices.

Sonoff (many models), Shelly (Gen1 and some newer models), and many Tuya-based budget brands. The Tasmota project maintains a compatibility database. Before purchasing Wi-Fi devices specifically for Tasmota-flashing, check the database for the specific model.

The flashing process.

Over-the-air (OTA) flashing. Some devices can be flashed over Wi-Fi using tools that exploit known firmware features (Tuya-Convert historically, though vendor countermeasures have reduced its applicability).

Serial flashing. Connect a USB-to-serial adapter to the device's internal UART pins (usually requires opening the device). Flash via serial. Reassemble. This works reliably but requires disassembly.

Pre-flashed devices. Some vendors sell devices pre-flashed with Tasmota or with ESPHome. Saves the flashing step. Athom is the main example. (Shelly ships its own local-control firmware rather than Tasmota or ESPHome.)

ESPHome as an alternative.

ESPHome can also be flashed onto many of the same devices that accept Tasmota. For growers already using ESPHome for custom devices, using it for flashed commercial devices keeps a single firmware approach across the deployment. The capabilities are similar; the configuration languages differ.

Commercial Wi-Fi products.

Some commercial products targeted at agriculture or smart home have Home Assistant integrations.

Shelly.

A Bulgarian company producing Wi-Fi-based smart switches, relays, and sensors. Well-regarded for reliability and local-control support. Many models support local MQTT and have native Home Assistant integrations. Pricing mid-range for the quality.

Sonoff.

Budget-oriented Wi-Fi smart devices. Many models are Tasmota-compatible (community firmware) or officially ESPHome-compatible. The cheapest path to basic Wi-Fi smart switching. Quality varies; firmware-replacement usage extends useful life and capability.

Shelly Plus series and similar.

Newer generations of Wi-Fi relays and sensors with improved hardware and firmware. Often include Bluetooth for configuration; some models support Zigbee or Matter alongside Wi-Fi.

Vendor-specific Wi-Fi thermostats and controllers.

Commercial Wi-Fi thermostats (Ecobee, Nest, and many others) often have Home Assistant integrations. Most require vendor cloud services for the integration; some offer local APIs. For agricultural control, these are more commonly used in packhouses and work areas than in growing zones.

IP cameras.

Reolink, Amcrest, Dahua, Hikvision, Unifi Protect, and many others. Integration quality varies. For serious camera deployments, Frigate and Computer Vision covers the specific considerations.

Wi-Fi network considerations.

A deployment with many Wi-Fi devices needs the underlying network to support them.

Access point capacity.

Consumer access points (the one that came with the router) typically handle 20-30 active clients well, more with degradation. Enterprise-grade access points handle 100-200 clients each. Operations with many Wi-Fi devices benefit from commercial-grade networking hardware.

Coverage.

A single access point covers a limited area. Operations with multiple buildings or large coverage areas need multiple access points (mesh Wi-Fi consumer-grade, or proper multi-AP enterprise Wi-Fi). Coverage planning matters.

VLAN segmentation.

For security, IoT devices are often placed on a separate VLAN from personal devices and critical computer equipment. The Home Assistant host is reachable from the IoT VLAN (to talk to devices) but devices are restricted from reaching other networks.

This limits the damage from compromised IoT devices. A cheap Wi-Fi sensor that turns out to have a vulnerability, when isolated to an IoT VLAN, can't reach financial systems or personal data.

2.4 GHz vs 5 GHz.

Most IoT Wi-Fi devices only support 2.4 GHz. This is problematic when many Wi-Fi clients also use 2.4 GHz (phones, laptops, tablets). Moving personal devices to 5 GHz where possible leaves 2.4 GHz clearer for IoT.

Guest networks.

Some operations put IoT devices on a "guest" SSID. This is usually a form of VLAN segmentation implemented differently. The effect is similar.

Wi-Fi device failure modes.

Specific problems.

The cloud service that went down. Commercial Wi-Fi devices that depend on vendor cloud services became unavailable when the cloud service had an outage. Local-only operation wasn't possible. Fix: prefer local-capable devices; flash with Tasmota/ESPHome when possible.

The vendor that discontinued cloud support. A vendor decided to stop supporting a product's cloud service. Devices became e-waste despite hardware being fine. Fix: prefer devices with local control; accept that cloud-only devices have limited lifetimes.

The Wi-Fi access point that couldn't handle the load. A consumer AP started dropping devices when the operation added many Wi-Fi sensors. Fix: upgrade to higher-capacity AP, or split devices across multiple APs.

The device that only connected to 2.4 GHz. Device wouldn't connect because the network was 5 GHz. Had to join to a 2.4 GHz network first. Fix: ensure a 2.4 GHz SSID is available for IoT; don't expect 5 GHz-only networks to work.

The IoT VLAN misconfiguration. IoT VLAN was configured but the Home Assistant host couldn't reach devices on it. Fix: firewall rules allowing the Home Assistant host to reach the IoT VLAN (while restricting IoT devices from reaching other networks).

The firmware update that disabled local API. A cloud-backed device's firmware update removed a local API that Home Assistant depended on. Integration broke. Fix: avoid cloud-backed devices for critical functions; monitor for firmware changes that may affect integrations.

The device that kept reconnecting. Marginal Wi-Fi coverage caused a device to reconnect repeatedly. Each reconnect briefly made the device unavailable to Home Assistant. Fix: improve coverage (AP placement, additional APs) or move the device to a better location.

The Tasmota flash that went wrong. Flashing via serial with incorrect wiring destroyed a device. Fix: verify wiring carefully before flashing; practice on a throwaway device first.

The many-device Wi-Fi congestion. A fleet of 50 Wi-Fi devices reporting frequently saturated the AP. Everything became intermittent. Fix: reporting frequency tuning, enterprise AP, or migration to a more scalable protocol (Zigbee for the specific devices).

The device that spied on the network. A cheap Wi-Fi camera phoned home to a server in a country with questionable data handling. Fix: VLAN isolation preventing device-initiated external connections; review of device network traffic before deployment.

What not to do.

Don't use Wi-Fi for battery-powered sensors if battery life matters. BLE or Zigbee are substantially better for battery-powered sensing.

Don't deploy cloud-dependent devices for critical monitoring. A cooler temperature monitor that depends on vendor cloud is a cooler without monitoring when the cloud fails.

Don't skip network segmentation. IoT devices on the same network as personal and business computing equipment is a security problem. VLANs or guest networks contain the risk.

Don't overload consumer Wi-Fi. A cheap AP pretending to serve 50+ IoT devices drops connections. Upgrade the network before blaming the devices.

Don't expect 5 GHz-only to work. Most IoT Wi-Fi is 2.4 GHz only. Ensure 2.4 GHz is available even if primary devices use 5 GHz.

Don't flash firmware without research. Flashing the wrong firmware, using wrong wiring, or flashing a non-compatible device bricks devices. Know what you're doing before starting.

Don't ignore firmware updates. Wi-Fi device firmware often has security updates. Cloud-backed devices auto-update; local-controlled devices need manual update discipline.

Don't assume all commercial Wi-Fi products are equivalent. Integration quality, local-control capability, security practices, and long-term support vary substantially. Research specific models before committing.

Frequently asked questions.

Are Wi-Fi sensors good for battery-powered monitoring?

No. Wi-Fi radios draw watts while low-power protocols draw milliwatts, so a battery-powered Wi-Fi sensor typically exhausts its battery in weeks to a few months even on large batteries. Bluetooth Low Energy and Zigbee sensors run for years on a battery and are the better choice for battery-powered sensing. Wi-Fi is the right fit for mains-powered devices like smart plugs, controllers, and IP cameras.

What is Tasmota firmware and what does it do?

Tasmota is open-source firmware that replaces the vendor firmware on Wi-Fi smart devices built around ESP8266 and ESP32 chips, including many Sonoff models and Tuya-based budget plugs. It exposes the device through MQTT, HTTP, and a local web interface, so the device works entirely locally with no cloud account. Flashing happens over the air on some devices or through a USB-to-serial connection, and some vendors sell pre-flashed hardware.

Should smart home devices be on a separate network?

Yes. Standard practice puts IoT devices on their own VLAN or guest network, separated from personal computers and business systems. Cheap Wi-Fi devices run firmware of highly variable quality, and some phone home to outside servers. Segmentation limits the damage a compromised device can do: it can reach its controller but not financial systems or personal data. The firewall must still allow the automation host to reach the IoT network.

Why won't my smart plug connect to my Wi-Fi network?

The most common cause is frequency: most IoT Wi-Fi devices only support 2.4 GHz and cannot join a 5 GHz-only network. Keep a 2.4 GHz network name available for these devices. Other causes include marginal coverage at the device's location, which produces repeated reconnects, and an overloaded access point; consumer access points handle roughly 20 to 30 active clients well before performance degrades.

Do smart plugs work without internet?

Some do. Devices with local control keep working when the internet or the vendor's cloud service goes down; cloud-dependent devices become useless. Shelly devices are well regarded for local MQTT support, and many Sonoff and Tuya-based models can be flashed with Tasmota or ESPHome firmware for fully local operation, while Kasa/TP-Link plugs work locally through the native TP-Link integration without flashing. For monitoring that matters, local-capable devices are the safer choice, since vendors also discontinue cloud services.

How many devices can a Wi-Fi access point handle?

Consumer access points typically handle 20 to 30 active clients well, with degradation beyond that, while enterprise-grade access points handle 100 to 200 clients each. A fleet of 50 frequently reporting IoT devices can saturate a cheap access point and make everything intermittent. Fixes include reducing reporting frequency, adding or upgrading access points, or moving high-count device fleets to a mesh protocol like Zigbee.