My entities changes around between restarts

I have two roborock S5’s and they are working fine. One on ground floor and on on first floor of my house.

entity IDs are:
vacuum.xiaomi_vacuum_cleaner
vacuum.xiaomi_vacuum_cleaner_2

BUT now i have this problem:

After updating to core-2021.4.6 they are changed around so that the one with the _2 is now downstairs and the other one is upstairs. This screws up all my automations, buttons etc.

I have seen this problem a while back (i had other problems and reinstalled) but i never found a reason for the problem.

Further i have seen similar behavior with a number of cameras that keept changeing around after every other reboot. So im not sure what causes this type of problem.

I see other topics where and “_2” or “_2_3” shows up after an entity ID after restart - this is not my probelm - mine just get swapped.

questions one:
how to fix

qutstion two:
how to prevent :wink:

(running latest versions of supervisor and core on a rpi4)

any input is appreciated.

/

Assign your robot vacuum cleaners static IP addresses or reserve them IP addresses in the DHCP server in your router.

Hi tom,

thanks for your input, I appreciate it.

I have checked and the IP’s have not changed (same in router as well as in my configuration.yaml)

vacuum:

  • platform: xiaomi_miio
    host: 192.168.0.19
    token: !secret vacuum_token
  • platform: xiaomi_miio
    host: 192.168.0.20
    token: !secret vacuum_token2

(sry for the missing format)
/peter

Hi all,

a little status on my entity-name-swapping-problems.

I updated to core-2021.5.0 and nothing changed. Then i deleted the integration (Xiaomi Vacuum cleaner, Xiaomi Miio) and reinstalled it, still nothing.

After deleting and reinstalling the integration 3 times my entities was swapped around the right way and everything was back to normal.

I still have no idea what causes this behavior or how to fix it. I think it is a bug, but I don’t know how to report it.

br Peter