Select list Card
Display the options of an input_select
entity as a clickable list card.
In other words: the content of the dropdown menu is displayed as a card.
The input_select.select_option
service is called after the user clicks (selects) an option.
Some use cases:
- Select with too many options to show in dropdown
- Options with long titles
- Have all options directly shown
- You dont’t want the extra click to open the dropdown menu
Using the card
Visual Editor
Select List Card supports Lovelace’s Visual Editor. Click the + button to add a card and search for select list.
Options
Name | Type | Default | Description |
---|---|---|---|
type | string | required | custom:select-list-card |
entity | string | required | An entity_id within the input_select domain. |
title | string | `` | Card header title |
icon | string | `` | Card header icon |
show_toggle | boolean | false |
Card header toggle |
truncate | boolean | true |
Truncate option text to fit 1 line |
scroll_to_selected | boolean | true |
Scroll the list to the position of the selected option |
max_options | number | 5 |
Number of options before a scrollbar appears, 0 = no scrollbar |
Installation
HACS
This card is available in HACS (Home Assistant Community Store).
Just search for Select list Card in Frontend tab.