Change Area id

Is it possible to edit an Area id ?

I’ve seen that they’re stored in config/.storage/core.area_registry but I guess there are references to this id in lots of places. How can I safely edit an Area id?

5 Likes

Good question, change the name of an area, but the area_id continuos the same

Hi did you ever manage to resolve this? I’ve just raised this question in another post but have not had a response yet.

No, I haven’t found a solution yet. :frowning:

I modified core.area_registry and rebooted HA without any problems.

(Make a backup just in case.) The file is located at: /config/.storage/core.area_registry

2 Likes

Thanks!

After changing the area IDs in the core.area_registry file all my devices were without area. So I stopped Home Assistant and replaced all old area IDs (using the IDs from the backup) to new IDs in the file core.device_registry.

2 Likes

just go to Areas and reconfigure your floors with all your areas. see below how the core.floor_registry lookes like.

{
  "version": 1,
  "minor_version": 2,
  "key": "core.floor_registry",
  "data": {
    "floors": [
      {
        "aliases": [],
        "floor_id": "Ground Floor",
        "icon": null,
        "level": 0,
        "name": "Ground floor",
        "created_at": "2024-10-01T18:50:51.879558+00:00",
        "modified_at": "2025-01-14T15:33:59.115121+00:00"
      },
      {
        "aliases": [],
        "floor_id": "First Floor",
        "icon": null,
        "level": 1,
        "name": "first floor",
        "created_at": "2024-10-01T18:51:40.947088+00:00",
        "modified_at": "2025-01-14T15:33:46.547156+00:00"
      },
      {
        "aliases": [
          "Attick"
        ],
        "floor_id": "Attick",
        "icon": null,
        "level": 2,
        "name": "Attick",
        "created_at": "2024-10-01T18:55:46.008247+00:00",
        "modified_at": "2025-01-14T15:37:26.894322+00:00"
      },
      {
        "aliases": [],
        "floor_id": "outside",
        "icon": "mdi:pine-tree",
        "level": 0,
        "name": "Outside",
        "created_at": "2025-01-14T15:54:21.812692+00:00",
        "modified_at": "2025-01-14T15:54:21.812719+00:00"
      }
    ]
  }
}