From 2ead9829e6c45ca4b1a34c9fd7d7a3f80053e884 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Wed, 26 Oct 2022 21:04:22 +0200 Subject: [PATCH] Add device class for knx (#24702) --- source/_integrations/knx.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_integrations/knx.markdown b/source/_integrations/knx.markdown index ba10dfebaf2..8b9a939d35f 100644 --- a/source/_integrations/knx.markdown +++ b/source/_integrations/knx.markdown @@ -1661,6 +1661,10 @@ entity_category: required: false type: string default: None +device_class: + description: Sets the [class of the device](/integrations/switch/), changing the device state and icon that is displayed on the frontend. + required: false + type: string {% endconfiguration %} The optional `state_address` can be used to inform Home Assistant about state changes not triggered by a telegram to the `address` e.g., if you configure a timer on a channel. If a KNX message is seen on the bus addressed to the given state address, this will overwrite the state of the switch object.