Entity Sections Card Pro
Deprecated
The entity sections card is deprecated: it still works in 3.0 and goes in 4.0. Use a layout card of a heading and tile groups; Moving to 3.0 shows how.
custom:entity-sections-card-pro stacks several groups of entities under one header. Each section is an entity group body with its own layout, so one card can hold a hero over a row of controls, or a table over a grid.
Basic
A list of sections, each with its entities. Without a layout a section is a list.
Layout per section
layout takes the same values as the group card (list, grid, hero, row, column, table). Here the sensors become a row and the controls stay a list; title and icon add the header.
Divider and alignment
divider: true draws a line above a section. align and columns work per section like on the group card.
Item options
show_name, show_value and show_icon set how row, column and table items look, name_position where a row item's name sits. Put them on the card for every section, on a section for its items, or on an entity; the closer setting wins.
Header entities
header_entities puts compact values on the right of the title line, as on the group card. Row, column and table sections draw icon, ring and badge only; see Visuals in items and headers.
Rooms and devices
A device card: a table of facts and a footer with status icons and actions.
Sections can mix any of the layouts, a hero on top of a row for example.
A bathroom: humidity as the hero with its trend, the window as a strip.
Devices and status
A security overview: presence as a row of badges, doors and windows as a table with icons.
Modes and scenes: two rows of icon buttons, one that toggles and one that runs scenes.
Hover
hover cascades as the actions do: on the card for every entity, on a section for its entities, on an entity for that one. It works as on the group card; see Hover.
Reference
Card options
| Option | Default | Description |
|---|---|---|
sections | List of sections (required). | |
title | Header text. Template allowed. | |
title_tap_action | none | Action when the title or its icon is tapped, e.g. { action: navigate, navigation_path: /dashboard-rooms/kitchen } to open the room's dashboard; see Actions. |
icon | Header icon. Template allowed. | |
header_entities | Entities shown as icon + value on the right of the title line. Defaults show_icon: true, show_value: true, show_name: false; badges, plain and small (Visuals in items and headers). | |
columns | 2 | Default for grid sections. |
vertical_align | top | top, center or bottom: where the sections sit in a card taller than its content; the title stays on top. See the group card. |
align | per layout | Default for every section, see the group card. |
show_name / show_value / show_icon | per layout | Default item options for every section. |
name_position | below | Default for every section: above or below the icon in row items; the other layouts ignore it. |
hours_to_show | 24 | History window for sparkline, columns and strip, at least 1. One window per card. |
bucket_minutes | 60 | Bucket size for columns and strip, at least 5. |
smoothing_minutes | Averaging bucket of sparkline in minutes, at least 5 (default: one point per 12 px of width). | |
tap_action / hold_action / double_tap_action | more-info / more-info / none | Defaults for every entity, see Actions. |
hover | false | Default for every section and entity, see Hover. |
Section options
| Option | Default | Description |
|---|---|---|
entities | Entity ids or entity objects (required). | |
layout | list | list, grid, hero, row, column or table. |
divider | false | Draws a line above the section (never for the first one). |
columns | card columns | Cells per row in a grid section. |
align | card align | Overrides the card value for this section. |
show_name / show_value / show_icon | card values | Item options for this section; entities can override them again. |
name_position | card value | Where a row item's name sits; entities can override it again. |
hover | card value | Default for the section's entities; entities can override it again. |
visibility | Drawn only while the conditions hold (and one entity is shown). |
Grid defaults
12 columns, rows: auto, at least 6 columns and 2 rows (3 when a section is a hero); see Sizing in sections. Given more height, the sparkline and columns plots share it; without them the sections stay at the top unless vertical_align says otherwise.
Home Assistant options
Like every card, this one also accepts grid_options, visibility, layout_options, view_layout, card_mod and uix, passed through to Home Assistant; see Sizing in sections. The card's own visibility hides the whole card; its entities, header entities and sections take their own, see Visibility. fill_height: false keeps the card at its own height beside a taller card; see Filling the height.