mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +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
|
```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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user