"Average Energy Consumption" as "state_class: measurement"
Grumblezz opened this issue · comments
I have recently used this addon, and I loved it, as I was quite happy to see that I was able to read so many sensors. Anyways, as I was creating a dashboard with the various entities, but then I noticed that the Average Energy Consumption
is not created with the option state_class: measurement
. Whilst for example the Average Speed
is created with this option enabled, and thus it allows to do historical (in my case monthly) statistics.
As the Average Energy Consumption
is a useful indicator to the driving style, therefor I wanted to plot these over an longer timeframe.
This is shown in the MQTT Debug panel for the Average Energy Consumption
:
And the Average Speed
is what is shown for an entity which has the state_class: measurement
enabled:
Please add the state_class: measurement
for the Average Energy Consumption
.
I found in the const.py the entities, but I don't know how I could test it in HA... otherwise I would have created an pull request :)
Line 125 in 907440b
Into:
{"name": "Average Energy Consumption", "domain": "sensor", "id": "average_energy_consumption", "unit": ENERGY_KILO_WATT_HOUR, "icon": "car-electric", "url": STATISTICS_URL, "state_class": "measurement"},
This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.