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