Change entity_id using customize.yaml in stead of UI

Hi all,
I’m trying to customize my entity_id names (so not the friendly names) via the customize.yaml file.
Can this be done, or is there another way of avoiding the UI-method.
Thx,
PPee

Yes I it can. e.g.

homeassistant:
  customize:
    sensor.your_sensor:
      friendly_name: My Sensor

Hi Tom,
Thx for replying.
But this changes the friendly name. I want to change the entity_id.
Any ideas?
PPee

No you can’t use manual customization for that.

You can only change the entity id via the UI if the entity is discovered. If you wrote the entity config in yaml, then that is what you change.