mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Fix variables in scripts example (#15253)
This commit is contained in:
parent
8dfb4bd021
commit
d6693742a6
@ -64,6 +64,8 @@ Scripts may also use a shortcut syntax for activating scenes instead of calling
|
||||
|
||||
The variable command allows you to set/override variables that will be accessible by templates in actions after it.
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
- variables:
|
||||
entities: light.kitchen, light.living_room
|
||||
@ -75,6 +77,8 @@ The variable command allows you to set/override variables that will be accessibl
|
||||
brightness: "{{ brightness }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
## Test a Condition
|
||||
|
||||
While executing a script you can add a condition to stop further execution. When a condition does not return `true`, the script will stop executing. There are many different conditions which are documented at the [conditions page].
|
||||
|
Loading…
x
Reference in New Issue
Block a user