mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add device_class and state_class to Command Line Sensor (#27639)
This commit is contained in:
parent
ed179196ee
commit
1d596b6386
@ -168,6 +168,16 @@ command_line:
|
|||||||
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload."
|
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
device_class:
|
||||||
|
description: Sets the class of the device, changing the device state and icon that is displayed on the UI (see below). It does not set the `unit_of_measurement`.
|
||||||
|
required: false
|
||||||
|
type: device_class
|
||||||
|
default: None
|
||||||
|
state_class:
|
||||||
|
description: "The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: None
|
||||||
switch:
|
switch:
|
||||||
description: Switch platform.
|
description: Switch platform.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user