mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
And some missing raw tags
This commit is contained in:
parent
a7ccbf18d4
commit
726029170f
@ -129,11 +129,11 @@ sensor:
|
||||
sensor_class: opening
|
||||
friendly_name: "Friendly name here"
|
||||
value_template: >-
|
||||
{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
|
||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_access_control', '22') -%}
|
||||
open
|
||||
{%- else -%}
|
||||
closed
|
||||
{%- endif -%}
|
||||
{%- endif -%}{% endraw %}
|
||||
```
|
||||
|
||||
### {% linkable_title Burglar %}
|
||||
@ -158,11 +158,11 @@ sensor:
|
||||
sensor_class: motion
|
||||
friendly_name: "Friendly name here"
|
||||
value_template: >-
|
||||
{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
||||
{% raw %}{%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
|
||||
on
|
||||
{%- else -%}
|
||||
off
|
||||
{%- endif -%}
|
||||
{%- endif -%}{% endraw %}
|
||||
```
|
||||
|
||||
### {% linkable_title Source Node ID %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user