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:
However, the light_2 dont have Settings icon to click for changing its display name directly.
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.
lolouk44
(lolouk44)
March 12, 2019, 1:26pm
2
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.
lolouk44
(lolouk44)
March 13, 2019, 9:09am
4
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
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.
lolouk44
(lolouk44)
March 20, 2019, 5:50am
7
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
ludeeus
(Ludeeus)
March 20, 2019, 6:59am
9
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