-
-
Couldn't load subscription status.
- Fork 2.1k
Enhance analog_threshold.md with alternative example #5491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: current
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,6 +34,18 @@ 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): | ||||||||||||||||||
|
|
||||||||||||||||||
| ```yaml | ||||||||||||||||||
| # Example configuration entry | ||||||||||||||||||
| binary_sensor: | ||||||||||||||||||
| - platform: template | ||||||||||||||||||
| id: engine_running | ||||||||||||||||||
| condition: | ||||||||||||||||||
| sensor.in_range: | ||||||||||||||||||
|
Comment on lines
43
to
46
|
||||||||||||||||||
| id: engine_running | |
| condition: | |
| sensor.in_range: | |
| id: engine_running | |
| name: "Engine Running" | |
| condition: | |
| sensor.in_range: | |
| sensor_id: motor_current_sensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: f8676ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The anchor link
#config-conditionappears 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.There was a problem hiding this comment.
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.