From 1d596b6386c7b214a93edce518ed50449f10d513 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Mon, 5 Jun 2023 13:56:20 +0200 Subject: [PATCH] Add device_class and state_class to Command Line Sensor (#27639) --- source/_integrations/command_line.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/_integrations/command_line.markdown b/source/_integrations/command_line.markdown index b83337e63c0..22618313b6d 100644 --- a/source/_integrations/command_line.markdown +++ b/source/_integrations/command_line.markdown @@ -168,6 +168,16 @@ command_line: description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload." required: false 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: description: Switch platform. required: false