How do I template list all input_select options?

I am writing a lovelace card that will spit out all of the lights per room with headers, but I cannot figure out what the code is to list each option in an input_select. I can see attributes here:

{{ states.input_select.room_selection }}

{{ state_attr('input_select.room_selection','options') }}

However most core dashboard cards do not support templates.

Which card are you using?

Thank you!

Here is the type of card I intend to use. This works already for the room I select to create bubble cards for lights. I intend to have a dashboard that shows all lights in all rooms.

type: custom:auto-entities
card:
  type: grid
  columns: 1
  square: false
card_param: cards
filter:
  template: >-
    {%- for s in states.climate|selectattr('entity_id', 'in',
    area_entities(states.input_select.room_selection.state)) -%}
      {{
        {
          'type': 'custom:mushroom-climate-card',
          'entity': s.entity_id,
          'show_temperature_control': 'true',
          'collapsible_controls': 'false',
        }
      }},
    {%- endfor %}
sort:
  method: state
  numeric: true
view_layout:
  position: sidebar
1 Like