mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
changed example in 'burglar' example to true/false
This commit is contained in:
parent
6ffc6a6d5c
commit
6c2d9a60d8
@ -157,9 +157,9 @@ binary_sensor:
|
|||||||
friendly_name: "Friendly name here"
|
friendly_name: "Friendly name here"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
||||||
on
|
true
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
off
|
false
|
||||||
{%- endif -%}{% endraw %}
|
{%- endif -%}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user