Area¶
The Area tool displays the Home Assistant area associated with an entity. It is useful when the card should identify where a device or sensor belongs without repeating that text manually.
This page shows how to add an Area item, choose its position and text appearance, keep long area names readable, and optionally color the text from the entity value.
Show the area¶
Use the Area tool when the card should display the Home Assistant area associated with an entity.
The card uses the entity's Home Assistant area unless you override it for this card.
Use another area name¶
Override the area text when the automatic Home Assistant area name is not the wording you want on this card.
Position and style the area¶
Position and style the Area text so it fits the visual hierarchy of the card.
Shorten a long area name¶
Use ellipsis when a long area name would collide with nearby content or exceed the space available.
max_characters is an alternative field with the same effect. If both fields are set, max_characters is used.
Change color with the entity¶
Use color_stops when the area text should change color with the selected entity. See Color stops.
Configuration options¶
Required applies to the specific form described by that table: Yes means you need the field for that form; No means you can leave it out. Not set means the card adds no explicit value when the option is omitted.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
entity_index | entity index | No | 0 | Chooses the entity whose area is shown; when omitted, the first configured entity is used. |
xpos, ypos | number | No | 0 | Position of the area text; omitted coordinates place it at the top-left reference position. |
max_characters | number | No | Not set | Maximum displayed character count. If both truncation fields are set, this value takes precedence. |
ellipsis | number | No | Not set | Alternative character limit that shortens a long area name with .... |
styles | mapping | No | Default area text style | Text appearance and alignment. |
color_stops | mapping | No | Not set | Changes color from entity value/state. |