oyvindwe / connectlife-ha

ConnectLife integration for Home Assistant
GNU General Public License v3.0
15 stars 2 forks source link

Long-term statistics #5

Closed deb0ro closed 1 hour ago

deb0ro commented 2 weeks ago

Hi, great integration, working like a charm after update to 0.0.6 :)

One thing I noticed now is that integration cannot be used to display nice graphs using long-term statistics, the dropdown entries are missing values for connectlife completely. Can you take a look at https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics as suggested in the UI when you have time? :)

Thank you and good work!

oyvindwe commented 2 weeks ago

That is a good point; I was actually missing history myself. It's a bit tricky to set the correct state class without proper data dictionaries for the various device types though.

I think we need to figure out a good way to define data dictionaries based on observed values, where state class is one of the properties.

oyvindwe commented 1 hour ago

This should be fixed in version 0.2.0