mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 02:37:03 +00:00
Improves documentation with better example and link to algorithm (#4883)
* Added history_period * added link * history_period is no longer needed
This commit is contained in:
parent
3c45088ac3
commit
6585332701
@ -37,6 +37,15 @@ sensor:
|
|||||||
- filter: lowpass
|
- filter: lowpass
|
||||||
time_constant: 10
|
time_constant: 10
|
||||||
precision: 2
|
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
|
- filter: time_simple_moving_average
|
||||||
window_size: 00:05
|
window_size: 00:05
|
||||||
precision: 2
|
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 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
|
```python
|
||||||
B = 1.0 / time_constant
|
B = 1.0 / time_constant
|
||||||
|
Loading…
x
Reference in New Issue
Block a user