Skip to content

Commit c16ef30

Browse files
swoboda1337claude
andcommitted
Fix wording and formatting
- Change docref to standard markdown link - Improve wording for clarity - Fix sensor.in_range parameter (sensor_id → id) - Use proper note callout syntax - Wrap lines to stay under 120 chars 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7a13c35 commit c16ef30

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/components/binary_sensor/analog_threshold.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,24 @@ binary_sensor:
3434
threshold: 0.5
3535
```
3636
37-
As an alternative to using this component you may use {{< docref "components/binary_sensor/template" >}} with [condition expressions](/automations/actions/#all-conditions):
37+
Alternatively, you can achieve similar functionality using a
38+
[Template Binary Sensor](/components/binary_sensor/template) with the `condition` option:
3839

3940
```yaml
40-
# Example configuration entry
41+
# Alternative using template binary sensor
4142
binary_sensor:
4243
- platform: template
43-
id: engine_running
4444
name: "Engine Running"
4545
condition:
4646
sensor.in_range:
47-
sensor_id: motor_current_sensor
47+
id: motor_current_sensor
4848
above: 0.5
4949
```
5050

51+
> [!NOTE]
52+
> The template approach does not support hysteresis. Use `analog_threshold` if you need
53+
> different upper and lower thresholds to reduce noise.
54+
5155
## Configuration variables
5256

5357
- **sensor_id** (**Required**, [ID](/guides/configuration-types#id)): The ID of the source sensor.

0 commit comments

Comments
 (0)