Update flume template binary_sensor example (#20271)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
SNoof85 2021-11-12 08:42:00 +01:00 committed by GitHub
parent 4ab31c092f
commit 453fe3e340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,13 +35,11 @@ The following YAML creates a binary sensor. This requires the default sensor to
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
binary_sensor: template:
- platform: template - binary_sensor:
sensors: - name: "Flume Flow Status"
flume_status: state: >-
friendly_name: "Flume Flow Status" {{ states('sensor.flume_sensor') != "0" }}
value_template: >-
{{ states.sensor.flume_sensor.state != "0" }}
``` ```
{% endraw %} {% endraw %}