dbuezas / lovelace-plotly-graph-card

Highly customisable Lovelace card to plot interactive graphs. Brings scrolling, zooming, and much more!
408 stars 19 forks source link

Show value missing when using filter #375

Open jazzmonger opened 8 months ago

jazzmonger commented 8 months ago

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

dbuezas commented 8 months ago

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.

jazzmonger commented 8 months ago

That worked! Thx!

jeff