Name¶
A name shows the name of a Home Assistant entity anywhere on the card. Use it for a clear label beside a value, icon, graph, or control.
By default, Flexible Horseshoe Card uses the entity name from Home Assistant. You can provide your own name in the entity configuration.
Basic configuration¶
Add names under layout.names:
entity_index selects the entity whose name is displayed.
xpos and ypos position the name on the card.
Configuration options¶
| Field | Required | Description |
|---|---|---|
entity_index | Yes | Entity whose name is displayed |
xpos | Yes | Horizontal position on the card |
ypos | Yes | Vertical position on the card |
ellipsis | No | Maximum displayed name length |
styles | No | Text styling |
color_stops | No | Colors the name from the entity state |
Use a custom name¶
Set name on the entity when the card should display another name:
Position and alignment¶
Position the name with xpos and ypos:
Use text-anchor to control horizontal alignment:
start— text starts atxposmiddle— text is centered onxposend— text ends atxpos
See Positioning and sizing for the card coordinate system.
Text appearance¶
Use styles to change the appearance of the name:
Common styles include:
| Property | Use |
|---|---|
font-size | Text size |
font-weight | Text weight |
text-anchor | Horizontal alignment |
text-transform | Text capitalization |
fill | Text color |
opacity | Text opacity |
See Styling for the complete styling guide.
Shorten long names¶
Use ellipsis to limit the displayed name length:
Names longer than the configured length are shortened with an ellipsis.
Color from the entity¶
A name can change color based on the state of its entity:
Color stops are applied to the text.
See Color stops for ranges, gradients, palettes, and interpolation.