WiFi - TheThinkingHome/device_sentinel GitHub Wiki

Wi-Fi

When your Wi-Fi network goes down, Device Sentinel reports one outage instead of a separate failure for each device on it. Your Wi-Fi devices are watched for freezing, going unavailable, battery and signal, the same as your other devices, with nothing to set.

What You See

During an outage you get one row on the Problem List, such as "WiFi network unavailable: 34 of 74 total devices down", one sentence in the Daily Brief, and one alert naming the network. The "Bridge: WiFi" sensor reads "down" during the outage and "running" the rest of the time.

The outage is dated from when the network went. When it comes back, the row counts your devices home as they reconnect, and slow devices get a few minutes. A device still missing after that is reported by name, because it is a device fault, not a network fault.

What You Need

Your Home Assistant server listens for your network the way a phone lists Wi-Fi names, so any router brand works. It needs a wireless adapter joined to a network, not necessarily the one you watch. Most mini PCs and most Raspberry Pi models have one built in. Home Assistant Green and most virtual machines need a USB Wi-Fi adapter.

Set it up in Settings, System, Network before you open the WiFi screen.

Choose Your Settings

Your IoT WiFi Networks lists the networks your adapter can hear. Pick the one your devices use. Device Sentinel can't tell which network a device is on, so if you pick more than one, any of them going down is reported as Wi-Fi unavailable.

A picked network stays picked while it can't be heard. If you rename it at the router, the Device Sentinel status sensor names the picked network it can no longer hear.

Confirmation Delay (30 to 120 seconds, default 60) is how long a network must stay missing before an outage is reported. A router rebooting overnight is usually gone for about thirty seconds.

What a Supported Router Adds

With a router integration Device Sentinel supports, such as UniFi or TP-Link, it matches your devices to the router's list of clients. Devices that dropped just before the outage was confirmed are then counted in it too. Without a wireless adapter, the router alone still catches the outage. Zigbee, Z-Wave and Matter devices are never counted in a Wi-Fi outage, because their own bridge answers for them.

For UniFi, set these:

  • Track network clients: on.
  • Include wired network clients: off, so a wired camera is never mistaken for a Wi-Fi device.
  • Disable UniFi Network wired bug logic: leave unchecked, which keeps wired clients from showing as wireless.
  • Select SSIDs to track wireless clients on: tick the networks your devices use.

TP-Link needs no setup, since it marks each client wired or wireless. Most other routers don't, so all their tracked devices stay matched. To help get yours handled properly, see Extended Diagnostics.

What It Cannot Do

Your server hears the network from one place, so any access point broadcasting the name counts as up, even a faint one. An access point that keeps broadcasting after its own connection has failed also reads as up.