I am working on a ESPHome project, and using substitutions to name the entities in HA to match the project. I plan on having 3 of the same modules, so mapping entity_id to a board is important.
This is what I have at the top:
substitutions:
project: Gallery Door Controller
id: gallery-door-controller
id_name: gallery_door_controller
It’s the name that gets used as entity_id in HA - converted to lower case and spaces replaced with underscore. The IDs are used only within ESPHome and are not translated to Home Assistant’s Entity ID.
That was not what was suggested: you can leave the device in esphome but you need to remove it from the integrations page in HA and have HA detect it as a new device. Because you didn’t delete it in HA, the old names are kept.