custom-components / sensor.avanza_stock

Custom component to get stock data from Avanza for Home Assistant
MIT License
46 stars 10 forks source link

Support "long term statistics" #124

Closed yonz2 closed 2 years ago

yonz2 commented 2 years ago

In order to display some statistics on the HA Dashboard, support for the HA Long term Statistcs function is needed. See also: https://www.home-assistant.io/more-info/statistics/ and https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

claha commented 2 years ago

I've tried setting the state class (STATE_CLASS_TOTAL), I wanted to set the device class as well (DEVICE_CLASS_MONETARY) but that combination is not allowed according to the documentation. But whatever I try I am not able to add it to a statistics card. Any ideas?

claha commented 2 years ago

Not sure this can be done I don't really see the usecase