# Degraded mode

> What the degraded-mode warning means and how Better Thermostat keeps controlling when sensors fail.

Source: https://better-thermostat.org/faq/degraded-mode/

Better Thermostat raises a **degraded mode** repair issue when one of the
sensors it was configured with becomes unavailable: the room temperature
sensor, the window sensor, the door sensor, the humidity sensor, the
outdoor sensor, or the weather entity. An unavailable cooling device
counts as well. The thermostat keeps running; the issue tells you that it
is working with less information than you configured.

During the first five minutes after startup the warning is suppressed so
that slow integrations (for example cloud-based weather providers) get
time to come online before you see it.

## What still works

Better Thermostat degrades step by step instead of stopping. The control
quality steps down a ladder, one rung at a time:

1. **Optimal** — the room sensor delivers; everything works as configured.
2. **Sensor fallback** — the room temperature sensor is unavailable, but
   at least one TRV reports its internal temperature. Better Thermostat
   then controls on the average of the TRV-internal temperatures. TRVs
   measure next to the hot valve, so expect less accuracy, but it is
   still better than controlling on a frozen last reading.
3. **Hold** — neither the room sensor nor any TRV temperature is usable
   (for example during a Zigbee outage). The controller stops adjusting
   and the TRVs keep their last commanded state. Frost protection stays
   enforced on every write.

For a device using its valve as the only actuator, such as a Shelly BLU
TRV under Direct Valve Based control, HOLD requests a fixed emergency
opening of 25% because its own thermostat cannot take over. This
preserves limited heating without retaining a potentially fully open
valve. Boost does not override this opening. OFF and open windows or
doors still close the valve, as does an invalid stored calibration mode,
which raises a separate repair issue. BT uses the normal write and retry
path and resumes regulation after the sensor-recovery stability period.
The device must remain reachable for the command to succeed. A fixed
opening cannot guarantee frost protection and does not provide a local
fallback during a Home Assistant or network outage.

TRVs that regulate on a room temperature Better Thermostat writes into
them, such as the Sonoff TRVZB, stop receiving it while the room sensor
gives no reading. Better Thermostat does not keep sending the sensor's last
value, so the TRV falls back to its own sensor after its own timeout (two
hours on a TRVZB). The first reading after the outage is written to the TRV
at once.

A rung steps down after the loss has persisted for about two minutes, and
climbs back up after the sensors have been stable again for about five
minutes, so short sensor flaps do not flip the behavior back and forth.

## How to see the current rung

The Better Thermostat climate entity exposes the rung as the
`control_mode` attribute (`optimal`, `sensor_fallback`, or `hold`),
along with `degraded_for_seconds` (how long the degradation has lasted) and
`unavailable_sensors`. The `calibrator_health` attribute reports per
TRV the health of its calibration controller: `healthy`, `non_finite`
(a learned value was not a number), `oscillating`, `runaway_gains`, or
`windup_suspect`. Check them under **Developer tools → States**.

## What you should do

- Check the listed sensors: battery, power, and whether the entity shows
  `unavailable` or `unknown` in Home Assistant.
- For cloud-based weather or outdoor entities, check the integration that
  provides them.

The repair issue disappears on its own once all configured sensors are
available again. Taking a sensor that is gone for good out of the Better
Thermostat's settings clears it as well.
