kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.97k stars 232 forks source link

A new "state: last" option gives confusing result #707

Closed ildar170975 closed 2 years ago

ildar170975 commented 2 years ago

A new show -> state: last option gives different results. FR for the "last" option. A believed that the last option should be used basically for delta & diff aggregations. In my case values for "last state" & "current state" should be same.

type: vertical-stack
cards:
  - type: custom:mini-graph-card
    entities:
      - entity: sensor.cleargrass_1_co2
    hours_to_show: 1
    line_width: 2
    points_per_hour: 120
    aggregate_func: last
    show:
      state: true
      points: true
  - type: custom:mini-graph-card
    entities:
      - entity: sensor.cleargrass_1_co2
    hours_to_show: 1
    line_width: 2
    points_per_hour: 120
    aggregate_func: last
    show:
      state: last
      points: true

image The sensor is updated every 30 sec.

jlsjonas commented 2 years ago

Likely duplicate of #659 state: last shows the last point on the graph as state try with smoothing: false

ildar170975 commented 2 years ago

try with smoothing: false

Thank you, the issue seems to be solved. Closing it.