lovelace-plotly-graph-card icon indicating copy to clipboard operation
lovelace-plotly-graph-card copied to clipboard

Show value missing when using filter

Open jazzmonger opened this issue 1 year ago • 2 comments

Describe the bug

When using this filter, show value doesn't work:

      - sliding_window_moving_average:
          window_size: 20
          extended: true
          centered: true

Screenshots If applicable, add screenshots to help explain your problem. image

yaml

  - entity: climate.house_wood_pellet_stove
    attribute: current_temperature
    name: Temp@Stove
    yaxis: y1
    filters:
      - sliding_window_moving_average:
          window_size: 20
          extended: true
          centered: true

Additional context The sensor I have is EXTREMELY noisy. If there's another filter I can use, I'm all ears. I've tried several. image

jazzmonger avatar Feb 15 '24 13:02 jazzmonger

Hi there! It looks like you found a bug in the average filter. It is probably generating one too many data points.

In the meantime try adding a force_numeric filter after the averaging. That should remove the broken datapoint.

dbuezas avatar Feb 16 '24 00:02 dbuezas

That worked! Thx!

jeff

jazzmonger avatar Feb 16 '24 05:02 jazzmonger