mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update flume template binary_sensor example (#20271)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
4ab31c092f
commit
453fe3e340
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user