XKNX / xknx

XKNX - A KNX library written in Python

Home Page:http://xknx.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Support `device_class` for switches in HA integration

envy opened this issue · comments

Switches can have a device class (see https://www.home-assistant.io/integrations/switch/) but I cannot set it from the knx integration.

It would be nice to be able to set it, like we can set it for sensors.

Hey! The only reason we set it for sensors is that we need to know the DPT Type that is used to decode the payload from the bus.

We do not intend to add this to switches. Please use the customization feature in Home Assistant which is perfectly able to handle your use case without us even intervening :).