Friendly name reaffect

Hi,

My question should be quite simple :
I have several temperature sensors outside. I use one for most of my application (node red, dashboard, …)
To use it easily I’ve associated a friendly name “External Temperature”.

If I remove the sensor and re affect this friendly name to another sensor, it breaks all the dashboard, nodered etc…
Is there a way to avoid that ?
I guess it has to be done another way.

if you can point me in the right direction !

Thanks

You probably need to change the entity name of the new sensor to match whatever the entity name of the previous “External Temperature” sensor was (make sure to change the old sensor’s entity name to something else too). The friendly name shouldn’t matter for dashboards, Node Red, etc.

Ok. So I have to use the Entity ID.
I think I can modify it to trick Home Assistant.
But it won’t be easy if I still have the old entity working and I just want to use another one.