mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 13:26:28 +00:00
Add wind_direction sensor and number device class (#2572)
This commit is contained in:
parent
e8ebc9ff19
commit
82ac1c5005
@ -80,6 +80,7 @@ If specifying a device class, your number entity will need to also return the co
|
||||
| `NumberDeviceClass.VOLUME_STORAGE` | L, mL, gal, fl. oz., m³, ft³, CCF | Generic stored volume, this device class should be used to represent a stored volume, for example the amount of fuel in a fuel tank.
|
||||
| `NumberDeviceClass.WATER` | L, gal, m³, ft³, CCF | Water consumption
|
||||
| `NumberDeviceClass.WEIGHT` | kg, g, mg, µg, oz, lb, st | Generic mass; `weight` is used instead of `mass` to fit with every day language.
|
||||
| `NumberDeviceClass.WIND_DIRECTION` | ° | Wind direction
|
||||
| `NumberDeviceClass.WIND_SPEED` | ft/s, km/h, kn, m/s, mph | Wind speed
|
||||
|
||||
## Restoring number states
|
||||
|
@ -86,6 +86,7 @@ If specifying a device class, your sensor entity will need to also return the co
|
||||
| `SensorDeviceClass.VOLUME_STORAGE` | L, mL, gal, fl. oz., m³, ft³, CCF | Generic stored volume, this device class should be used for sensors representing a stored volume, for example the amount of fuel in a fuel tank.
|
||||
| `SensorDeviceClass.WATER` | L, gal, m³, ft³, CCF | Water consumption
|
||||
| `SensorDeviceClass.WEIGHT` | kg, g, mg, µg, oz, lb, st | Generic mass; `weight` is used instead of `mass` to fit with every day language.
|
||||
| `SensorDeviceClass.WIND_DIRECTION` | ° | Wind direction
|
||||
| `SensorDeviceClass.WIND_SPEED` | ft/s, km/h, kn, m/s, mph | Wind speed
|
||||
|
||||
### Available state classes
|
||||
|
Loading…
x
Reference in New Issue
Block a user