Is there a way to create a group of buttons of which only one can be active (selector, etc)

I can create a button that changes based upon a condition, but I’m trying to figure out how to create a group of buttons that act like a radio button input on a form.

If I press A, it lights up, if I press B, A turns off and B lights up…and so on, all to control selection of items in an input_select.

Never mind. I figured it out.

If you have an input_select entity defined, you can use a button to call a tap_action using the input_select.select_option service, targeting the appropriate entity to change. Here’s my yaml:

- type: custom:button-card
    entity: input_select.season
    name: Winter
    color_type: card
    color: rgba(0,0,0,0%)
    show_state: true
    tap_action:
      action: call-service
      service: input_select.select_option
      target:
        entity_id:
          - input_select.season
      data:
        option: Winter
    state:
      - value: Winter
        color: green
  - type: custom:button-card
    entity: input_select.season
    name: Summer
    color_type: card
    color: rgba(0,0,0,0%)
    show_state: true
    tap_action:
      action: call-service
      service: input_select.select_option
      target:
        entity_id:
          - input_select.season
      data:
        option: Summer
    state:
      - value: Summer
        color: green
  - type: custom:button-card
    entity: input_select.season
    name: Fall
    color_type: card
    color: rgba(0,0,0,0%)
    show_state: true
    tap_action:
      action: call-service
      service: input_select.select_option
      target:
        entity_id:
          - input_select.season
      data:
        option: Fall
    state:
      - value: Fall
        color: green
  - type: custom:button-card
    entity: input_select.season
    name: Spring
    color_type: card
    color: rgba(0,0,0,0%)
    show_state: true
    tap_action:
      action: call-service
      service: input_select.select_option
      target:
        entity_id:
          - input_select.season
      data:
        option: Spring
    state:
      - value: Spring
        color: green

This uses button card in HACS.