labels: rename 'service' to 'action' (#33804)

This commit is contained in:
c0ffeeca7 2024-07-16 16:40:59 +02:00 committed by GitHub
parent f3d6332421
commit b34f269bc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ related:
title: Using labels in templates title: Using labels in templates
--- ---
Labels in Home Assistant allow grouping elements irrespective of their physical location or type. Labels can be assigned to areas, devices, entities, automations, scenes, scripts, and helpers. Labels can be used in automations and scripts as a target for actions and services. Labels can also be used to filter data. Labels in Home Assistant allow grouping elements irrespective of their physical location or type. Labels can be assigned to areas, devices, entities, automations, scenes, scripts, and helpers. Labels can be used in automations and scripts as a target for actions. Labels can also be used to filter data.
For example, you can filter the list of devices to show only devices with the label `heavy energy usage` or turn these devices off when there is not a lot of solar energy available. For example, you can filter the list of devices to show only devices with the label `heavy energy usage` or turn these devices off when there is not a lot of solar energy available.
@ -41,14 +41,14 @@ Follow these steps to apply a label
- On the area card, select the pencil icon. - On the area card, select the pencil icon.
- Select one or more labels or select **Add new label** to create a new one. - Select one or more labels or select **Add new label** to create a new one.
2. To apply a label to a device, entity, or helper: 2. To apply a label to a device, entity, or helper:
- Go to **{% my integrations title="Settings > Devices & Services" %}** and open the respective tab. - Go to **{% my integrations title="Settings > Devices & services" %}** and open the respective tab.
- Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button. - Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button.
- From the list, select all the list entries to which you want to apply a label. - From the list, select all the list entries to which you want to apply a label.
- In the top right corner, select **Add label**. Then, select the labels from the list. - In the top right corner, select **Add label**. Then, select the labels from the list.
![Apply label](/images/organizing/labels_add_05.png) ![Apply label](/images/organizing/labels_add_05.png)
3. To apply a label to an automation, scene, or script: 3. To apply a label to an automation, scene, or script:
- Go to {% my automations title="**Settings** > **Automations & Scenes**" %} and open the respective tab. - Go to {% my automations title="**Settings** > **Automations & scenes**" %} and open the respective tab.
- Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button. - Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button.
- From the list, select all the list entries to which you want to apply a label. - From the list, select all the list entries to which you want to apply a label.
- In the top right corner, select the three dots {% icon "mdi:dots-vertical" %} menu, then select **Add label**. Then, select the labels from the list. - In the top right corner, select the three dots {% icon "mdi:dots-vertical" %} menu, then select **Add label**. Then, select the labels from the list.
@ -66,10 +66,9 @@ If you used this label in automations or script as targets, you need to adjust t
## Removing labels ## Removing labels
1. Go to the data table that contains the element from which you want to remove the label: 1. Go to the data table that contains the element from which you want to remove the label:
- Go to **{% my integrations title="Settings > Devices & Services" %}** and open the respective tab. - Go to **{% my integrations title="Settings > Devices & services" %}** and open the respective tab.
- Or, go to {% my automations title="**Settings** > **Automations & Scenes**" %} and open the respective tab. - Or, go to {% my automations title="**Settings** > **Automations & Scenes**" %} and open the respective tab.
2. Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button. 2. Select the <img height="28px" src="/images/organizing/multiselect_icon.png" alt="Multiselect icon"/> button.
- From the list, select all the items from which you want to remove a label. - From the list, select all the items from which you want to remove a label.
- In the top right corner, select the three dots {% icon "mdi:dots-vertical" %} menu, then select **Add label**. - In the top right corner, select the three dots {% icon "mdi:dots-vertical" %} menu, then select **Add label**.
- Then, deselect the checkbox for the label you want to remove. - Then, deselect the checkbox for the label you want to remove.