mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Update action.markdown (#25051)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
a2c37441c6
commit
1a25497441
@ -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.
|
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
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
# Change the light in the kitchen and living room to 150 brightness and color red.
|
# 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."
|
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.
|
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
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user