esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
413 stars 26 forks source link

Peak detection filter #1980

Open rcxrbt opened 1 year ago

rcxrbt commented 1 year ago

Describe the problem you have/What new integration you would like Implement a peak detection filter for sensors.

Example, from this 3Jl2b

to this slQEu

Please describe your use case for this integration and alternatives you've tried: Some code in C or other languages for z-score implementation are available here:

https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data/54507140#54507140 Additional context

nagyrobi commented 1 year ago

What's your use case?

rcxrbt commented 1 year ago

I use a Particulate Matter 2.5 sensor to detect cigarette skome from my neighbors that invade my balcony. :( I tried to use derivate of PM 2.5 sensor, but it's far from good results

Screenshot_2022-11-23-20-30-48-463-edit_io homeassistant companion android

The two peaks are smoke from my neighbor...

nagyrobi commented 1 year ago

Come to Discord support channel

rcxrbt commented 1 year ago

ok. I m on discord. What is your nickname?

nagyrobi commented 1 year ago

Open a thread there with this question.

BartRuSec commented 10 months ago

Maybe this might help https://github.com/esphome/feature-requests/issues/2415#issuecomment-1837275483 It helps me to detect peaks and when there is no peaks, it calculate throttle average: image