How to change the 'Execute' label for script entities?

As you can see in the following image:

To reset the cat litterbox count to zero, I execute a script, but I would like the label to say something different than ‘Execute’

(Something something about the wife acceptance factor :wink:)

you can do that using custom-ui and set any action-name for it

see: https://github.com/andrey-git/home-assistant-custom-ui/blob/5274c9b1e51d8a4ba409cbf510d286472d42c328/docs/features.md#action-name

1 Like

I just use buttons, plus they’re easier to tap on from the phone example:

image

and the lovelace config:

cards:
  - entity: script.upgrade_system
    tap_action:
      action: call-service
      service: script.turn_on
      service_data:
        entity_id: script.upgrade_system
    type: entity-button
  - entity: script.restart_system
    tap_action:
      action: call-service
      service: script.turn_on
      service_data:
        entity_id: script.restart_system
    type: entity-button
  - entity: input_boolean.refresh_counts
    tap_action:
      action: toggle
    type: entity-button
type: horizontal-stack

You could display it as a switch similar the ones around it by using can_cancel: true in customize section of configuration.yaml.

Problem with that is that you will see it flick to on momentarily and then straight away back off again.

Hahaha!! Executing cats seems fine to me…