Select control¶
A select control shows a list of options directly inside the card and lets the user choose one. Use it for a room, sensor, operating mode, history period, chart type, or another named choice.
Connect it to a Home Assistant Select or Input select when the selected value is used elsewhere in Home Assistant. Use an Flexible Horseshoe Card input select for a choice that only changes Flexible Horseshoe Card cards in the current browser.
Basic configuration¶
This example lets the user choose a sparkline chart type:
The control displays the options supplied by the connected entity. An option_map is only needed when the visible label, icon, content, or action value should be different.
Entity and input settings
entity_index: 0 connects the control to the first entry in entities. The options, initial, and scope settings configure the Flexible Horseshoe Card input, not the Select control. See Flexible Horseshoe Card input select for all input settings and Entities for entity indexes and optional slots.
Configuration options¶
| Option | Description |
|---|---|
type: select | Adds a select control. |
entity_index | Select entity or Flexible Horseshoe Card input changed by the control. |
xpos, ypos | Position of the control in the card. |
width, height | Size available to all options together. |
orientation | Arranges the options horizontally or vertically. |
option_map | Changes the label, icon, content entity, or action value for individual options. |
content | Content arrangement repeated inside every option. |
show.item_viz | Shows complete option buttons with viz_button or an indicator with viz_line. |
show.item_style | Uses filled_round, filled_square, outlined_round, or outlined_square. |
tap_action | Optional action performed when an option is selected. |
label | Optional text positioned beside or above the select. |
visibility | Shows, hides, or disables the select. |
Change labels and icons¶
Use option_map when an option should have a clearer label or a recognizable icon:
The value is written to the connected entity. The text and icon determine what the user sees.
Show entity information in every option¶
Every option can display the same horizontal or vertical content arrangement. This example shows an icon, current value, and compact status line for each sensor:
Each entity_index supplies the icon, value, and status shown inside that option. Selecting an option still changes the select entity connected to the complete control.
Perform an action with the selected option¶
A select can pass the selected value to a Home Assistant action. This example changes an HVAC mode:
option(value) inserts the value from the selected option.