diff --git a/source/_components/sensor.markdown b/source/_components/sensor.markdown index a3cc2019987..791be58a734 100644 --- a/source/_components/sensor.markdown +++ b/source/_components/sensor.markdown @@ -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.

diff --git a/source/_components/sensor.rest.markdown b/source/_components/sensor.rest.markdown index bae594e5f4a..4f9bb9ee299 100644 --- a/source/_components/sensor.rest.markdown +++ b/source/_components/sensor.rest.markdown @@ -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