Tile group
custom:tile-group-card-pro puts several tiles on one card, under a header with a title, an icon and badges. Use it for a room or any set of entities that belong together.
Tiles and header
tiles lists the tiles, one under the other. Each one is an entity id or a tile of its own. title and icon head the card, and badges sit at the end of the title line, plain and small; they take the badge keys. title_tap_action makes the title a button, for example to open the room's dashboard.
Tiles of their own
A tile in the list takes the tile card's keys without type, grid_options, vertical and indent: its kind, visual, controls, status and badges. The group sets nothing on its tiles but their layout, so a tile keeps its kind, its look and its controls in a group. To share a setting, write it on each tile; a YAML anchor writes it once (visual: &day { … }, then visual: *day).
Below the line
What a tile draws below its line (a bar, a plot, a slider, buttons) runs under the icon. In a list, indent: true starts it at the name instead, so the icons keep one column and everything else lines up in the next; a name and a bar then take a single row.
To show the value at the end of the line, as a list of bars often does, leave it off the line (show_value: false) and give the tile a plain badge without an icon: a badge without entity shows the tile's own value. size makes it larger; see Badges.
Row
layout: row draws vertical tiles side by side: the icon on top, the name and the line under it, the controls below. The tiles share the width in equal columns and wrap onto a new line when the card is too narrow.
Tiles that do not fit
overflow says what a row does when its tiles do not fit on a line. wrap, the default, puts them on the next line. shrink keeps them on one line and makes them narrower than they need: names and values are cut with "…", and a tile drops controls that no longer fit (more-info still has them). scroll keeps them on one line at their width and lets you swipe through them; the row snaps to a tile and fades on the side where more tiles are.
Where the tiles sit
By default a row's tiles share its width (align: stretch). start, center, end and space-between keep every tile at the width the widest one needs and put them at the start, in the middle, at the end, or spread out, so three tiles on a wide card stay tiles. A row that scrolls starts at the start once its tiles no longer fit.
Even lines
columns is the most tiles on a line, so five tiles make a line of three and one of two rather than four and one. A narrower card still wraps them earlier. It works with overflow: wrap only.
Without padding
padding: false puts the tiles flush with the card and each other: no space around or between them, square, without borders of their own. Their glows and pictures meet, and the card's rounded corners round what reaches them. It works with every layout.
Table
layout: table draws each tile as one line: the name at the start, the value at the end with its status, and after them one thing: a control or a visual. A row has no icon, no secondary and no badges.
The control is the tile's own (a light's switch, a thermostat's stepper, the blinds' buttons) or the one it names. Where a tile would use its icon as the control (a switch, a lock), the row draws a switch or a hold in its place. The visual is a badge's: bar, sparkline or trend. A row with a visual draws no control.
In a taller card
In a card taller than its tiles (a fixed row count, a taller card beside it), vertical_align puts the tiles at the top (the default), the center or the bottom, or stretches them to share the height: every line grows alike and each tile centres its content, unless its own vertical_align says otherwise. The title stays on top.
Visibility
A tile's visibility shows it only while its conditions hold; the other tiles close up. When every tile is hidden and the header is empty, the card takes no room.
Recipes
Who is home
People in a row: their picture as the icon, the zone they are in on its badge, and Home or Away under the name.
Scenes
A row of scenes, each run by a tap on its tile. show_value: false leaves out the scene's state, which says nothing useful.
Washing machine
A table of one appliance: rules turn the status sensor into words, the power gets a sparkline.
The visual editor
Home Assistant's card editor has the group's header, layout and badges, then a tab per tile, edited in the tile card's own form. + adds a tile; the buttons over a tile move, duplicate or delete it. Try it in the Playground, or with Edit under any example.
Reference
Card options
| Key | Default | Description |
|---|---|---|
tiles | – | Required. Entity ids or tiles: the tile card's keys without type, grid_options, vertical and indent, plus visibility. |
layout | list | list: one under the other. row: vertical tiles side by side, wrapping when narrow unless overflow says otherwise. table: one line each. |
vertical_align | top | Where the tiles sit in a taller card: top, center or bottom, or stretch to share its height; the title stays on top. |
overflow | wrap | A row's tiles that do not fit: wrap onto the next line, shrink on one line, or scroll on one line. Row only. |
align | stretch | Where a row's tiles sit: stretch (they share the width), start, center, end or space-between. Row only. |
columns | – | The most tiles on a line of a row, 1 to 12; with overflow: wrap. Row only. |
padding | true | false: the tiles flush with the card and each other, square, without borders. |
indent | false | true: what is below a tile's line (a visual, a slider, buttons) starts at its name, beside the icon, not under it. List only. |
title | – | The header's text. Template allowed. |
icon | – | The header's icon. Template allowed. |
title_tap_action | none | What a tap on the title or its icon does; see Actions & hover. |
badges | – | Badges at the end of the title line, plain and small unless they set style or size; see Badge keys. |
Any other key on the card is an error: settings go on each tile. overflow, align and columns on a list or a table are errors too, and so is indent on a row or a table.
Table rows
A row in a table takes a tile's keys except icon, secondary, badges and status_badge. Its visual is a badge's: bar (the value from min to max), sparkline or trend, as a name or { type, hours }. A row draws either a control or a visual, not both.
Grid and Home Assistant options
The card sizes its height to its content (rows: auto). A list and a table take 6 columns, a row 12; none goes below 6. See Sizing in sections.
The card also takes Home Assistant's grid_options, visibility, view_layout, card_mod and uix, plus fill_height (false keeps the card's own height). The card's visibility hides the whole card; a tile's hides that tile. A tile takes its own card_mod and uix too, styling that tile.