Action page: rename 'service' to 'action' (#33792)

This commit is contained in:
c0ffeeca7 2024-07-16 15:19:00 +02:00 committed by GitHub
parent 9a363e22d5
commit 067ceac431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,11 @@ title: "Automation actions"
description: "Automations result in action." description: "Automations result in action."
--- ---
The action of an automation rule is what is being executed when a rule fires. The action part follows the [script syntax](/docs/scripts/) which can be used to interact with anything via services or events. The action of an automation rule is what is being executed when a rule fires. The action part follows the [script syntax](/docs/scripts/) which can be used to interact with anything via other actions or events.
For {% term services %}, you can specify the `entity_id` that it should apply to and optional service parameters (to specify for example the brightness). For actions, you can specify the `entity_id` that it should apply to and optional parameters (to specify for example the brightness).
You can also call the {% term 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 perform the action to activate [a scene](/integrations/scene/) which will allow you to define how you want your devices to be and have Home Assistant perform the right action.
{% raw %} {% raw %}
@ -48,7 +48,7 @@ automation 2:
{% endraw %} {% 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 actions 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 action after that condition will not be executed.
```yaml ```yaml
automation: automation: