# Xiaomi Home - Get Room ID

**URL:** <https://community.homey.app/t/xiaomi-home-get-room-id/88986>\
**Category:** Questions & Help\
**Created:** [September 7, 2023, 6:06pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986 "2023-09-07T18:06:34Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 7, 2023, 6:06pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/1 "2023-09-07T18:06:34Z")

</div>

I managed to add my Xiaomi vacuum to my Homey devices, and I noticed that I can tell it to go to a specific room. I need to give Homey the room ID, but I have no idea how to find that in my Xiaomi app…

How can I extract that?

 ![Screenshot 2023-09-07 at 20.05.42](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12f295550ccc9ff5411688d4a91268bfff91cc11.png)

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [September 7, 2023, 7:47pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/2 "2023-09-07T19:47:56Z")

</div>

Do you use it with the Roborock app?  
If so, [https://community.homey.app/t/app-pro-roborock-vacuum-cleaners/49521](https://community.homey.app/t/app-pro-roborock-vacuum-cleaners/49521)

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 8, 2023, 6:22am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/3 "2023-09-08T06:22:34Z")

</div>

I use the Xiaomi Home app. I have a Dreame Z10Pro, which is not directly recognized but apparently holds the same functions as the other Dreame vacuums.

Also, I cannot use the Roborock app because I have a Homey Pro (early 2023) which is not compatible currently

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [September 8, 2023, 6:32am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/4 "2023-09-08T06:32:23Z")

</div>

I think the first room ID is 16, and then +1, so the 2nd room is 17 etc

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 8, 2023, 7:45am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/5 "2023-09-08T07:45:08Z")

</div>

I thought so indeed when doing a little bit of Googling, but it doesn’t seem to work.

At this point I’m not sure whether the function itself “Send vacuum cleaner to clean room” doesn’t work or the ID number is wrong, or if the Dreame Z10 pro isn’t yet fully compatible…

To be sure, am I correct to assume that this function doesn’t need any previous functions to run first? I thought maybe executing the “Turn on” function first would be necessary but that isn’t the case either.

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [September 9, 2023, 5:51pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/6 "2023-09-09T17:51:34Z")

</div>

Just setup a test for you, with my Roborck S7, works perfectly. First room is 16, next one 17, 18, 19 etc.  
You define a room in the Xiaomi phone app.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/efbf2d3f468c69645305a9e4d4cd14a19e577abc.png).

It could be that a Dreame Z10 doesn’t support this feature, but you could test that through the Xiaomi phone app, can you send it to a specific room there?

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 10, 2023, 4:57pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/7 "2023-09-10T16:57:28Z")

</div>

Indeed my Xiaomi phone app is all ready to go, I have the map of my home properly listed and I am indeed able to send my Dreame to a specific room - all of it works fully in the Xiaomi app so that doesn’t seem to be the problem…

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [September 10, 2023, 7:58pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/8 "2023-09-10T19:58:39Z")

</div>

> [@Nibbles](#):
>
> o send my Dreame to a specific room - all of it works fully in the Xiaomi app so that doesn’t seem to be the problem…

In that case I think it should work from Homey too, but maybe it’s different ID’s for the rooms, so you could play around with that maybe?

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 11, 2023, 3:05pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/9 "2023-09-11T15:05:16Z")

</div>

I tried manually putting ID numbers from 0 all the way to 100 and above, and still no luck ☹

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [September 12, 2023, 2:15am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/10 "2023-09-12T02:15:18Z")

</div>

I can’t really test it for you, since I don’t have a Dreame, or see your logs from the Homey app, The room ID’s will probably be in there, so I think the easiest would be to post your question [here](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118), or ask the developer (@Phuturist ) if he can figure it out based on your diagnostic logs.

Hope you can figure it out 👍

---

<div class="post-metadata">

**Author:** ![Hanno79](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hanno79/32/78997_2.png) [@Hanno79](https://community.homey.app/u/Hanno79)\
**Post date:** [September 20, 2023, 5:40am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/11 "2023-09-20T05:40:33Z")

</div>

Hello, do you find a solution for this? I have same  
Problem with my dreame.  
Greetings Hanno

---

<div class="post-metadata">

**Author:** ![Dries\_Verbruggen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dries_verbruggen/32/74263_2.png) [@Dries\_Verbruggen](https://community.homey.app/u/Dries_Verbruggen)\
**Post date:** [September 25, 2023, 7:03pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/12 "2023-09-25T19:03:55Z")

</div>

I’m also trying the same with a Dreame L10s Ultra. If i try to run the card I get the error:  
“Unexpected token o in JSON at position 1”.

Commands like start cleaning or return to dock are working OK.

---

<div class="post-metadata">

**Author:** ![KeHo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/keho/32/84650_2.png) [@KeHo](https://community.homey.app/u/KeHo)\
**Post date:** [September 26, 2023, 10:24am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/13 "2023-09-26T10:24:08Z")

</div>

Bei mir das gleiche

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [September 30, 2023, 9:56am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/14 "2023-09-30T09:56:31Z")

</div>

Still no solution ☹

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [October 15, 2023, 12:31am UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/15 "2023-10-15T00:31:54Z")

</div>

Apparently, there is more to it than just setting an ID on the Dreame, I don’t own one, s cannot check. [This website](https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/discussions/317) gives information for Home Assistant and using the dream Room ID’s. Also, please ask questions about the Xiaomi app [here](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118), you are more likely to get an answer from the Developer.

---

<div class="post-metadata">

**Author:** ![DeBossDK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/debossdk/32/105832_2.png) [@DeBossDK](https://community.homey.app/u/DeBossDK)\
**Post date:** [April 20, 2024, 6:04pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/16 "2024-04-20T18:04:53Z")

</div>

Any success?  
I have a Xiaomi S10+, and finally today got the token and added it with Adv. Dreame Vac. in Xiaomi Homey app.  
I have tried SO many room id’s… No luck… All others work perfectly, but this little isue… The most usefull one - I can’t find.

---

<div class="post-metadata">

**Author:** ![Nibbles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nibbles/32/78881_2.png) [@Nibbles](https://community.homey.app/u/Nibbles)\
**Post date:** [May 30, 2024, 3:54pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/17 "2024-05-30T15:54:29Z")

</div>

Nope still not…

Online documentation on this is horrible. Indeed the best way to get answers is to setup a connection with Home Assistant and somehow make it work. But for people like me who such at the more low-level smart home stuff I wouldn’t know how to make it work.  
If only someone could just give us the format for the Room ID’s…

---

<div class="post-metadata">

**Author:** ![Bernd\_Kawelka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernd_kawelka/32/80205_2.png) [@Bernd\_Kawelka](https://community.homey.app/u/Bernd_Kawelka)\
**Post date:** [May 30, 2024, 7:13pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/18 "2024-05-30T19:13:24Z")

</div>

Same for me!

I’m using Home Assistant for cleaning certain rooms. The description is already a few days old but setting up worked for me just fine: [Home Assistant Anleitung how to... Roborock einzelnen Raum saugen lassen - smarterkram.de](https://smarterkram.de/1525/)

Hope this helps anyone else!

---

<div class="post-metadata">

**Author:** ![DeBossDK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/debossdk/32/105832_2.png) [@DeBossDK](https://community.homey.app/u/DeBossDK)\
**Post date:** [May 31, 2024, 1:04pm UTC](https://community.homey.app/t/xiaomi-home-get-room-id/88986/19 "2024-05-31T13:04:52Z")

</div>

Hi Bernd…

Thanks, but I have no HA. Only a Homey pro 2019.

Would you know if I can script this directly in Homey?

Thanks
