Badges toggling scenes

I am wondering if badges can be used to toggle a scene directly. I have some badges set up with scenes, but they require two clicks (once on the badge, then “Activate” on the next screen). I’d like to just tap the badge and switch to the scene. Thanks!

Edit: after playing around with the UI, I guess what I’m looking for is a single icon that will execute a script or scene without entering the second screen to activate or execute.

1 Like

If you put the badges in a picture elements card you can specify a tap action. Edit: no you can’t.

You could use a glance card: https://www.home-assistant.io/lovelace/glance/

That allows you to set a tap_action per entity.

This should be a feature.
It would be a great one.
An actual action when you click on an icon/badge.
Can you imagine that?

1 Like

AAAAges ago you posted this, I know, but you can do this.

Edit/add your badge in the ‘raw configuration editor’ and then add a tap action to any entity you make.

You can can then add a tap action as per Actions - Home Assistant

Code example:

badges:
  - entity: scene.movie
    tap_action:
      action: call-service
      service: scene.turn_on
      service_data:
        entity_id: scene.movie
3 Likes

Thanks for that!