Sennevds / system_sensors

Logging of system sensor specific for the RPI and sending them to a MQTT broker
MIT License
361 stars 112 forks source link

added support for statistics in Homeassistant #145

Closed schuby-doo closed 1 year ago

schuby-doo commented 1 year ago

To use the long-term statistics values of the sensors in HomeAssistant, the configuration of the sensors must be extended. For long-term statistics the attribute 'state_class':'measurement' must be set. (so see: https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes)

I have extended the sensor configuration with the corresponding parameter.