unixorn/ha-mqtt-discoverable

Support for state_class property on sensors

Closed this issue · 0 comments

Certain features in Home Assistant (e.g. Energy dashboard) require sensors be marked up with the "total_increasing" state_class property - there might be other cases, this is the one I've run into.

Now even while I try to publish state_class information for sensors in my code (https://github.com/AnotherDaniel/smahub - the ha_mqtt plugin), this does not make it's way into the MQTT ha autodiscovery topics.

So the request is to add Sensor state_class property publication to ha-mqtt-discoverable.