bremor / bureau_of_meteorology

Custom component for retrieving weather information from the Bureau of Meteorology.
MIT License
190 stars 31 forks source link

Enable support for long-term statistics #166

Closed corneels closed 1 year ago

corneels commented 1 year ago

https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

Integrations need to configure their entities correctly so Home Assistant knows that we need to track statistics for it and how.

Home Assistant has support for storing sensors as long-term statistics if the entity has the right properties. To opt-in for statistics, the sensor must have state_class set to one of the valid state classes: measurement, total or total_increasing. For certain device classes, the unit of the statistics is normalized to for example make it possible to plot several sensors in a single graph.

When I try to make a card type 'statistics-graph', I get the following error in the UI: No statistics found.

whatsupskip commented 1 year ago

Have you found a solution to this problem?

corneels commented 1 year ago

No

On Tue, 28 Feb 2023 at 13:00, whatsupskip @.***> wrote:

Have you found a solution to this problem?

— Reply to this email directly, view it on GitHub https://github.com/bremor/bureau_of_meteorology/issues/166#issuecomment-1447496085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM34RGCA5W4W42AXDFA5V3WZVS3NANCNFSM6AAAAAAT7AYMII . You are receiving this because you authored the thread.Message ID: @.***>

Makin-Things commented 1 year ago

The integration provides the current data. Long term stats need to be handled by HA itself or use node red/grafana to collect/display.