Add device class for knx (#24702)

This commit is contained in:
Joakim Plate 2022-10-26 21:04:22 +02:00 committed by GitHub
parent e767afd9ef
commit 2ead9829e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.