Add confirmation to switch on entity card

In my configuration.yml, I have a Wake-on-LAN switch. To make it work in both ways, I’ve set a turn_off action to turn my computer off again:

switch:
  - platform: wake_on_lan
    mac: "11:22:33:44:55:66"
    host: "192.168.1.2"
    turn_off:
      service: mqtt.publish
      data:
        topic: "iotlink/workgroup/my_computer/commands/shutdown"

I am displaying this switch in an entity card. To prevent one from accidentally turning off the computer, I’d like to display a confirmation dialog.

Unfortunately it seems that Home Assistant Actions can’t be used for that, as tap_action for instance applies only for tapping the entity name.
There’s also no service to view a confirmation dialog by myself.

Is there a way to display a confirmation dialog when the switch is turned off?

You could use this custom card (can be applied to row entities):