Ui button-card tap indication

Hi, I’m using the custom button-card component for activating a scene with this code.

- type: "custom:button-card"
    tap_action:
      action: call-service
      service: scene.turn_on
      service_data: 
        entity_id: scene.normal
    show_entity_picture: true
    entity_picture: /local/custom_graphics/sun.png
    color: auto

The code above works fine,
but I would like to add an indication when the button is pressed.
For example: Changing the background color for 1 second and returning it back to the original color.
Any ideas how i could make it work?

I bookmarked this the other day intending to try it out, haven’t yet so I can’t vouch for it

1 Like

It works great! Thanks :smiley:

Your thanks should go to @romrider :slight_smile: Glad it helped, I’ll probably add it to some places myself at the weekend.