Does giving a device a friendly name (when pairing) also make the entity names friendly?

I (believe) that when pairing all my zigbee devices, I did the same thing.

Paired the device, and on the add device screen, immediately gave it a friendly name.

But looking at my entity list, I seem to have a real mix of entity names, some of which have adopted the devices friendly name, and some that are just auto-generated, and I’m not sure why.

In some cases, some of the entities have a friendly name, and some are autogenerated… for the same device ?

Such as:

And some are fully ok, with friendly entity names, such as:

And some where the entities have no friendly names at all:

Interestingly, it appears to be the Aqara devices that are mostly in this last category

When you rename a device, there is an option to update the entity_id. Make sure you click Yes. All entities with a common underlying name will be changed to your device name.

e.g.

Device Foo - LQI - sensor.device_foo_lqi
Device Foo - Battery - sensor.device_foo_battery

when renaming Device Foo to Living Room and you answer yes to the entity_id question, the result will be:

Living Room - LQI - sensor.living_room_lqi
Living Room - Battery - sensor.living_room_battery

This will not occur on any sub entity that doesn’t contain the common underlying device name.

1 Like

@petro

I think this might explain my issue, and that I must have previously renamed devices rather than just renamed them as part of the pairing process.

So given the above final screenshot, to avoid renaming every individual entity, could I rename the device friendly to (say) lumi_motion_ac02

Then rename it again from there ? Given that at that point the device friendly name is ‘in’ the entity name, will they all rename correctly ?

(I appreciate this doesn’t rename entities in automations etc)…

I’m not sure if you can get it to work again, there may be some underlying flag that keeps them in sync. You can try to rename the device to Lumi Lumi Motion AC02 without renaming the entity_id’s, then rename the device after and click yes to the entity_id question.

I’ll give it a go now and report back.

1 Like

It worked using the process I described above.

image