question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Last aggregate does not work

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sajikurcommented, Feb 8, 2020

`

     - 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

0reactions
stale[bot]commented, Feb 7, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Last aggregate function in not working in Administrator Tool
hello friends, I am trying to use last function in my rpd .but i am unable to use this function.
Read more >
Why isn't FIRST_VALUE and LAST_VALUE an aggregation ...
Aggregate functions work on sets of data and while some of them might require some implied ordering operation such as median, the functions...
Read more >
last aggregate function | Databricks on AWS
Learn the syntax of the last function of the SQL language in Databricks SQL and Databricks Runtime.
Read more >
The FIRST and LAST Aggregate Functions - DBoriented
The FIRST and LAST functions extend this ability, and allow you to sort a group of rows by one column, but return the...
Read more >
aggregation functions · Issue #2456 · graphite-project ... - GitHub
This function can be used with aggregation functions average, median, sum, min, max, diff, stddev, count, range, multiply & last. but there is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found