From a70e5b7e85b4840c92ffa7619584e35f1777f6f8 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 29 Jan 2025 10:35:43 +0100 Subject: [PATCH] Add config flow to filter (#33638) Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- source/_integrations/filter.markdown | 34 +++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/source/_integrations/filter.markdown b/source/_integrations/filter.markdown index fc3af0bc185..3e619cfc8e4 100644 --- a/source/_integrations/filter.markdown +++ b/source/_integrations/filter.markdown @@ -11,6 +11,7 @@ ha_quality_scale: internal ha_codeowners: - '@dgomes' ha_domain: filter +ha_config_flow: true ha_platforms: - sensor ha_integration_type: helper @@ -27,7 +28,38 @@ The `filter` {% term integration %} enables sensors that process the states of o

-## Configuration +{% include integrations/config_flow.md %} + +{% note %} +The UI configuration only supports setting one filter. For more advanced configurations where multiple filters are needed, please use the YAML configuration option to configure your filter sensor. +{% endnote %} + +Further information about these configuration options can be found under the [YAML configuration](#yaml-configuration) + +{% configuration_basic %} +Name: + description: The name the sensor should have. +Entity: + description: The entity that provides the input. Only `sensor` entities are supported. +Filter: + description: Algorithm to be used to filter data. Available filters are "Lowpass", "Outlier", "Range", "Throttle", "Time throttle" and "Moving Average (Time based)". +Precision: + description: Defines the precision of the filtered state. +Window size: + description: Size of the window of previous states. Time-based filters require a time period, while other filters require an integer. +Time constant: + description: Loosely relates to the amount of time it takes for a state to influence the output. +Radius: + description: Band radius from median of previous states. +Type: + description: Defines the type of Simple Moving Average. +Lower bound: + description: Lower bound for filter range. +Upper bound: + description: Upper bound for filter range. +{% endconfiguration_basic %} + +## YAML Configuration To enable Filter Sensors in your installation, add the following to your {% term "`configuration.yaml`" %} file. {% include integrations/restart_ha_after_config_inclusion.md %}