We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a332f commit 3b48211Copy full SHA for 3b48211
content/components/text_sensor/_index.md
@@ -185,6 +185,17 @@ filters:
185
}
186
```
187
188
+### `distinct`
189
+
190
+The distinct filter passes through a new text value only when it changes.
191
+If the incoming string is identical to the previously emitted one, it is suppressed.
192
+This is useful to avoid unnecessary updates or MQTT traffic when the text sensor’s value stays the same.
193
194
+```yaml
195
+filters:
196
+ - distinct:
197
+```
198
199
## Text Sensor Automation
200
201
You can access the most recent state of the sensor in [lambdas](#config-lambda) using
0 commit comments