Add sensor duration device class (#1432)

This commit is contained in:
Martin Hjelmare 2022-08-09 18:40:01 +02:00 committed by GitHub
parent 919436779b
commit 9843d22ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ If specifying a device class, your sensor entity will need to also return the co
| carbon_monoxide | ppm | Concentration of carbon monoxide. | carbon_monoxide | ppm | Concentration of carbon monoxide.
| current | A | Current | current | A | Current
| date | | Date. Requires `native_value` to be a Python `datetime.date` object, or `None`. | date | | Date. Requires `native_value` to be a Python `datetime.date` object, or `None`.
| duration | d, h, min, s | Time period. Should not update only due to time passing. The device or service needs to give a new data point to update.
| energy | Wh, kWh, MWh | Energy, statistics will be stored in kWh. Represents _power_ over _time_. Not to be confused with `power`. | energy | Wh, kWh, MWh | Energy, statistics will be stored in kWh. Represents _power_ over _time_. Not to be confused with `power`.
| frequency | Hz, kHz, MHz, GHz | Frequency | frequency | Hz, kHz, MHz, GHz | Frequency
| gas | m³, ft³ | Volume of gas, statistics will be stored in m³. Gas consumption measured as energy in kWh instead of a volume should be classified as energy. | gas | m³, ft³ | Volume of gas, statistics will be stored in m³. Gas consumption measured as energy in kWh instead of a volume should be classified as energy.