Names on Cameras change cameras by themselves

I have 4 security cameras, local radar and weather on my home view.

I have names on them but for some reason lovelace/HA moves the names on the cameras.

In other words the back door camera might be renamed the shed camera and so on. Firstly I thought I must have made a mistake but now I have corrected it many times.
I use the visual editor to change/correct the names when I see them in error.

I originally defined the cameras in the configuration.yaml but later moved to Lovelace.
In the configuration.yaml the cameras had IP addresses and I used the HIKVision integration to set the HIKVision ones up

  - platform: generic
    still_image_url: "http://UN:[email protected]/ISAPI/Streaming/channels/101/picture"
    stream_source: "rtsp://UN:[email protected]:554/streaming/channels/102"
  - platform: generic
    still_image_url: "http://UN:[email protected]/ISAPI/Streaming/channels/101/picture"
    stream_source: "rtsp://UN:[email protected]:554/streaming/channels/102"
  - platform: generic
    still_image_url: "http://UN:[email protected]/ISAPI/Streaming/channels/101/picture"
    stream_source: "rtsp://UN:[email protected]:554/streaming/channels/102"
# foscam
  - platform: foscam
    ip: 192.168.0.248
    username: myusername
    password: mypassword
    port: 2089

This is the RAW config.

 cards:
      - aspect_ratio: 70%
        entity: camera.generic_camera_3
        name: Back Door Camera
        show_state: false
        type: picture-entity
      - aspect_ratio: 70%
        entity: camera.generic_camera
        name: Front Door Camera
        show_state: false
        type: picture-entity
      - aspect_ratio: 70%
        entity: camera.foscam_camera
        name: Front Side Camera
        show_state: false
        type: picture-entity
      - aspect_ratio: 70%
        entity: camera.generic_camera_2
        name: Shed Camera
        show_state: false
        type: picture-entity
      - aspect_ratio: 119%
        camera_view: live
        entity: camera.bom_cairns
        name: BOM Saddle Mountain
        show_state: false
        type: picture-entity
      - entity: weather.home_ballina
        name: 'Forecast for #21'
        type: weather-forecast
    icon: 'mdi:home'
    path: default_view
    title: Home

Anyone have any idea what’s happening and how to fix it?

You cannot count on configs to load in the sequence they are written

The generic camera allows you to define a name

  - platform: generic
    still_image_url: "http://UN:[email protected]/ISAPI/Streaming/channels/101/picture"
    stream_source: "rtsp://UN:[email protected]:554/streaming/channels/102"
    name: Camera 1

That should then create camera.camera_1 with the friendly name Camera 1

Thank you.
I have made the changes in the configuration.yaml.
I mistakenly thought that once I had moved over to lovelace it could handle things with the visual editor but it seems not.

Hopefully all will be good now.
Thanks again!