How to add entity id for light so that I could change its name by clicking Settings Icon?

Hi all,

I would like to add entity id for my light component (light_2 in this case) in HA home page, as per screenshot below:
Capture

However, the light_2 dont have Settings icon to click for changing its display name directly.
2

But sensor component do have this Settings icon for changing its display name directly.

So, what could I do to add this Settings icon for my light component?

Thanks.

If the settings is not available you can use customize for this

Noted on this method.

But, I want to add that Settings icon into light component.

Is there any ways to do that?

Thanks.

no you can’t manually add the icon.
If the icon is not available you can manually change an entity’s attributes (icon, friendly name, device_class, etc) in the customize section

1 Like

Noted and thanks!

Just curious, in 0.65 version, Home Assistant do have this option to change naming entities, as mentioned in Naming Entities section of https://www.home-assistant.io/blog/2018/03/09/release-65/

How do they implement this that time?

Thanks.

By using the gear icon. But not all entities have it for some reason and if it’s not there you can’t add it but you can always use the customize feature

1 Like

Noted and thanks.

That icon is only available for platforms that have an unique ID

3 Likes

Noted.

So, this unique ID can be created via following configuration.yaml? Which means that I create the unique ID myself.

light:
- platform: mqtt
  name: 'light_1'
  id: 'light_1'

Thanks.

Tested, following code is working, which allows change its name by clicking Settings Icon.

light:
- platform: mqtt
  name: 'light_1'
  unique_id: 'light_1'

Screenshot:

2 Likes

Bad news!

This settings icon is no longer supported in 0.91.2.

Means that Changing the entity_id feature no longer working now.

So how to fix this now?

@lolouk44 @ludeeus

As previously explained