mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Document native_unit_of_measurement
and native_value
for sensor (#1035)
* Document `native_unit_of_measurement` and `native_value` for sensor * Fix typo Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
a17c85fe90
commit
8e5612b66b
@ -13,10 +13,11 @@ Properties should always only return information from memory and not do I/O (lik
|
||||
|
||||
| Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
| state | string | **Required** | The value of the sensor.
|
||||
| device_class | string | `None` | Type of sensor.
|
||||
| native_value | string | **Required** | The value of the sensor in the sensor's `native_unit_of_measurement`.
|
||||
| native_unit_of_measurement | string | `None` | The unit of measurement that the sensor's value is expressed in. If the `native_unit_of_measurement` is °C or °F, and its `device_class` is temperature, the sensor's `unit_of_measurement` will be the preferred temperature unit configured by the user and the sensor's `state` will be the `native_value` after an optional unit conversion.
|
||||
| state_class | string | `None` | Type of state.
|
||||
| unit_of_measurement | string | `None` | The unit of measurement that the sensor is expressed in.
|
||||
|
||||
|
||||
### Available device classes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user