mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Add raw tags to template example in 0.15 release blog post
This commit is contained in:
parent
6315450524
commit
18ae052255
@ -36,13 +36,13 @@ automation:
|
|||||||
entity_id: switch.bathroom
|
entity_id: switch.bathroom
|
||||||
action:
|
action:
|
||||||
service_template: >
|
service_template: >
|
||||||
{% if is_state('switch.bathroom', 'on') %}
|
{% raw %}{% if is_state('switch.bathroom', 'on') %}
|
||||||
switch.turn_on
|
switch.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
switch.turn_off
|
switch.turn_off
|
||||||
{% endif %}
|
{% endif %}{% endraw %}
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: switch.{{ states('input_select.is') }}
|
entity_id: switch.{% raw %}{{ states('input_select.is') }}{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
[Hunter Douglas Powerview]: /components/scene.hunterdouglas_powerview/
|
[Hunter Douglas Powerview]: /components/scene.hunterdouglas_powerview/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user