Document clamp filter's ignore out of range option (#3223)
This commit is contained in:
parent
e21a67b5a1
commit
51a0866e1a
|
@ -262,12 +262,26 @@ degree with a least squares solver.
|
|||
``clamp``
|
||||
*********
|
||||
|
||||
Limits the value to the range between ``min_value`` and ``max_value``. Sensor values outside these bounds will be set to ``min_value`` or ``max_value``, respectively. If ``min_value`` is not set, there is no lower bound, if ``max_value`` is not set there is no upper bound.
|
||||
Limits the value to the range between ``min_value`` and ``max_value``. By default, sensor values outside these bounds will be set to ``min_value`` or ``max_value``, respectively. If ``ignore_out_of_range`` is true, then sensor values outside those bounds will be ignored. If ``min_value`` is not set, there is no lower bound; if ``max_value`` is not set there is no upper bound.
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **min_value** (*Optional*, float): The lower bound of the range.
|
||||
- **max_value** (*Optional*, float): The upper bound of the range.
|
||||
- **ignore_out_of_range** (*Optional*, bool): If true, ignores all sensor values out of the range. Defaults to ``false``.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
- platform: wifi_signal
|
||||
# ...
|
||||
filters:
|
||||
- clamp:
|
||||
min_value: 10
|
||||
max_value: 75
|
||||
ignore_out_of_range: true
|
||||
|
||||
|
||||
|
||||
``round``
|
||||
*********
|
||||
|
|
Loading…
Reference in New Issue