Use Button for Input select options

Hi
how can i use a button to switch an input select option?
Lets say the input select have the options:

  • Automatic
    -On
    -Off

i would like to have a button for every option.
Thanks, take care
Sascha

Are you asking about a physical button, a dashboard button, or a Input button entity?

oh yes sorry
a dashboard button would be nice

The configuration for a basic Button card would be something like:

show_name: true
show_icon: true
type: button
tap_action:
  action: call-service
  service: input_select.select_option
  target:
    entity_id:
      - input_select.example
  data:
    option: 'On'
icon: mdi:power-on

You assign each button a input_select.select_option tap (or hold if you prefer) action.

4 Likes

Thank you very much.
Works like a charme.
Regards
Sascha