mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
change example to pass true/false so it actually works, clarify snesor name, and fix broken links (#4084)
This commit is contained in:
parent
800e28429c
commit
286d156439
@ -119,7 +119,7 @@ The meaning of the `alarm_level` entity depends on the nature of the alarm senso
|
|||||||
- **254**: Deep sleep
|
- **254**: Deep sleep
|
||||||
- **255**: Case open
|
- **255**: Case open
|
||||||
|
|
||||||
If your device has an `access_control` entity, but not a `binary_sensor` equivalent, you can use a [template binary sensor](omponents/binary_sensor.template/) to create one:
|
If your device has an `access_control` entity, but not a `binary_sensor` equivalent, you can use a [template binary sensor](/components/binary_sensor.template/) to create one:
|
||||||
|
|
||||||
```
|
```
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
@ -128,10 +128,10 @@ binary_sensor:
|
|||||||
YOUR_SENSOR:
|
YOUR_SENSOR:
|
||||||
friendly_name: "Friendly name here"
|
friendly_name: "Friendly name here"
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
|
{% raw %}{%- if is_state('sensor.YOUR_ORIGINAL_SENSOR_access_control', '22') -%}
|
||||||
on
|
true
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
off
|
false
|
||||||
{%- endif -%}{% endraw %}
|
{%- endif -%}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ binary_sensor:
|
|||||||
- **254**: Deep sleep
|
- **254**: Deep sleep
|
||||||
- **255**: Case open
|
- **255**: Case open
|
||||||
|
|
||||||
If your device has an `burglar` entity, but not a `binary_sensor` equivalent, you can use a [template binary sensor](omponents/binary_sensor.template/) to create one:
|
If your device has an `burglar` entity, but not a `binary_sensor` equivalent, you can use a [template binary sensor](/components/binary_sensor.template/) to create one:
|
||||||
|
|
||||||
```
|
```
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user