ok, so i have 2 x synologys running on my network, so created 2 x platforms
see code below
but if i restart my HA, the sensors sometimes switch names
so i have a sensor coming from synylogydsm like :
sensor.used_space_volume_1
and
sensor.used_space_volume_1_2
but they switch
so sometimes volume_1 is synology1 and volume_1_2 is synology 2
if i then restart its possible that:
volume_1 is synology2 and volume_1_2 is synology 1
also if i go to the states page, i cant rename those sensors
If the order that platforms load doesn’t follow the order they’re listed in the configuration, then the only way to fix this would be to give them unique IDs so they can be changed in the entity registry or add a name: option to the configuration to set your own name.
You can copy the code to a custom component and do that yourself if you know Python. Otherwise, I’d suggest opening an issue on GitHub for it. It might get closed as a “feature request”, but I could see it being accepted as a bug as well.