Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant Long-term Statistics support #78

Closed
robloh opened this issue Jun 23, 2022 · 1 comment · Fixed by #79
Closed

Home Assistant Long-term Statistics support #78

robloh opened this issue Jun 23, 2022 · 1 comment · Fixed by #79
Assignees

Comments

@robloh
Copy link

robloh commented Jun 23, 2022

Thanks for making this component, it's been working great!

HASS 2021.8 introduced long-term statistics (see https://www.home-assistant.io/blog/2021/08/04/release-20218/) which would be nice to have support for with yahoofinance.

From what I can tell the only thing that should be needed is to set the "state_class" property to "measurement", see: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

After this change the long term statistics can be seen in the developer tools (https://my.home-assistant.io/redirect/developer_statistics/) or by using the statistics graph card (https://www.home-assistant.io/dashboards/statistics-graph/)

As a secondary enhancement it might be good idea to set "device_class" property to "monetary"? See: https://www.home-assistant.io/integrations/sensor/#device-class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants