mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Document short hand templates in condition actions (#20794)
This commit is contained in:
parent
45071ecdc0
commit
65ef7786dd
@ -424,7 +424,7 @@ condition:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
But also in the `repeat` action's `while` or `until` option, or in a `choose` action's `conditions` option:
|
||||
It's also supported in the `repeat` action's `while` or `until` option, or in a `choose` action's `conditions` option:
|
||||
|
||||
{% raw %}
|
||||
|
||||
@ -447,15 +447,15 @@ But also in the `repeat` action's `while` or `until` option, or in a `choose` ac
|
||||
|
||||
{% endraw %}
|
||||
|
||||
<div class="note warning">
|
||||
It's also supported in script or automation `condition` actions:
|
||||
|
||||
While conditions can be used in script sequences or automation actions, the
|
||||
shorthand for template conditions cannot be used directly in those constructs.
|
||||
{% raw %}
|
||||
|
||||
However, if an used action supports conditions itself, like `choose` and
|
||||
`repeat`, the shorthand template conditions will be accepted in those cases.
|
||||
```yaml
|
||||
- condition: "{{ is_state('device_tracker.iphone', 'away') }}"
|
||||
```
|
||||
|
||||
</div>
|
||||
{% endraw %}
|
||||
|
||||
[template]: /topics/templating/
|
||||
[automation-templating]: /getting-started/automation-templating/
|
||||
|
Loading…
x
Reference in New Issue
Block a user