Does anyone have an example of what they may have done to add state_class to items that are auto-discovered in HA? Specifically my case is I would like to use long term statistics on my zwave temperature sensors (state_class is not limited to just energy monitoring, I am using it already for my weather station).
I assume eventually this will be incorporated into ZwaveJS2MQTT, but until then what is considered the best practice? Would it be better to add under the Zwave web interface under HA for each device, if so what would be the formatting; or would the best route be to add a state_class in customize.yaml?
Since state_class is relatively new, I have not found any real reference to it in regards to ZwaveJS2MQTT with one exception on a GitLab page asking a question regarding energy monitoring from 3 weeks ago with no response (as far as I could tell).
It could be that I am just too impatient for this to ‘naturally’ occur, but I would like to start using this information in long term stats. I also have some zwave energy monitoring devices that would be nice to digest info for.