Update action.markdown (#25051)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Martin 2022-11-28 14:59:06 +01:00 committed by GitHub
parent a2c37441c6
commit 1a25497441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,8 @@ The action of an automation rule is what is being executed when a rule fires. Th
You can also call the service to activate [a scene](/integrations/scene/) which will allow you to define how you want your devices to be and have Home Assistant call the right services.
{% raw %}
```yaml
automation:
# Change the light in the kitchen and living room to 150 brightness and color red.
@ -42,6 +44,8 @@ automation 2:
message: "Oh wow you really missed something great."
```
{% endraw %}
Conditions can also be part of an action. You can combine multiple service calls and conditions in a single action, and they will be processed in the order you put them in. If the result of a condition is false, the action will stop there so any service calls after that condition will not be executed.
```yaml