Add input_select in details to a custom switch

Good morning, fellow Home Assistant. I am new to this system and little by little I am learning new things thanks to the documentation. I have searched for this question, but I have not been able to find it.

I have created a switch to control the light and a fan through the Tasmotized Sonoff Bridge, so far everything perfect.

The question would be, is it possible to add an input_select in switch details?

I would like to configure it to make it simpler, since the use of that input would be occasionally.

Here my configuration:

switch:
  - platform: mqtt
    name: "Luz Dormitorio"
    icon: hass:lightbulb
    state_topic: "cmnd/rf_sonoff/light/status"
    command_topic: "cmnd/rf_sonoff/backlog"
    payload_on: "rfraw XXXXXXXXXXXXXXXXXX; rfraw 0"
    payload_off: "rfraw XXXXXXXXXXXXXXXXXX; rfraw 0"
    state_on: "ON"
    state_off: "OFF"

input_select:
  brillo_dormitorio:
    name: "Brillo Luz Dormitorio"
    icon: hass:lightbulb-on
    options:
      - "Intensidad 1"
      - "Intensidad 2"
      - "Intensidad 3"
      - "Intensidad 4"
      - "Intensidad 5"
      - "Intensidad 6"
      - "Intensidad 7"
      - "Intensidad 8"

With an automation, when selecting the option, send the corresponding command

Where in the switch configuration do you want to use the input_select?

Well, I was weighing in the details tab next to the history, in the window that appears when the switch icon is pressed. Like when you press one when you have the option to change the brightness or as in my example, when you press the robot cleaner you have several options available.

I think it would be great to put content there for different options

You can make your own pop-up cards with browser-mod.

Great, I think it’s just what I was looking for. I’m going to play around with that a bit. Thank you very much for the help!!!