Renaming Entities from Configuration.yaml

Hi, i added some utility meters in configuration.yaml and tried to rename these after using them for a couple of weeks. But now i get the problem that they didn’t receive the new name but instead just the old with _2 at the end.
is there a way to rename these or delete these?
I am running HAOS in a Proxmox VM.

  • Installation method Home Assistant OS
  • Core 2025.5.3
  • Supervisor 2025.05.3
  • Operating System 15.2
  • Frontend 20250516.0
  • MariaDB Add-On for Database

configuration.yaml

input_number: !include_dir_merge_named custom/input_number
utility_meter: !include_dir_merge_named custom/utility_meter
sensor: !include_dir_merge_list custom/sensor
notify: !include_dir_merge_list custom/notify
switch: !include_dir_merge_list custom/switch

some of my utility meters:
i renamed these from um_d, um_h, um_m to um_strom_ (for power/plugs)

um_strom_h_ta01:
  unique_id: um_strom_h_ta01
  name: "UM - Strom - H - Ta01 - CS - PC - FREAK"
  source: sensor.ta01_cs_pc_freak_energy_total
  cycle: hourly
um_strom_d_ta01:
  unique_id: um_strom_d_ta01
  name: "UM - Strom - D - Ta01 - CS - PC - FREAK"
  source: sensor.ta01_cs_pc_freak_energy_total
  cycle: daily
um_strom_m_ta01:
  unique_id: um_strom_m_ta01
  name: "UM - Strom - M - Ta01 - CS - PC - FREAK"
  source: sensor.ta01_cs_pc_freak_energy_total
  cycle: monthly

um_strom_h_ta02:
  unique_id: um_strom_h_ta02
  name: "UM - Strom - H - Ta02 - CS - Gebläse - Kl. Wohnzimmer"
  source: sensor.ta02_cs_geblase_kl_wohnzimmer_energy_total
  cycle: hourly
um_strom_d_ta02:
  unique_id: um_strom_d_ta02
  name: "UM - Strom - D - Ta02 - CS - Gebläse - Kl. Wohnzimmer"
  source: sensor.ta02_cs_geblase_kl_wohnzimmer_energy_total
  cycle: daily
um_strom_m_ta02:
  unique_id: um_strom_m_ta02
  name: "UM - Strom - M - Ta02 - CS - Gebläse - Kl. Wohnzimmer"
  source: sensor.ta02_cs_geblase_kl_wohnzimmer_energy_total
  cycle: monthly


I just had a similar experience. It really left me scratching my head.

I changed the Entity ID’s for 4 Scripts and the changes seemed to take but the old entity ID’s continued to show up when referenced in a dashboard button. I ended up editing the /homeassistant/scripts.yaml file to erase the old Entity ID’s and replace them with the new Entity ID’s.

Not sure why the changes that I made were not propagated through the system automatically. But it’s ok now.