Customizing entity names and ids

I have a meross integration which every now and then I need to remove and add back.
When adding it back it comes back like this and I have to edit its name:
From this:

To this:

That also updates the entity_ids which I have used in many places:

My question is, can I somehow add anything to the customize.yaml to make this change automatically?
The name is always created the same but I am not seeing if anything other than Friendly Name that can be updated as per Customizing entities - Home Assistant

Is it possible or not?

Also I just rebooted HA and now I cannot change any of the names?
That functionality gone in the latest update?

Edit: looks like a bug not just me: Lost the ability to edit device names - option is greyed out - #13 by cloudbr34k