timmo001 / ovoenergy

Get energy data from OVO's API.
https://timmo.dev
Apache License 2.0
32 stars 17 forks source link

Long-term Statistics #26

Closed totalitarian closed 3 years ago

totalitarian commented 3 years ago

I would like to use this with the new energy dashboard but in order for it to work I think we need to setup the sensors to support statistics and noted below?

Home Assistant has support for storing sensors as long-term statistics if the entity has the right properties. A requirement to opt-in for statistics is that the sensor has state_class set to measurement. That means that the current value represents the current value.

timmo001 commented 3 years ago

Done in https://github.com/home-assistant/core/pull/54157

totalitarian commented 3 years ago

Wow that was quick. Many thanks.

timmo001 commented 3 years ago

It's been on my todo list 😉