mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Rename Services to Actions: several tweaks (#33845)
This commit is contained in:
parent
f8c7bbb661
commit
321275e2a6
@ -34,10 +34,10 @@ automation 2:
|
|||||||
event: sunset
|
event: sunset
|
||||||
offset: -00:30
|
offset: -00:30
|
||||||
variables:
|
variables:
|
||||||
notification_service: notify.paulus_iphone
|
notification_action: notify.paulus_iphone
|
||||||
action:
|
action:
|
||||||
# Actions are scripts so can also be a list of actions
|
# Actions are scripts so can also be a list of actions
|
||||||
- service: "{{ notification_service }}"
|
- service: "{{ notification_action }}"
|
||||||
data:
|
data:
|
||||||
message: "Beautiful sunset!"
|
message: "Beautiful sunset!"
|
||||||
- delay: 0:35
|
- delay: 0:35
|
||||||
|
@ -13,7 +13,7 @@ As part of the default onboarding process, Home Assistant can detect your locati
|
|||||||
Screenshot showing the General settings page.
|
Screenshot showing the General settings page.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
The general settings described here are managed by the [Home Assistant Core integration](/integrations/homeassistant/). If you are interested in the services offered by this integration, check out the integration documentation.
|
The general settings described here are managed by the [Home Assistant Core integration](/integrations/homeassistant/). If you are interested in the actions offered by this integration, check out the integration documentation.
|
||||||
|
|
||||||
## Editing the general settings
|
## Editing the general settings
|
||||||
|
|
||||||
|
@ -26,13 +26,13 @@ In addition, all events contain a `data` dictionary with event-specific informat
|
|||||||
|
|
||||||
### `call_service`
|
### `call_service`
|
||||||
|
|
||||||
This event is fired when a service is called.
|
This event is fired when an service action is performed
|
||||||
|
|
||||||
| Field | Description |
|
| Field | Description |
|
||||||
| ----------------- | ------------------------------------------------------------------------------ |
|
| ----------------- | ------------------------------------------------------------------------------ |
|
||||||
| `domain` | Domain of the service. Example: `light`. |
|
| `domain` | Domain of the action. Example: `light`. |
|
||||||
| `service` | The service to call. Example: `turn_on` |
|
| `service` | The service action that is performed. Example: `turn_on` |
|
||||||
| `service_data` | Dictionary with the service call parameters. Example: `{ 'brightness': 120 }`. |
|
| `service_data` | Dictionary with the call parameters. Example: `{ 'brightness': 120 }`. |
|
||||||
| `service_call_id` | String with a unique call id. Example: `23123-4`. |
|
| `service_call_id` | String with a unique call id. Example: `23123-4`. |
|
||||||
|
|
||||||
### `component_loaded`
|
### `component_loaded`
|
||||||
@ -96,21 +96,21 @@ If you want to trigger automation on a Home Assistant stop event, we recommend u
|
|||||||
|
|
||||||
### `service_registered`
|
### `service_registered`
|
||||||
|
|
||||||
This event is fired when a new service has been registered within Home Assistant.
|
This event is fired when a new service action has been registered within Home Assistant.
|
||||||
|
|
||||||
| Field | Description |
|
| Field | Description |
|
||||||
| --------- | ----------------------------------------------------------------------- |
|
| --------- | ----------------------------------------------------------------------- |
|
||||||
| `domain` | The domain of the integration that offers this service. Example: `light`. |
|
| `domain` | The domain of the integration that offers this action. Example: `light`. |
|
||||||
| `service` | The name of the service. Example: `turn_on` |
|
| `service` | The name of the service action. Example: `turn_on` |
|
||||||
|
|
||||||
### `service_removed`
|
### `service_removed`
|
||||||
|
|
||||||
This event is fired when a service has been removed from Home Assistant.
|
This event is fired when a service action has been removed from Home Assistant.
|
||||||
|
|
||||||
| Field | Description |
|
| Field | Description |
|
||||||
| --------- | ----------------------------------------------------------------------- |
|
| --------- | ----------------------------------------------------------------------- |
|
||||||
| `domain` | The domain of the integration that offers this service. Example: `light`. |
|
| `domain` | The domain of the integration that offers this action. Example: `light`. |
|
||||||
| `service` | The name of the service. Example: `turn_on` |
|
| `service` | The name of the service action. Example: `turn_on` |
|
||||||
|
|
||||||
### `state_changed`
|
### `state_changed`
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ data: >
|
|||||||
|
|
||||||
Some actions may respond with data that can be used in automation. This data is called _action response data_. Action response data
|
Some actions may respond with data that can be used in automation. This data is called _action response data_. Action response data
|
||||||
is typically used for data that is dynamic or large and which may not be suited for use in entity state.
|
is typically used for data that is dynamic or large and which may not be suited for use in entity state.
|
||||||
Examples of service response data are upcoming calendar events for the next week or detailed driving directions.
|
Examples of action response data are upcoming calendar events for the next week or detailed driving directions.
|
||||||
|
|
||||||
Templates can also be used for handling response data. The action can specify
|
Templates can also be used for handling response data. The action can specify
|
||||||
a `response_variable`. This is the [variable](/docs/scripts/#variables)
|
a `response_variable`. This is the [variable](/docs/scripts/#variables)
|
||||||
|
@ -57,7 +57,7 @@ The attribute filter supports separate filters for attribute names and values, s
|
|||||||
|
|
||||||
## Actions tab
|
## Actions tab
|
||||||
|
|
||||||
This section is used to perform actions that are available in the ServiceRegistry.
|
This section is used to perform actions that are available in Home Assistant.
|
||||||
|
|
||||||
The list of actions in the **Actions** dropdown are automatically populated based on the integrations that are found in the configuration, automation and script files. If a desired action does not exist, it means either the integration is not configured properly or not defined in the configuration, automation or script files.
|
The list of actions in the **Actions** dropdown are automatically populated based on the integrations that are found in the configuration, automation and script files. If a desired action does not exist, it means either the integration is not configured properly or not defined in the configuration, automation or script files.
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ Run various commands from anywhere without having to navigate to another view.
|
|||||||
Type | Available |
|
Type | Available |
|
||||||
| ------------- | ------------- |
|
| ------------- | ------------- |
|
||||||
| Navigate | All entries in the sidebar and settings |
|
| Navigate | All entries in the sidebar and settings |
|
||||||
| Reload | All currently-supported "Reload {domain}" services.<br />*(E.g., "Reload Scripts")* |
|
| Reload | All currently-supported "Reload {domain}" actions.<br />*(E.g., "Reload Scripts")* |
|
||||||
| Server | Restart/Stop |
|
| Server | Restart/Stop |
|
||||||
|
|
||||||
## My links
|
## My links
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
{% icon "mdi:script-text" %} {% active_link /docs/scripts/ Scripts %}
|
{% icon "mdi:script-text" %} {% active_link /docs/scripts/ Scripts %}
|
||||||
{% if doc == 'scripts' or include.docs_index %}
|
{% if doc == 'scripts' or include.docs_index %}
|
||||||
<ul>
|
<ul>
|
||||||
<li>{% active_link /docs/scripts/service-calls/ Service calls %}</li>
|
<li>{% active_link /docs/scripts/service-calls/ Actions %}</li>
|
||||||
<li>{% active_link /docs/scripts/conditions/ Conditions %}</li>
|
<li>{% active_link /docs/scripts/conditions/ Conditions %}</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -181,7 +181,7 @@ mode:
|
|||||||
type: string
|
type: string
|
||||||
resources:
|
resources:
|
||||||
required: false
|
required: false
|
||||||
description: "List of resources that should be loaded. Only use this when mode is `yaml`. If you change anything here, click the three dots {% icon "mdi:dots-vertical" %} menu (top-right) and click on `Reload resources` to pick up changes without restarting Home Assistant. You can also call `lovelace.reload_resources` service directly."
|
description: "List of resources that should be loaded. Only use this when mode is `yaml`. If you change anything here, click the three dots {% icon "mdi:dots-vertical" %} menu (top-right) and click on `Reload resources` to pick up changes without restarting Home Assistant. You can also call `lovelace.reload_resources` action directly."
|
||||||
type: list
|
type: list
|
||||||
keys:
|
keys:
|
||||||
url:
|
url:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user