This commit is contained in:
Nikolay Vasilchuk 2019-01-16 21:04:25 +03:00 committed by Paulus Schoutsen
parent 57cf8576f0
commit 6a3c2d06e3
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ The way these sensors are displayed in the frontend can be modified in the [cust
- **illuminance**: The current light level in lx or lm.
- **temperature**: Temperature in °C or °F.
- **pressure**: Pressure in hPa or mbar.
- **timestamp**: Datetime object or timestamp string.
<p class='img'>
<img src='/images/screenshots/sensor_device_classes_icons.png' />

View File

@ -52,6 +52,12 @@ name:
required: false
type: string
default: REST Sensor
device_class:
description: >
The [type/class](/components/sensor/) of
the sensor to set the icon in the frontend.
required: false
type: string
value_template:
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the value."
required: false