Skip to content
Open
Changes from 2 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
13 changes: 13 additions & 0 deletions content/components/binary_sensor/analog_threshold.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ binary_sensor:
threshold: 0.5
```

As an alternative to using this component you may use {{< docref "components/binary_sensor/template" >}} with [condition expressions](#config-condition):
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The anchor link #config-condition appears to be invalid as there is no corresponding section with that ID in this document. Either remove the anchor or link to the correct documentation page where condition expressions are explained.

Suggested change
As an alternative to using this component you may use {{< docref "components/binary_sensor/template" >}} with [condition expressions](#config-condition):
As an alternative to using this component you may use {{< docref "components/binary_sensor/template" >}} with [condition expressions](https://esphome.io/components/binary_sensor/template.html#condition):

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it and it still works. This way of referencing this document is used in many places.


```yaml
# Example configuration entry
binary_sensor:
- platform: template
id: engine_running
name: "Engine Running"
condition:
sensor.in_range:
sensor_id: motor_current_sensor
```

## Configuration variables

- **sensor_id** (**Required**, [ID](#config-id)): The ID of the source sensor.
Expand Down