And some missing raw tags
This commit is contained in:
parent
a7ccbf18d4
commit
726029170f
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue