Multiple Xiaomi vacuum cleaners?

I have 2 xiaomi roborock vacum cleaners in my house. One of them is set up in HA and working without any problems.

Does anyone have multiple vacuums set up at the same time?
How did you modify the config file for this?

This is what i have:

vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.xx
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You should be able to just add another vacuum like this. I also suggest adding a name for the vacuums to distinguish them easily

vacuum:
  - platform: xiaomi_miio
    name: Vacuum top floor
    host: 192.168.1.154
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  - platform: xiaomi_miio
    name: Vacuum ground floor
    host: 192.168.1.155
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1 Like

Update:

Ok so i must admit i made a bit of an embarrassing mistake here. The log file was not updated so the token for the second vacuum was not available.
After a bit of tinkering i got the new token in for the second vacuum.
Now both are visible and available in HA =)

Thanks for the help!


Original:

I tried this now and the result was that the entities disappeared when adding the “name:”. I tried it with just the single vacuum as well with the same result.

Then i tried:

vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.xx
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  - platform: xiaomi_miio
    host: 192.168.1.xy
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

But this made the one ive already set up “unavailable”:

2 Likes

same issue