c0ffeeca7 980996f0f5
Docs: fix markdown in related meta data section (#32431)
* Docs: fix markdown in related meta data section

* Fix markdown

* Update source/_docs/organizing/categories.markdown

Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>

---------

Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
2024-04-23 14:49:58 +02:00

2.7 KiB

title, description, related
title description related
Labels Label your areas, devices, entities, automations, scripts, and helpers. Then, filter by label or run an automation on all entities with that label.
docs title
/docs/organizing/areas/ Areas
docs title
/docs/organizing/floors/ Floors
docs title
/docs/organizing/categories/ Categories
docs title
/docs/configuration/templating/#labels 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. 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.

Creating a label

Follow these steps to create a new label from the Labels view.

  1. Go to {% my labels title="Settings > Areas, labels & zones" %} and on top, select the Labels tab.

  2. Select the Create label button.

  3. In the dialog, enter the label details:

    • Give the label a Name (required).
    • Add an icon (We use Material icons).
    • Add a Color.

    Create label dialog

  4. Select Create.

    Result: A new label is created.

Applying labels

Follow these steps to apply a label

  1. To apply a label to an area:

    • Go to {% my areas title="Settings > Areas, labels & zones" %}.
    • 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.
    • Select the Multiselect icon button.
    • From the list, select all the items to which you want to apply a label.
    • In the top right corner, select Add label. Then, select the labels from the list.

    Apply label

  3. To apply a label to an automation, scene, or script:

    • Go to {% my automations title="Settings > Automations & Scenes" %} and open the respective tab.
    • Select the Multiselect icon button.
    • From the list, select all the items to which you want to apply a label.
    • In the top right corner, select the three dots menu, then select Add label. Then, select the labels from the list.