mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-11 11:26:50 +00:00
Clarify conditional executing in script (#7782)
This commit is contained in:
parent
8581701803
commit
ca41a82015
@ -42,9 +42,10 @@ The most important one is the action to call a service. This can be done in vari
|
|||||||
|
|
||||||
### {% linkable_title Test a Condition %}
|
### {% linkable_title 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 finish. 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].
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
# If paulus is home, continue to execute the script below these lines
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: device_tracker.paulus
|
entity_id: device_tracker.paulus
|
||||||
state: 'home'
|
state: 'home'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user