When renaming devices and entities - Cross reference table

I’m trying to understand how renaming of devices and entities works internally in HA?
A guess is that there is a cross reference table but where can I find it and it’s it safe to modify it myself?

There’s a lot of detail in the dev docs (but I’d recommend a strong beverage first :coffee: :man_mage:):

The entity naming standards have some info, but some of the older developer blog links seem to be broken now (like the dev blog post on MQTT ).

I think the advice for automations is to link to Entity not Device.

If this helps, :heart: this post!