mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
labels: rename 'service' to 'action' (#33804)
This commit is contained in:
parent
f3d6332421
commit
b34f269bc8
@ -12,7 +12,7 @@ related:
|
||||
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.
|
||||
|
||||
@ -41,14 +41,14 @@ Follow these steps to apply a label
|
||||
- On the area card, select the pencil icon.
|
||||
- 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:
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||

|
||||
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.
|
||||
- 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.
|
||||
@ -66,10 +66,9 @@ If you used this label in automations or script as targets, you need to adjust t
|
||||
## Removing labels
|
||||
|
||||
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.
|
||||
- Or, go to {% my automations title="**Settings** > **Automations & Scenes**" %} 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.
|
||||
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.
|
||||
- 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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user