Freeze Detection - TheThinkingHome/device_sentinel GitHub Wiki

Freeze Detection

Device Sentinel tells you when a device stops reporting, even when Home Assistant keeps showing its last value. A temperature sensor stuck at 21 degrees, or a door sensor that says closed forever, looks fine and isn't.

What You Will See

A device in trouble goes on the Problem List, an alert goes out if you set one up, and its page on the dashboard leads with the problem.

  • Frozen: it "stopped reporting" while its readings still show.
  • Unavailable: it "became unavailable".
  • Unknown: it "went unknown".
  • Never reported: it has not reported once since Device Sentinel found it.
  • Flapping: it keeps dropping out and coming back. Check its signal and the router it connects through.

A device is alive while anything on it reports a real value, so a multisensor with thirty entities is one device, not thirty.

The bar at the top of a device's page shows how long it has been quiet against its rhythm: green while it is within its rhythm, yellow once it is past it but not yet frozen, red when it is frozen.

An unavailable device's bar turns gray and stops where it stood when the device went, and the line above it gives the time it became unavailable.

A plug that became unavailable: the bar is gray and stops where it stood when the plug went, and the line gives the time it went

Each Device Is Judged by Its Own Rhythm

A motion sensor that reports every 30 seconds and a door sensor that reports twice a day can't share one timeout. So there is no timeout to set. Device Sentinel learns each device's rhythm from the day you install it. After seven days of learning, a device can be reported frozen. Until then it is watched for unavailable only. A button that speaks only when pressed never settles into a rhythm, which is why Devices: Watched is higher than Devices: Learned.

A restart, an outage, a pairing window or Maintenance Mode is never learned as normal, so one bad night can't teach a device to be trusted for hours of silence. After a new battery, a firmware update or a re-pair, the rhythm restarts, and the device's page states the reason.

Tune the Grace

The Freeze and Unavailable Detection screen adds a grace margin to each device's rhythm. Two sliders shape it:

  • Delta Low (1 to 8 minutes, default 3) is the grace a fast device gets. Raise it if a chatty device is reported frozen too soon.
  • Delta High (4 to 12 hours, default 8) is the grace a slow device gets. Lower it if a slow device should be caught faster.

Moving either changes the window for all your devices. At the defaults, a device whose longest usual gap is an hour gets about 80 minutes of grace.

Turn On Last Seen

Most integrations ship a device's Last Seen sensor switched off. Turn it on: it is the most accurate record of when a device really reported. The dashboard's Recommendations tab lists these devices, with a button to turn each one on.

Devices Judged Another Way

  • ESPHome devices read "Judged by its connection" and are reported unavailable within a few minutes of the connection dropping.
  • Matter lights, plugs, switches and buttons are not reported frozen while Home Assistant shows them available.
  • Slow reporters, such as a button pressed once a week, are listed on the Recommendations tab's Slow Reporting Devices card, with a "Mute freeze" chip.

Freeze Muting and Unavailable Muting

A freeze-muted device is never called frozen or never reported, but is still reported when it becomes unavailable or keeps dropping out. An unavailable-muted device is the reverse. Use Unavailable Muting for a device that goes unavailable on purpose, such as a TV switched off at the wall. To silence both, set both, here or with Mute freeze and Mute unavailable on the device's page. Exclusions and Muting explains how the lists work together.