Mini-graph-card: Data aggregation functions Max, Min, Avg does not want to work

Created on 6 Feb 2020  路  12Comments  路  Source: kalkih/mini-graph-card

I do not know why crazy reason does not indicate the 3 Max, Min and Avg values, I do it according to the parameters and only a temperature line is shown, what am I doing wrong?, this is my code in card
temperature crazy

```entities:

  • aggregate_func: max
    color: '#ff0042'
    entity: sensor.terraza_temperatura
    name: Max
  • aggregate_func: min
    color: '#00a2ff'
    entity: sensor.terraza_temperatura
    name: Min
  • aggregate_func: avg
    color: '#62ff96'
    entity: sensor.terraza_temperatura
    name: Media
    group_by: hour
    hours_to_show: 48
    icon_adaptive_color: true
    line_width: 2
    lower_bound: -10
    name: Temperatura Max & Min
    name_adaptive_color: true
    points: hover
    points_per_hour: 20
    show:
    labels: true
    type: 'custom:mini-graph-card'
    unit: 潞C
    upper_bound: 40
bug

All 12 comments

Thanks, yes this is a bug introduced in 0.9.0, when using an entity more than once in the same configuration.

Will there be any kind of solution shortly? Or can this parameter never be used? Thanks

It will absolutely be addressed, I'll work on it when I have an opportunity.

Good job your Mini graph card for HA, Home Assistant should buy your design, it's great and mandatory

Thank you very much! Waiting for this too!

Thanks!
Hopefully this weekend if nothing else comes up 馃憤

Should now be fixed in the latest release.

Updated the card version from HACS, restarted HA.. no changes. Did I miss anything? Can anybody confirm that it's fixed for sure?

Hello, HACS is really broken lately, updates do not work as they should.
Reinstalling the card though HACS will probably solve it.
See https://github.com/kalkih/mini-graph-card/issues/259#issuecomment-583760988

Oh, sorry, thanks for the tip!

I don't have HACS, I just have Home Assistant in a Synology docker, do I have to do something special? I created a new card but it still ignores me

Update the card manually, the aggregate function falls back to avg if it doesn't recognize the aggregate function, so if you're running a version of the card prior to min & max was implemented the card will use avg instead.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yadenisenko picture yadenisenko  路  4Comments

hajo62 picture hajo62  路  6Comments

simonwood0609 picture simonwood0609  路  7Comments

WhistleMaster picture WhistleMaster  路  6Comments

skarfacegc picture skarfacegc  路  7Comments