# Xiaomi Mi Roborock S50 vacuum cleaner token

**URL:** <https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516>\
**Category:** Questions & Help\
**Created:** [October 6, 2018, 4:02pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516 "2018-10-06T16:02:52Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![A-A](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/a-a/32/8357_2.png) [@A-A](https://community.homey.app/u/A-A)\
**Post date:** [May 14, 2019, 5:21pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/42 "2019-05-14T17:21:46Z")

</div>

I have my roborock connected to the homey as well.  
I have made flows for cleaning specific rooms. If i go to “flows” on the homey app and activate the flow, it works pretty good. altough sometimes i have to press it a couple of times.  
I have also added a virtual device button to be able to trigger the flow from homekit.  
When I use the button it messes up my map as well.  
At once it state that zone clean is finished and when i look at the map its messed up.

---

<div class="post-metadata">

**Author:** ![Samuel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/samuel/32/4815_2.png) [@Samuel](https://community.homey.app/u/Samuel)\
**Post date:** [August 24, 2019, 9:19am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/43 "2019-08-24T09:19:23Z")

</div>

I have a Roborock S5 and got it connected with Homey. What I do not understand is how the x,y coordinate system work. In the Roborock app I have zones/rooms defined but I do not know how to translate it to either a single target (x, y) or a zone (x1, y1, x2, y2, cleaning times) as suggested in the Homey Flow. Anyone knows how this might work, i have tried a number of values but can not make any sense of it.

---

<div class="post-metadata">

**Author:** ![Tomm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tomm/32/10625_2.png) [@Tomm](https://community.homey.app/u/Tomm)\
**Post date:** [August 24, 2019, 11:50am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/44 "2019-08-24T11:50:18Z")

</div>

> <https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/mirobot_zonecleanup.md>

---

<div class="post-metadata">

**Author:** ![Samuel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/samuel/32/4815_2.png) [@Samuel](https://community.homey.app/u/Samuel)\
**Post date:** [August 24, 2019, 12:29pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/45 "2019-08-24T12:29:37Z")

</div>

I used the instruction but the only thing I can figure out by now is that the dock is not even close to 25500 x and y. Even values of 1 000 000, 1 000 000 and the cleaner still heads 45 degrees down and to the left (south west).

---

<div class="post-metadata">

**Author:** ![MaikRovers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikrovers/32/6807_2.png) [@MaikRovers](https://community.homey.app/u/MaikRovers)\
**Post date:** [October 9, 2019, 5:39am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/46 "2019-10-09T05:39:34Z")

</div>

I have requested my privacy data from xiaomi and have finally received it (took 2 months). But I still do not find a token code in the user\_device\_data file.  
The file contains a 9 digit number with the words: prop.ota\_state [“idle”]  
☹

---

<div class="post-metadata">

**Author:** ![Jos\_van\_Emmerik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_van_emmerik/32/9913_2.png) [@Jos\_van\_Emmerik](https://community.homey.app/u/Jos_van_Emmerik)\
**Post date:** [October 10, 2019, 11:33am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/47 "2019-10-10T11:33:37Z")

</div>

hi maikrovers

> [@EmielC](#):
>
> I downloaded an adjusted xiaomi MI home apk. (Android only) [https://drive.google.com/open?id=1dlaI-1I4\_0fyrhMYl4b\_Z7M33QLBhz4V](https://drive.google.com/open?id=1dlaI-1I4_0fyrhMYl4b_Z7M33QLBhz4V)  
> select the device \> click the three dots in right upper corner \> go to general settings \> click network info. Your token is available.

just recently i had an update on my network in which i had to reset my roborock and this method was very easy (remove old version off mi home app first)  
after having the token you can just remove this app and turn back to the most recent mi home app

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [October 13, 2019, 12:57pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/48 "2019-10-13T12:57:09Z")

</div>

Took some time with iTunes and other required software but managed to get the token. Made an excel with my room and all coordinates. Works perfect! Now 3 things I want to know:  
-Is it possible to clean a room and exclude the carpet (i will try with an inverse function and see if it works)?  
-I see no possibility for the mopping function, only fan speed can be adjusted, anybody?  
-Is it possible to use the messaging from the Roborock? (bin full or sensors dirty)

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [October 13, 2019, 1:43pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/49 "2019-10-13T13:43:41Z")

</div>

Great news @Inunekko

> [@Inunekko](#):
>
> Made an excel with my room and all coordinates.

Can you explain how you did the coordinates stuff please.

---

<div class="post-metadata">

**Author:** ![Martin\_van\_der\_Aart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_van_der_aart/32/9658_2.png) [@Martin\_van\_der\_Aart](https://community.homey.app/u/Martin_van_der_Aart)\
**Post date:** [October 13, 2019, 2:33pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/50 "2019-10-13T14:33:57Z")

</div>

I got the token yesterday and got the Roborock S50 working in Homey.  
Finding the coordinates for my room was easy.  
I used dock position as the starting point (X=25500, Y=25500) like the app says.  
Because i have ceramic tiles on the floor that are 60x60 cm it was easy to test some coordinates to move the Roborock one tile. It seems to be around 625.  
So to move left one tile X=24875 (25500-625), to move right X=26125 (25500+625).  
The same goes for the Y coordinates to move up en down.  
Calculating the coordinates for the zones i wanted to make was easy now.

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [October 13, 2019, 2:37pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/51 "2019-10-13T14:37:40Z")

</div>

I did by trial and error with the ‘go’ card and test the flow. First the corners of the room.

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [October 13, 2019, 2:40pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/52 "2019-10-13T14:40:12Z")

</div>

And don’t forget the brackets when defining zones! took me a while to figure out

---

<div class="post-metadata">

**Author:** ![Stephan\_Haas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stephan_haas/32/11150_2.png) [@Stephan\_Haas](https://community.homey.app/u/Stephan_Haas)\
**Post date:** [October 14, 2019, 8:04am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/53 "2019-10-14T08:04:48Z")

</div>

Great tip, got my Roborock and getting the token this way was easy. Now working on the zones.

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [October 21, 2019, 1:43pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/54 "2019-10-21T13:43:16Z")

</div>

Does anybody know how to use the moping function in a flow, it seems that only fan speed can be adjusted. Mopping is slightly different (more overlap etc.)

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [October 27, 2019, 7:41am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/55 "2019-10-27T07:41:46Z")

</div>

Just use the modified app. In the modified app, you will find the token.  
Make sure to re-start the MiHome application in Homey before trying to (re-)connect.

> [@Xiaomi Mi Roborock S50 vacuum cleaner token](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/23):
>
> Yes, Modified app to find the token: [https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing](https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing) You do not need to be on the “china mainland” server.

---

<div class="post-metadata">

**Author:** ![christian.ek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian.ek/32/64171_2.png) [@christian.ek](https://community.homey.app/u/christian.ek)\
**Post date:** [November 5, 2019, 8:40am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/56 "2019-11-05T08:40:39Z")

</div>

Is there a way to get error codes in homey when robot gives an error like “clean the dustbin”?

---

<div class="post-metadata">

**Author:** ![Torill\_Iversen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torill_iversen/32/15248_2.png) [@Torill\_Iversen](https://community.homey.app/u/Torill_Iversen)\
**Post date:** [December 11, 2019, 8:38pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/57 "2019-12-11T20:38:06Z")

</div>

In what file/where do you find the token? Got some files when asking for personal data, but cant find 32letter/number token anywhere?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [December 11, 2019, 10:11pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/58 "2019-12-11T22:11:02Z")

</div>

Never found it in those files.

---

<div class="post-metadata">

**Author:** ![willumpie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/willumpie/32/1115_2.png) [@willumpie](https://community.homey.app/u/willumpie)\
**Post date:** [January 29, 2020, 10:14am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/59 "2020-01-29T10:14:05Z")

</div>

Hi All,

I look forward to integrate my Roborock S5 max with Homey, after setting it up, am I stil able to use the Roborock app to control the unit?

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [January 29, 2020, 10:30am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/60 "2020-01-29T10:30:23Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [January 29, 2020, 5:55pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/61 "2020-01-29T17:55:00Z")

</div>

I have S5 max. Are you able to dig the token?

[Previous page](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516.md?page=2)

[Next page](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516.md?page=4)
