Select Menu Card
custom:lcards-select-menu
A grid of LCARS buttons, one per option of an input_select or select entity: tap one to select it. The selected option lights up, and the card follows the entity when something else changes it.
- Each option is a real button card underneath, so every button preset and the button's
stylekeys work here. - Without an entity, the card is a manual menu: list the buttons in
optionsand give each one its own action.
Try it
- The card editor has tabs for the config, the grid, the style, the options and the actions, with a live preview.
- The Playground lets you edit select menu YAML here in the docs and see the result.
| Page | Covers |
|---|---|
| Options and Actions | Which options show, their labels and icons, and what a tap does |
| Grid and Sizing | Columns, gaps and row height, and how the card sizes itself in a dashboard |
| Styles | Colours, text and borders for every option, the button template, rules |
| Playground | Edit YAML and see the select menu live |
Quick Start
Three menus to start from: an entity's options as they are, the same options with your own labels, and a manual menu of navigation buttons. Tap an option in the first two to select it.
grid.columnssets how many buttons sit side by side; the card adds rows for the rest.- Keys under
optionsmust match the entity's option values exactly, including case.
yaml
# The entity's options, one column
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: lozengeyaml
# Four columns with your own labels
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: capped
grid:
columns: 4
gap: 6px
options:
Auto:
label: AUTO
Cool:
label: CHILL
Heat:
label: WARM
"Off":
label: STANDBYyaml
# A manual menu: no entity, each option navigates
type: custom:lcards-select-menu
preset: lozenge
grid:
columns: 2
gap: 4px
options:
- value: bridge
label: BRIDGE
tap_action:
action: navigate
navigation_path: /lovelace/bridge
- value: engineering
label: ENGINEERING
tap_action:
action: navigate
navigation_path: /lovelace/engineeringLayouts and Presets
preset picks the button look for every option, and grid arranges them. A few layouts and presets against a sample input_select (tap an option to select it):
grid.columns: 2 (preset: lozenge)YAML
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: lozenge
grid:
columns: 2
gap: 6px
grid.columns: 4 (preset: capped)YAML
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: capped
grid:
columns: 4
gap: 4px
grid.columns: 1 (preset: bullet)YAML
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: bullet
grid:
columns: 1
gap: 4px
preset: outlineYAML
type: custom:lcards-select-menu
entity: input_select.demo_mode
preset: outline
grid:
columns: 2
gap: 6px
Real cards with sample entities. Tap an option to select it.
Card Options
The select menu's own top-level keys. Each block has its own page; this table links to it.
- The card also takes the keys every LCARdS card takes (
height,width,overflow,z_index,grid_options,id,tags,data_sources...): see Common card properties. - In a sections view the card asks for enough rows to show every option (Grid and Sizing).
yaml
type: custom:lcards-select-menu
entity: input_select.lcards_test_mode
preset: bullet
grid:
columns: 3
hold_action:
action: more-infoMore about the entity
- Domains:
input_select.*options are set withinput_select.select_option, andselect.*options withselect.select_option. - Loading: while the configured entity is not in Home Assistant, the card shows "Loading…" instead of buttons.
- No entity: the card cannot list options or show which one is selected, so it needs array-form
options, and a tap does nothing unless the option or the card sets atap_action.
| Key | Type | Default | Description |
|---|---|---|---|
type | string | required | custom:lcards-select-menu |
entity | string | - | The input_select or select entity whose options become buttons and whose state marks the selected one |
preset | string | - | The button preset every option button uses (lozenge, bullet, capped, outline, toggle-tab ...) |
grid | object | one column | How the buttons are arranged: see grid |
options | object / list | the entity's options | Labels, icons, styles and actions per option, and which options show: see options |
style | object | from the preset | Colours, text and borders for every option: see style |
button_template | object | - | Any other button card keys for every option: see button_template |
tap_action | object | select the option | Replaces the tap of every option: see Actions |
hold_action | object | action: none | Hold action for every option |
double_tap_action | object | action: none | Double-tap action for every option |