Odd issue for me at least

I have an esp32-S3 with a ethernet board. has been working for many months with just a couple of gpios being used. Anyway it named the devices with the default name with part of the mac address. Not much of a big deal. I created a new yaml with a different name esp_2 for the friendly name and all. There were a number of switches and one wire temp sensors. The funny thing is that a couple of rht etemp sensors entity name is sensor. new sensor should be: sensor.esp_2_radiant_supply but it shows up in developer state as sensor.esphome_web_cdd5d8_radiant_supply. Shold I have removed that esp32 from the system first before changing the yaml so much? Some kind of artifact in th esystem?

Your message is a bit hard to follow.
I suggest redrafting it to see if you can make it clearer and sort out typos.

Posting some snippets of your configs might make it clearer too.

1 Like

What is the current name of device in HA?

If device name is “esp32 device”, its entity id and sensors, etc should follow

Light.esp32_device_light
binary_sensor. esp32_device_binary_sensor

I believe this is correct.

If you simply change name in esphome but not remove from HA, I would not expect HA to update entity id of device and keep naming new sensors based on entity id.

You should confirm the device name in device info and maybe in dev tools

Esphome device naming is kinda terrible.
Wish it was more in line with how zwavejsui works where you name device and give area and HA just updates it. Maybe a new component is needed? Cant even name yaml files. Esphome is great however so I’ll stay on topic.

Confirm your esp device name in HA.
Probably remove and readd to update.

Did you click on recreate entity IDs of sensors?

1 Like

So here is the yaml for that device:

here is the sensor that is the odd one out

Here is the yaml for that sensor

it is the only sensor from that device that is named that way the others are like this

The only thing I can think of is that the yaml for that specific sensor didn’t change from the original yaml and HA didn’t rename it. I agree that esphome has some quirks about nameing the devices. If that is all it is I can live with it just one of those head scratchers.

If this sensor existed originally when you added device I would expect that it would not change

This. You should just be able to update the ID in the HA UI