2024-08-06 18:28:26 +02:00

4.7 KiB

title, description, related
title description related
Areas Group your devices and entities in areas and group areas in floors.
docs title
/docs/organizing/areas/ Areas
docs
/docs/organizing/
docs title
/docs/organizing/labels/ Labels
docs title
/docs/organizing/categories/ Categories
docs title
/docs/configuration/templating/#areas Using areas in template

An area in Home Assistant is a logical grouping of {% term devices %} and {% term entities %} that are meant to match areas (or rooms) in the physical world of your home.

For example, the "Living room" area groups devices and entities in your living room. Areas allow you to target an entire group of devices with an action. For example, turning off all the lights in the living room. Areas can be assigned to floors. Areas can also be used to automatically generate cards, such as the Area card.

Creating an area

Follow these steps to create a new area from the Areas view.

  1. Go to {% my areas title="Settings > Areas, labels & zones" %} and select Create area.

  2. In the dialog, enter the area details:

    • Give the area a Name (required).
    • Add an icon (We use Material icons).
    • Assign the area to a floor.
      • If you have not created floors yet, you can create a new one.
      • The number can be negative. For example for underground floors.
      • This number can later be used for sorting.
    • Add an image representing that area.
    • Add an Alias.
      • Aliases are alternative names used in voice assistants to refer to an area, entity, or floor.

    Create area dialog

  3. Select Add.

    Result: A new area is created.

Assigning areas to floors and add labels

If an area has not yet been assigned to a floor, it is shown in the Unassigned areas section. Follow these steps to assign an area to a floor.

  1. Go to {% my areas title="Settings > Areas, labels & zones" %} and select Create area.
  2. On the area card, select the edit {% icon "mdi:edit" %} button.
  3. In the dialog, select the floor and add labels, if you like.

Assigning an area to multiple items

You can assign an area to multiple items at once in the automation, scene, script, and device pages.

  1. Depending on what you want to assign, go to one of the following pages:

    • For automations, scripts, or scenes {% my automations title="Settings > Automations & Scenes" %} and open the respective tab.
    • For devices, go to {% my devices title="Settings > Devices & services > Devices" %}.
  2. In the list, select all the items you want to assign to an area.

    Screenshot showing how to assign multiple devices to an area

  3. In the top right corner, select Move to area and select the target area from the list.

Editing an area

Follow these steps to edit an area.

  1. Go to {% my areas title="Settings > Areas, labels & zones" %} and on the area card, select the edit {% icon "mdi:edit" %} button.
  2. In the dialog, adjust the area details you want to change:
    • Edit the area Name.
    • Add an icon (We use Material icons).
    • Assign the area to a floor.
      • If you have not created floors yet, you can create a new one.
      • The number can be negative. For example for underground floors.
      • This number can later be used for sorting.
    • Add an image representing that area.
    • Add an Alias.
      • Aliases are alternative names used in voice assistants to refer to an area, entity, or floor.

Deleting an area

Follow these steps to delete an area. It will be removed from all the floors it was assigned to. All the devices that were assigned to this area will become unassigned. If you used this area in automations or script as targets, or with voice assistant, these will no longer work.

  1. Go to {% my areas title="Settings > Areas, labels & zones" %} and select the area card.

  2. In the top right corner, select the three dot menu. Then, select Delete.

    Delete area

  3. If you used this area in automations or script as targets, or with voice assistant, they will no longer work.

    • You can adjust or delete the related scripts or automations.
  4. If you still had devices in that area, they are no longer assigned to any room.

    • If you have moved the devices, you can now reassign them to a new area.