mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +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.
|
The variable command allows you to set/override variables that will be accessible by templates in actions after it.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- variables:
|
- variables:
|
||||||
entities: light.kitchen, light.living_room
|
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 }}"
|
brightness: "{{ brightness }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
## Test a Condition
|
## 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].
|
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