Setting Entity Name for Image_Processing Entities

Is there any way to set an entity name for an image_processing entity? I have two entities using the same camera feed, resulting in “_2” being appended to the name. The problem is that Home Assistant occasionally alternates the entity to which the “_2” is assigned, making my automations unreliable.

I have looked and do not see a way to set a name. Any help would be appreciated.

Hello Island_Three,

Did you try this?

Yes, I cannot customize via the UI, as I get this message:

This entity ('image_processing.codeproject_ai_object_bcke_sub_2') does not have a unique ID, therefore its settings cannot be managed from the UI. See the [documentation](https://www.home-assistant.io/faq/unique_id) for more detail.

I have also tried modifying the config file to change the entity ID without success. Unhelpfully, the variables for image processing entities are not documented. Image processing - Home Assistant

Use YAML

I have tried adding “name” under source to my existing working config, but it returns an error:

- platform: codeproject_ai_object
  ip_address: ███████
  port: ██████
  timeout: 30
  save_file_folder: ████████████
  save_timestamped_file: True
  always_save_latest_file: True
  roi_x_min: 0.2
  roi_x_max: 1
  roi_y_max: 1
  show_boxes: False    
  targets:
    - target: person
      confidence: 80
  source:
    - entity_id: camera.door
    - name: door_camera

Customizing entities - changing friendly names.

The problem with that is that the sensor itself changes names on reboot.

To fully explain, I have two image processing (“IP”) sensors that are created in YAML, both using camera.door. The first IP sensor looks for humans, the second IP sensor looks for cats. Home assistant will name the IP sensor based off the camera, so I end up with two sensors named (simplifying) “image_processing.door” and “image_processing.door_2”.

The issue is that Home Assistant arbitrarily decides at startup, via assignment of “_2”, which of the two sensors is detecting cats and which is detecting humans, so even if I “customized” one of the entities, this wouldn’t help as the underlying entity I just customized arbitrarily changes.

I need some way to set the actual entity name in the YAML where I am creating the image_processing entity. It is baffling that there is (seemingly) no way to do this!