explainer / Nov 1, 2026

A Quiet Home Assistant Sensor Is Not Necessarily Offline

A sensor value, its availability, and its reporting timestamps answer different questions. Learn which evidence can support a smart-home freshness check.

By Stackarr EditorialHome Assistant · Sensors · MQTT · Monitoring
A small sensor rests beside a home server on a table, with a wall clock and a potted plant nearby.
An unchanged reading and a missing report are different observations, even when the dashboard looks the same.

A Home Assistant sensor can keep the same reading while working normally. An old change timestamp alone does not prove that the device is offline. For a useful smart-home freshness decision, separate the value that changed, the integration that reported it, and the evidence that the physical device is still communicating.

That distinction matters on a self-hosted home server: an automation that interprets silence incorrectly can produce repeated nuisance alerts or continue trusting an old measurement. This explainer describes the evidence, not a universal outage detector. It requires no configuration changes, administrator permissions, or new network access. Integration-specific behavior remains the limiting factor.

An unchanged value can be an accurate value

A closed door can remain closed for hours. A room sensor can repeatedly report the same rounded temperature. Neither situation requires the primary state value to change. Home Assistant stores that value together with attributes and timestamps in a state object, as its state documentation explains.

For example, a temperature value can stay constant while a separate attribute changes. A dashboard that shows only the temperature hides that distinction. Conversely, a stable display cannot establish that new measurements are arriving. It is an observation about the displayed value, not proof of the reporting path.

Three timestamps describe different events

The state object's timestamps are not interchangeable freshness labels. Under normal state-update behavior:

  • last_changed tracks a change to the main state value, rather than an attribute-only change.
  • last_updated also advances when an attribute changes.
  • last_reported records a state write even when the value and attributes remain identical.

These are UTC timestamps. The important boundary is the state write inside Home Assistant. A radio transmission, broker message, or device measurement is not automatically the same event. The documentation also identifies forced-update exceptions, including MQTT sensors with force_update, where repeated identical reports can count as changes. A freshness rule therefore needs the integration's behavior as well as the timestamp's name.

Unknown and unavailable are not numerical readings

Home Assistant uses unknown when there is no known state value and unavailable when the entity cannot currently provide its state. Neither means a measured zero. The template documentation also explains that asking states() for a nonexistent entity returns unknown. A renamed entity can therefore resemble a missing measurement to a template that still uses the old identifier.

The has_value() function excludes those special states. It does not establish that a sensor is numeric, recently measured, or physically reachable. Similarly, converting a failed reading with float(0) supplies a fallback number; it does not establish that the room reached zero degrees. Whether a fallback is acceptable depends on what consumes it. A display convenience and an automation decision need not use the same policy.

MQTT introduces another reporting boundary

The MQTT integration documentation describes filtering updates when no significant entity change is detected. One message can contain information for several entities, and not every field is relevant to every subscriber. Receiving traffic is therefore not synonymous with updating each entity's state object.

Its last-reported guidance specifically warns that repeated MQTT updates do not necessarily advance last_reported without force_update. A stale timestamp can coexist with ongoing device messages. Enabling forced updates merely to make a timestamp move changes update behavior; it is not a neutral diagnosis and should not be a blanket recommendation.

Retained MQTT messages create the opposite trap. A broker can replay a previously stored payload when a subscription begins. That gives the home server a value, but does not by itself prove that the device has just taken another measurement. A recent reception time and a recent measurement time answer different questions.

Decide what evidence the automation actually needs

For a noncritical room display, a clearly identified last-known reading may be useful. For an automation that depends on current conditions, the decision needs an explicit rule for missing or stale evidence rather than a silently substituted value. The appropriate reporting interval must come from the device and integration, not a universal timeout copied from another sensor.

Before designing that rule, distinguish three outcomes: a valid unchanged reading, an explicitly unknown or unavailable state, and a plausible value whose reporting age is not established. A sound design can describe what happens in each case without claiming that one timestamp detects every network failure.

The practical conclusion is narrower than buying new hardware or restarting a container: establish what the selected entity's timestamp actually records. Only then can its age support a useful alert. A quiet graph is a reason to examine the evidence, not a verdict that the sensor has failed.

Verification ledger

Sources and further reading

  1. State and state objectHome Assistant · Primary source
  2. Working with statesHome Assistant · Primary source
  3. MQTT: entity state updates and last reportedHome Assistant · Primary source