Rudd-O / homeassistant-meteoswiss

:sun_behind_rain_cloud: :switzerland: Meteo Swiss Integration for Home Assistant (forked from websylv)
86 stars 10 forks source link

Add support for long-term statistics #19

Closed sebcou21 closed 10 months ago

sebcou21 commented 1 year ago

Hi,

It would be useful to have support for long-term statistics by adding state_class: measurement to the sensors that support it as explained in https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics. It would allow to display min/max/mean values in the Statistics card for example.

Thanks in advance.

Rudd-O commented 10 months ago

I have added this in https://github.com/Rudd-O/homeassistant-meteoswiss/commits/master .

Please let me know if it works for you.

sebcou21 commented 10 months ago

It works, thanks for having implemented this.