﻿# Redfish threshold clearing: amplitude and duration hysteresis must both pass

Model threshold activation, dwell and both clearing conditions explicitly so a sensor oscillating near its boundary does not create false recovery transitions.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/redfish-sensor-threshold-hysteresis/
Language: en

A temperature alarm clears as soon as a sample falls below its boundary, then reappears on the next rise. The collector may have discarded the platform's hysteresis contract. Reconstruct activation and clearing separately before attributing every dashboard transition to a real facility recovery or renewed fault.

## Identify the exact threshold

The [Redfish Sensor schema](https://redfish.dmtf.org/schemas/v1/Sensor.v1_14_0.json) defines a threshold's Reading and Activation direction. Preserve which caution, critical or user-defined threshold is involved, its units and the sensor identity. Increasing, Decreasing, Either and Disabled are not equivalent. A valid reading range is another concept. The [sensor guide](/journal/guide-reliability-bmc-sensor/) explains that distinction; using a range endpoint as the alarm boundary starts the state machine with the wrong condition.

## Apply dwell to activation

DwellTime specifies how long the sensor value must violate the threshold before activation. An isolated crossing and an activated condition therefore need not coincide. Retain the platform-reported condition separately from a collector's independently computed alert. If only intermittent samples are available, they may not establish continuous violation between observations. Do not manufacture an exact activation time from a sparse trace that cannot resolve the documented dwell interval.

## Interpret the clearing offset

HysteresisReading is an offset from the threshold in the same units as Reading. The schema's upper-threshold example uses a negative offset so the reading must fall below the boundary by the specified amount before clearing. Preserve the sign; treating it as an unsigned tolerance can reverse the rule. Constructed test traces should include a reading just below the threshold that has not yet reached the clearing offset.

## Require the clearing duration as well

HysteresisDuration describes how long the value must no longer violate the threshold before deactivation. The schema requires both its duration condition and HysteresisReading's condition to be met. A reading that reaches the clearing offset briefly does not establish satisfaction of a configured recovery duration. Conversely, spending long enough close to the threshold does not satisfy an unmet offset. Missing-property semantics in the schema must not be confused with a null value or an unavailable sensor observation.

## Verify transition traces deliberately

Exercise separate fixtures for insufficient activation dwell, sufficient dwell, recovery duration without offset, offset without sufficient duration and complete clearing. Preserve expected state transitions rather than merely checking the final value. Use the [Redfish protocol](https://redfish.dmtf.org/schemas/DSP0266_1.20.1.html) to retain the resource and observation context; polling a resource is not continuous acquisition. The [event guide](/journal/guide-reliability-redfish-event/) explains why replayed notifications and renewed failure after recovery must remain distinguishable when the collector stores the resulting transitions.

## Bound the operational interpretation

Acceptance requires correct direction, units, dwell and conjunctive clearing behavior for the supported schema. Record whether the collector consumes platform state or computes a separate policy. Neither algorithm proves the physical cause of a hot reading, and hysteresis does not expand an equipment operating envelope. The useful result prevents premature recovery claims while preserving unknown intervals; it does not change sensor settings, suppress an actual hazard or promise exact event timing from observations that lack sufficient temporal coverage.
