Identify two ceiling light switches of diffrent rooms having same friendly names

I have two mqtt switches having same friendly names(friendly_name: “Center Ceiling Light”), but one of them is for bedroom and another is for kitchen.
While I’m adding some automation for kitchen ceiling light below :–
action:

  • data:
    entity_id: switch.center_ceiling_light
    service: switch.turn_on
    I found two lights entites as center_ceiling_light and center_ceiling_light_1. Which is so confusing for me if I’ll continue to add more and more entites with same friendly names.
    I tried to assign the entity_id in configuration file, but it’s raising configuration error. What can I do please suggest.
    Thanks