Automatically change the entities friendly name by changing the device name

Some device like xiaomi temperature sensor, expose much entities. Temp, Hum and Bat…

Can we just add a functionnal skill who change all entities friendly name when changing device name ?
Maybe based on the device class, or with id, or area ?

If i change temperature sensor for “window” maybe all entities friendly name can be changed for:
“window temperature sensor”
“window humidity sensor”
“window battery sensor”…
Or “window bathroom temperature”,…

The UI already does this when you change a device name

:flushed: Change device name, don’t change entities friendly name…

Oh ok you talk about ID… I talk about friendly name.