mini-graph-card: Last aggregate does not work

I installed 0.9.1 and updated the js to use .js?0.9.1 (so not cached)…

I have the following:

aggregate_func: last
entities:
  - entity: sensor.withings_weight_kg_kris
    name: Weight
font_size: 75
group_by: date
height: 200
hours_to_show: 672
line_color: var(--accent-color)
show:
  icon_adaptive_color: true
  labels: true
  points: hover
style: |
  ha-card {
    padding-top: 0 !important;
    padding-left: 2px !important;
  }
  .header {
    padding-bottom: 0 !important;
  }
  .label--max,
  .label--min {
    box-shadow: unset !important;
  }
type: 'custom:mini-graph-card'

Which produces:

image

The weight entry is 86.44 is the last reading that was taken this morning, however when I move over the last item that covers the day of the last reading I get the average still.

Yesterdays reading was 87.21 … (86.44 + 87.21) / 2 = 86.825:

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

`

     - type: custom:mini-graph-card
       entities:
        - entity: sensor.temperature_158d0002bfbdf8
          aggregate_func: max
          name: Max
          color: red
        - entity: sensor.temperature_158d0002bfbdf8
          aggregate_func: min
          name: Min
          color: green
        - entity: sensor.temperature_158d0002bfbdf8
          aggregate_func: avg
          name: Temperatura media
          color: blue
       group_by: date
       state: false
       hours_to_show: 240
       points_per_hour: 1
       animate: true
       line_width: 1
       average: true
       icon_adaptive_color: true
       hour24: true`

immagine my code and result on lovelace (sorry for previous post. Newbie on github. I’ve updated the last version of mini-graph via HACS )

update: MIN e AVG graphics are not visible

UP/UPDATE: WORKS!!! Need to UNINSTALL and REINSTALL minigraph via HACS. SOLVED. Thank you (and mgiako) for work and help