Describe the problem you have/What new integration you would like
There isn’t a high pass filter available for the esphome sensor component. Propose that one be added. Could be as simple as the example below.
Please describe your use case for this integration and alternatives you've tried:
Attempting to use an accelerometer to detect vibration and would like to be able to filter out DC accelerations (gravity, sensor bias) without having to calibrate or calculate the orientation of the sensor. I've tried adding this filter to a custom component based on the accelerometer component (MPU6050).
Additional context
I'm using the MPU6050 component to detect whether a machine is running. I think creating a custom component will work, but suspect that this functionality would be broadly useful.
Describe the problem you have/What new integration you would like There isn’t a high pass filter available for the esphome sensor component. Propose that one be added. Could be as simple as the example below.
Parameters:
alpha = time_constant/(time_constant+update_period)
Difference Equation
output = alpha * ( previous_output + input - previous_input)
Please describe your use case for this integration and alternatives you've tried: Attempting to use an accelerometer to detect vibration and would like to be able to filter out DC accelerations (gravity, sensor bias) without having to calibrate or calculate the orientation of the sensor. I've tried adding this filter to a custom component based on the accelerometer component (MPU6050).
Additional context I'm using the MPU6050 component to detect whether a machine is running. I think creating a custom component will work, but suspect that this functionality would be broadly useful.