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
# Example configuration.yaml entry
binary_sensor:
- platform: template
sensors:
flume_status:
friendly_name: "Flume Flow Status"
value_template: >-
{{ states.sensor.flume_sensor.state != "0" }}
template:
- binary_sensor:
- name: "Flume Flow Status"
state: >-
{{ states('sensor.flume_sensor') != "0" }}
```
{% endraw %}