Card Select - dckiller51/astrion-custom-dashboard GitHub Wiki

📋 Select Card (select)

Pick an option of an input_select.* or select.* entity: a video output, a scene mode, a sound profile… Adapted from Home Assistant's Mushroom select card.

Choosing the input of a media player (HDMI 1, TV, Spotify…)? That's the Source select card: a media player keeps its sources in another place, so this card can't read them.

📸 Preview

✨ Features & Possibilities

  • An icon in a coloured circle, the name, the current option, and a menu listing every option of the entity.
  • Picking an option calls input_select.select_option or select.select_option, whichever fits the entity. Picking the current one does nothing.
  • The list is read live from the entity: add an option in Home Assistant and it appears on the remote.
  • Four layouts:
    • default: icon + name/state, the menu full-width below (Mushroom's look);
    • horizontal: everything on one row, the menu on the right;
    • vertical: icon, name, state and menu centred and stacked, for a narrow column of a Row;
    • dropdown (since 1.2.9): just the menu, full width, no icon or name. Compact, for a list of choices.
  • Text size of the current option and of the menu (since 1.2.9).
  • Icon colour of your choice. The rest follows your dashboard theme (since 1.2.9).

⚙️ Options Reference

Parameter Type Default Description
type string — select
entity_id string — An input_select.* or select.* entity. Required.
name string friendly name Name shown on the card.
layout string default default, horizontal, vertical or dropdown.
font_size number 13 (16 for dropdown) Text size of the current option and the menu, in sp (10 to 32).
icon_color string theme Icon colour, e.g. #6EA8FE. Its background circle uses the same colour, faded. Not used by dropdown.

📄 JSON Configuration Example

[
  { "type": "select", "options": { "entity_id": "input_select.living_room_output",
                                   "name": "Video output", "icon_color": "#6EA8FE" } },
  { "type": "select", "options": { "entity_id": "select.soundbar_sound_mode",
                                   "name": "Sound", "layout": "horizontal", "icon_color": "#FFB74D" } },
  { "type": "select", "options": { "entity_id": "input_select.scene_mode",
                                   "layout": "dropdown", "font_size": 20 } }
]

💡 An input_select plus a select card is the easy way to let the remote drive a choice your automations act on, e.g. the "room picker" in Several remotes.

See also: Card Source select · Builder