Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show value missing when using filter #375

Open
jazzmonger opened this issue Feb 15, 2024 · 2 comments
Open

Show value missing when using filter #375

jazzmonger opened this issue Feb 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jazzmonger
Copy link

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 jazzmonger added the bug Something isn't working label Feb 15, 2024
@dbuezas
Copy link
Owner

dbuezas commented Feb 16, 2024

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
Copy link
Author

That worked! Thx!

jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants