Script icons

Can we have the ability to use icons with script, just as it works - for example - with input_boolean?

I would really like to change that dull script icon to something more meaningful:

Have you tried customizing : https://home-assistant.io/getting-started/customizing-devices/ ?

1 Like

You’re right, of course! That worked perfectly:

Thanks and please close this request.

Reviving a very old thread here, but can you paste the code you put in customize.yaml? I’m having trouble figuring out what to use.

My scripts.yaml:

'1535688400424':
  alias: Disarm Alarm
  sequence:
  - alias: ''
    data:
      entity_id: alarm_control_panel.ha_alarm
    service: alarm_control_panel.alarm_disarm
'1535688497607':
  alias: Alarm - Arm_Home
  sequence:
  - data:
      entity_id: alarm_control_panel.ha_alarm
    service: alarm_control_panel.alarm_arm_home

My Customize.yaml:

script.Disarm_Alarm:
  icon: access-point

This does not change the script icon as expected.

Try
icon: mdi:access-point

Nope, that didn’t do it.

Do I have the correct syntax for the script?

script.Disarm_Alarm:

That’s my script alias in scripts.yaml

Does the script work? Any errors in the log?

script.Disarm_Alarm:
  icon: mdi:access-point

should work. Note the “mdi:” that @Tomahawk mentioned. Maybe try adding

  friendly_name: Renamed Script Disarm

and check if the script is being renamed.

Not sure if your scripts.yaml is correct, indentation looks a bit broken. Make sure the script is working, first. Is it listed under “States” in “Developer Tools” section?

Try lover case for script.disarm_alarm:

The script does work.

Here is the listing under “states”

So I tried this code in customize.yaml

script.1535688400424:
  icon: mdi:access-point
  friendly_name: Renamed Script Disarm

That didn’t work. I also tried:

script.disarm_alarm:
  icon: mdi:access-point
  friendly_name: Renamed Script Disarm

That didn’t work either

I do have this in my customize.yaml and it works. So the customizing works.

switch.wemo_mini:
  friendly_name: Wall Tablet Charger

I do think it was working before for me but now it seems broken. All my scripts show up with the default icon.

The entity_id is script.1535688400424, not script.disarm_alarm (or `script.Disarm_Alarm), which is the one to use. However as explained in the docs:

New customize information will be applied the next time the state of the entity gets updated.

Run the script, and the icon should change.