Add blog post about new sensor device classes (#1478)

This commit is contained in:
Erik Montnemery 2022-09-28 15:02:50 +02:00 committed by GitHub
parent 1e6761fb2b
commit 4c1c85a6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,18 @@
---
author: Erik Montnemery
authorURL: https://github.com/emontnemery
title: "New sensor device classes"
---
Several new sensor device classes have been added:
- `distance`, a distance measured in either of `cm`, `ft`, `in`, `km`, `m`, `mi`, `mm`, `yd`
- `speed`, a speed measured in either of `ft/s`, `in/d`, `in/h`, `km/h`, `kn`, `m/s`, `mm/d`, `mph`
- `volume`, a volume measured in either of `fl. oz.`, `ft³`, `gal`, `L`, `mL`, `m³`
- `weight`, a mass measured in either of `g`, `kg`, `lb`, `mg`, `oz`, `µg`
Like `pressure` and `temperatures` sensors, users can freely choose the display unit from the UI for sensors using any of the new device classes.
### Long term statistics
Long term statistics will store `distance` as `m`, `speed` as `m/s`, `volume` as `m³` and `weight` as `g`.
For existing sensors which are modified to one of the new device classes, statistics will continue to be recorded in the sensor's `state_unit` but users will be given the option to have existing statistics converted to the normalized unit.