mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +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
|
||||
action:
|
||||
service_template: >
|
||||
{% if is_state('switch.bathroom', 'on') %}
|
||||
{% raw %}{% if is_state('switch.bathroom', 'on') %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
{% endif %}{% endraw %}
|
||||
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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user