Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions content/components/text_sensor/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,17 @@ filters:
}
```

### `distinct`

The distinct filter passes through a new text value only when it changes.
If the incoming string is identical to the previously emitted one, it is suppressed.
This is useful to avoid unnecessary updates or MQTT traffic when the text sensor’s value stays the same.

```yaml
filters:
- distinct:
```

## Text Sensor Automation

You can access the most recent state of the sensor in [lambdas](#config-lambda) using
Expand Down