Device with ~150 sensors (entities): many entity IDs reset to default after device reboot. Have to rename them every time

I have a ESP32 controlling an addressable led strip as well as humidity/temperature sensors and pwm fans. Each del has it’s own segment, so an entity for each. That makes a total of about 150 HA entities for that device.

When I reboot the ESP32, the IDs of all sensors as well as the last 20 to 50 led strip segments get reseted to defaults, so I have to rename them back after every reboot. Is there a way to prevent this?

What “defaults”? Do you mean that you renamed your sensors in HA? If so this is possibly not an ESPHome question.

Sounds a lot for 3 components, maybe something could be done within esphome to moderate that.

Yeah I wasn’t sure if it was more of the ESPHome or HA problem.
Defaults is the ID Home Assistant gives to an entity when it discovers it. For instance, HA gives entity ID “light.esp32_no7_pixel_led_001” to this entity:

  - platform: partition
    name: "Pixel LED: 001"
    id: this_is_the_custom_id_i_want_in_ha_for_pixel_led_001
    icon: "mdi:led-outline"
    segments:
      - id: my_main_strip
        from: 0
        to: 1

I then rename light.esp32_no7_pixel_led_001 to light.this_is_the_custom_id_i_want_in_ha_for_pixel_led_001 in HA to get things organized.

When the devices reboots, I often lose many of those custom entity id’s (this_is_the_custom_id_i_want_in_ha_for_pixel_led_001 in this example) and they get renamed back to defaults (esp32_no7_pixel_led_001 in this example)
I have many of those partitions and it’s never the first one that gets renamed. Always the last few, to the last few dozens, as well as a few sensors such as fan speed, temperature and humidity sensors…

The id is internal to the ESPHome device, it has no influence on Home Assistant. The entity id is generated from the name, not the id.

Yes, that was a last resort test to see if HA would pick them.

So I’m guessing my issue is more of a HA problem, not sure if I should report it as a bug in HA’s github or in the forums…?