Accidentely I removed one ESPHome device via the HA integration page from ESPHome and readded it after it was newly detected. So far so good.
Then I detected that all the entities of this device were renamed from e.g. binary_sensor.l2_bathroom01a_reed_01 to binary_sensor.l2bathroom01a_l2_bathroom01a_reed_01 . I do not know where the compressed prefix “l2bathroom01a” comes from. I only remember that I came across an option to prefix an entity with the device name in ESPHome. But as I did not change the firmware of the device nor HA it remains a puzzle to me.
I recompiled the firmware before removing the ESPHome device, but not change nor recompile the YAML between the remove/readd. I use the latest HA version and the latest docker image of ESPHome btw.
Has anyone an idea how it came or how I can undo this?
You can manually edit the names and entity_ids in Home Assistant. Be thankful it is only one device. This has affected people with thousands of names to change.