From d2ec06eb6e1c479cc663e0cb0d04a499e53f555d Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Mon, 9 Aug 2021 23:42:36 +0200 Subject: [PATCH] Add `state_class` to KNX sensor (#18782) --- source/_integrations/knx.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/knx.markdown b/source/_integrations/knx.markdown index aa1a27133ed..7a173a0f19f 100644 --- a/source/_integrations/knx.markdown +++ b/source/_integrations/knx.markdown @@ -1334,6 +1334,10 @@ always_callback: required: false type: boolean default: false +state_class: + description: Sets the [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor. + required: false + type: string {% endconfiguration %} ### Value Types @@ -1504,6 +1508,7 @@ knx: state_address: "6/2/1" sync_state: every 60 type: temperature + state_class: measurement ``` ## Switch