From 6585332701b036d323e034eff07d5062152f515a Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Fri, 23 Mar 2018 20:55:27 +0000 Subject: [PATCH] Improves documentation with better example and link to algorithm (#4883) * Added history_period * added link * history_period is no longer needed --- source/_components/sensor.filter.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/_components/sensor.filter.markdown b/source/_components/sensor.filter.markdown index 5ce3132af15..b6a04b7b7fa 100644 --- a/source/_components/sensor.filter.markdown +++ b/source/_components/sensor.filter.markdown @@ -37,6 +37,15 @@ sensor: - filter: lowpass time_constant: 10 precision: 2 + - platform: filter + name: "filtered realistic temperature" + entity_id: sensor.realistic_temperature + filters: + - filter: outlier + window_size: 4 + radius: 2.0 + - filter: lowpass + time_constant: 10 - filter: time_simple_moving_average window_size: 00:05 precision: 2 @@ -95,7 +104,7 @@ filters: The Low-pass filter (`lowpass`) is one of signal processing most common filters, as it smooths data by shortcutting peaks and valleys. -The included Low-pass filter is very basic and is based on a moving average, in which the previous data point is weighted with the new data point. +The included Low-pass filter is very basic and is based on [exponential smoothing](https://en.wikipedia.org/wiki/Exponential_smoothing), in which the previous data point is weighted with the new data point. ```python B = 1.0 / time_constant