Skip to content

Long term statistics support

Compare
Choose a tag to compare
@dbuezas dbuezas released this 24 Oct 16:04
· 174 commits to master since this release

Thanks to @FrnchFrgg , this version brings support for statistics!

type: custom:plotly-graph-dev
entities:
  - entity: sensor.temperature
    statistic: mean # min, mean, max or sum
    period: hour # 5minute, hour, day or month

This means that multi day plots can now be very snappy, and you can look way back in the past too.

Also, the API for attributes changed a bit: Instead of the old ugly climate.living::temperature hack, now it is:

type: custom:plotly-graph-dev
entities:
  - entity: climate.living
    attribute: temperature

(but the old api is kept too for backwards compatibility)

After we added statistics support, I decided to make a fairly big refactor to improve the API of both statistics and attributes.
Because of that, this one is marked as beta version. Please feel encouraged to report any bugs as issues, or drop a thanks to @FrnchFrgg in the discussions section if you were missing the feature!