mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

bug(aggregators): first (empty) item should be skipped

Open PrastoDj opened this issue 3 years ago • 9 comments

Hi, using aggregate function delta, the first bar displays always the value 0. It's like it uses the > instead of >= in lower bound hours_to_show parameter.

image

Thanks for your support

Prasto

PrastoDj avatar Jan 02 '21 08:01 PrastoDj

Please share your config :)

RomRider avatar Jan 18 '21 20:01 RomRider

Hi, same for me.

Here is my config:

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.amis_zahlerstand_gesamt
name: Verbrauch pro Stunde
hours_to_show: 6
aggregate_func: delta
points_per_hour: 1
group_by: hour
hour24: true
icon: 'mdi:counter'
show:
  graph: bar

outrun0506 avatar Jan 19 '21 08:01 outrun0506

Please share your config :)

Hi RomRider, here there is my config:

type: 'custom:mini-graph-card'
name: Energia consumata zona giorno
icon: 'hass:cash-usd-outline'
hours_to_show: 168
group_by: date
aggregate_func: delta
lower_bound: 0
upper_bound: 5
show:
  graph: bar
  labels: true
entities:
  - entity: sensor.shellyem_1_1_energy
    name: Energia consumata

PrastoDj avatar Jan 23 '21 17:01 PrastoDj

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!

stale[bot] avatar Feb 06 '22 23:02 stale[bot]

Still experiencing this issue with v0.11.0.

thijsputman avatar Feb 14 '22 21:02 thijsputman

Still an active issue, got it! Removing stale label.

stale[bot] avatar Feb 14 '22 21:02 stale[bot]

Same here

type: custom:mini-graph-card
entities:
  - entity: sensor.xyz
    name: xyz
name: xyyzz
hours_to_show: 168
aggregate_func: delta
group_by: date
lower_bound: 0
hour24: true
show:
  graph: bar

ss000710_chrome

nilvanis avatar Feb 27 '22 08:02 nilvanis

same here with v0.10.0

type: custom:mini-graph-card
entities:
  - sensor.vicare_solar_power_production_today
hours_to_show: 168
aggregate_func: delta
group_by: date
lower_bound: 0
hour24: true
show:
  graph: bar

Screenshot 2022-03-14 062948

Steph-74 avatar Mar 14 '22 05:03 Steph-74

It's also the same issue with aggregate_func: diff. @jlsjonas @RomRider is there any chance you could look on this?

nilvanis avatar May 16 '22 18:05 nilvanis