Document number device class (#23116)

This commit is contained in:
Erik Montnemery 2022-06-16 14:39:58 +02:00 committed by GitHub
parent 8115b304a0
commit d5adb9af02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,14 @@ Number entities cannot be implemented manually, but can be provided by other
integrations. If you are looking for a way to create a number entity,
please take a look at the [Number helper](/integrations/input_number).
### Services
## Device Class
The type of data a number represents impacts how it is displayed in the frontend. This is controlled by the number's device class designation. Built-in numbers and many created from an integration will have this designation predefined. Those can be modified in the [customize section](/docs/configuration/customizing-devices/). When manually creating a new number the device class may be optionally assigned. A full list of available number device classes is below:
- **None**: Generic number. This is the default and doesn't need to be set.
- **temperature**: Temperature in °C or °F
## Services
The Number entities registers the following services: