From d80fb2fd0413388d50fff3fd1f6bcb4a53f4d878 Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Wed, 26 Mar 2025 13:42:03 +0100 Subject: [PATCH] Add SensorStateClass.MEASUREMENT_ANGLE (#2624) * Add SensorStateClass.MEASUREMENT_ANGLE * Update docs/core/entity/sensor.md Co-authored-by: Erik Montnemery --------- Co-authored-by: Franck Nijhof Co-authored-by: Erik Montnemery --- docs/core/entity/sensor.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index ab981582..b293bcae 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -98,6 +98,7 @@ Choose the state class for a sensor with care. In most cases, state class `Senso | Type | Description | ---- | ----------- | `SensorStateClass.MEASUREMENT` | The state represents _a measurement in present time_, not a historical aggregation such as statistics or a prediction of the future. Examples of what should be classified `SensorStateClass.MEASUREMENT` are: current temperature, humidity or electric power. Examples of what should not be classified as `SensorStateClass.MEASUREMENT`: Forecasted temperature for tomorrow, yesterday's energy consumption or anything else that doesn't include the _current_ measurement. For supported sensors, statistics of hourly min, max and average sensor readings is updated every 5 minutes. +| `SensorStateClass.MEASUREMENT_ANGLE` | Similar to the above `SensorStateClass.MEASUREMENT`, the state represents _a measurement in present time_ for angles measured in degrees (`°`). An example of what should be classified `SensorStateClass.MEASUREMENT_ANGLE` is current wind direction | `SensorStateClass.TOTAL` | The state represents a total amount that can both increase and decrease, e.g. a net energy meter. Statistics of the accumulated growth or decline of the sensor's value since it was first added is updated every 5 minutes. This state class should not be used for sensors where the absolute value is interesting instead of the accumulated growth or decline, for example remaining battery capacity or CPU load; in such cases state class `SensorStateClass.MEASUREMENT` should be used instead. | `SensorStateClass.TOTAL_INCREASING` | Similar to `SensorStateClass.TOTAL`, with the restriction that the state represents a monotonically increasing positive total which periodically restarts counting from 0, e.g. a daily amount of consumed gas, weekly water consumption or lifetime energy consumption. Statistics of the accumulated growth of the sensor's value since it was first added is updated every 5 minutes. A decreasing value is interpreted as the start of a new meter cycle or the replacement of the meter.