Show the yaml of one of your ESPhome devices( remembering to hide anything sensitive). None of my esphome devices use ESP as part of the unique id.
Are you not able to adjust throught settings/devices&services/entities not change the unique ID through the cogwheel?
i am only using esphome, not jhom assistant so i need to change things in the code
the only way i can change the unique id is to change the name of the sensor
the mqtt name will then be for example ESPselectgong_status
The ESP part is added by esphome by default
discovery_unique_id_generator (Optional, string): The unique_id generator to use. Can be one of legacy or mac. Defaults to legacy, which generates unique_id in format ESP<component_type><default_object_id>. mac generator uses format <mac_address>-<component_type>-<fnv1_hash(friendly_name)>.
when i set this to mac i get this
the last part is not using the friendly name so also unusable because it is not recognizable
unique_id: 8856a66d1d50-button-ab637aab
i was looking for an mqtt optio so i could add or change the prefix to make it unique