RPi-Reporter-MQTT2HA-Daemon
RPi-Reporter-MQTT2HA-Daemon copied to clipboard
Add state_class=measurement to sensors
Based on HA's documentation:
Home Assistant has support for storing sensors as long-term statistics if the entity has the right properties. To opt-in for statistics, the sensor must have
state_classset to one of the valid state classes:measurement,totalortotal_increasing.
I think it makes sense for the numeric sensors to be included in long-term statistics, and thus it would be good to include this field in the discovery message.
Good Idea, I'll look this over.
Good Idea, I'll look this over.
While searching for how to integrate state_class: measurement, I ended up right here. I would also be very pleased if this function could be implemented.
@upsuper & @ironsheep - any news here ?