WiFi - TheThinkingHome/device_sentinel GitHub Wiki
When your Wi-Fi goes down, every plug, bulb and camera on it goes quiet at once. Without help you'd get thirty alerts and wonder which devices died. Device Sentinel tells you once that the Wi-Fi is down, then names any device that doesn't come back.
Find the settings under Settings, Devices & services, Device Sentinel, Configure, Wi-Fi.
What You'll See
During an outage you get one line on the Problem List, such as "Wi-Fi network unavailable: 34 of 74 total devices down", one alert naming the network and one sentence in the Daily Brief. When the network is back, the line counts your devices home. A device still missing after a few minutes is reported by name, because that's a device fault, not a Wi-Fi fault.
Set It Up
Your server needs a Wi-Fi adapter connected to a network. Turned on is not enough. In Home Assistant:
-
Open Settings, System, Network, and choose your Wi-Fi interface, often named wlo1 or wlan0.

-
Open the Wi-Fi section.

-
Press Search networks, choose one of your networks and enter its password. It doesn't have to be the one your devices use: Device Sentinel watches the network you choose in step 5.

-
Choose Static for its address, and press Save. Be sure that your wired network also uses Static.

-
Then choose your network in Device Sentinel's settings, under Wi-Fi.

If your networks are kept apart, for example on VLANs, join one you're happy for Home Assistant to be on.
In Device Sentinel's Wi-Fi settings:
- Pick your devices' network under "Your IoT Wi-Fi Networks". If you pick more than one, any of them going down counts as an outage.
- Leave "Confirmation Delay" at 60 seconds unless your router takes longer to reboot.
Your server listens for the network the way a phone lists Wi-Fi names, so any router works. The Recommendations tab reminds you if your server has an adapter and no network is chosen.
No Wi-Fi Adapter?
Most mini PCs and Raspberry Pis have one built in; Home Assistant Green and many servers don't. An inexpensive USB Wi-Fi adapter plugged into the server does the job.

- Buy by the chip. Home Assistant OS works with adapters built on MediaTek MT7601U, MT7612U, MT7663U or MT7921U, and Realtek RTL8188, RTL8192, RTL8812AU, RTL8821AU, RTL8821CU, RTL8822BU or RTL8822CU. Many sellers leave the chip out.
- Keep it away from your Zigbee stick. Both use 2.4 GHz, so use an extension cable.
- In a virtual machine, pass the adapter through to it.
- Home Assistant OS or Supervised only. A Container or Core install can't use an adapter; a router integration, below, catches an outage instead.
Plugged in, it appears beside any built-in adapter under its own name. Device Sentinel uses the one connected to a network.
A Router Integration Helps
With UniFi or TP-Link in Home Assistant, Device Sentinel also matches your devices to the router's list of clients, so devices that dropped just before the outage are counted in it too. Without a Wi-Fi adapter, as on most Docker installs, the router alone can still catch an outage.
For UniFi, turn on "Track network clients", turn off "Include wired network clients", and tick the networks your devices use.
If you switch several Wi-Fi bulbs off at the wall, they can look like an outage to the router. Mute those bulbs for unavailable.
What It Can't Tell You
Your server hears the network from one spot, so any access point broadcasting the name counts as up, even a faint one, and so does one that broadcasts after its own internet connection has failed.