Entity ID's all wrong after an internet outage?

Hi - a ESPhome device seems to have lost internet access then re-established it and has apparently reinstalled itself! I can see the new entity names and ‘visit’ the device via it’s own webpage. However all the dashboard entries now report missing entity names?

What is the best way to set this right ? Also how would I stop it reoccurring?

Short answer: rename all your names and entity ids manually.

Long answer: HA 2025.5 ESPHome device names now on frontend

Thanks - that’s very helpful. I had thought it was an error I had made but reading through your linked threads I can see that it isn’t
It’s disappointing as this is the first time HA has behaved this way in my short experience and it wasn’t signposted at all.

Fun times…