# 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:** 5

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 21, 2020, 3:44pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/83 "2020-06-21T15:44:12Z")

</div>

You do not need a jailbreak for iOS to get the token, @Jan_Peeters.  
Make a backup with iTunes/Finder and no encryption. Then use some tools to get it. Probably said before, it’s a lot of steps but it works! 🙂

Look for non-jailbroken users: [https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain\_token.md](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md)

---

<div class="post-metadata">

**Author:** ![SomeDude](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@SomeDude](https://community.homey.app/u/SomeDude)\
**Post date:** [July 23, 2020, 12:55am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/84 "2020-07-23T00:55:15Z")

</div>

Anyone who knows an app, or another way than trail and error, to get the coordinates of self defined rooms in the Mi Home app for the roborock s50?

---

<div class="post-metadata">

**Author:** ![steve](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steve/32/27896_2.png) [@steve](https://community.homey.app/u/steve)\
**Post date:** [July 31, 2020, 4:12pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/85 "2020-07-31T16:12:17Z")

</div>

I got the token but when I try to install I get a “device.State not a function” message.  
Anyone with similar experience?

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 28, 2020, 9:48pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/86 "2020-09-28T21:48:50Z")

</div>

Trying to get the token and using the Mi home 5.4.38 modifie.APK when installing i get an error at the latest step. Roborock S5 Maz with the latest firmware

 ![a603fc74-fa6d-43f0-a50c-702aec09b1ad](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/6/1635d5df4b28e6adefea7d176ec96874fe01d10d.jpeg)

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [September 29, 2020, 8:26am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/87 "2020-09-29T08:26:17Z")

</div>

You must install first te latest version of the app. Wits that version you connect te roborock to your Wifi network. AFter that you remove that version of the app and install the APK version.

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 9:34am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/88 "2020-09-29T09:34:58Z")

</div>

I can add the robot is both the MI Home app (latest from the playstore) and trough the Roborock app also trough the play store. When i uninstall the MI home app and install the Modfied APK and open the new app i can see my S5 as online. but when i click it i will get “failed to start extension, try again”

 ![f3e4f408-ba8e-4c4c-8b25-52142784078c](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c09cd924719096d1ceb3fb965ddf8815716d01c.jpeg)

---

<div class="post-metadata">

**Author:** ![Timothyvisual](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timothyvisual/32/134075_2.png) [@Timothyvisual](https://community.homey.app/u/Timothyvisual)\
**Post date:** [September 29, 2020, 9:39am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/89 "2020-09-29T09:39:03Z")

</div>

Hi Steve,  
I got the same. “device.getState is not a function”

Did you find a solution for this problem?

IOS14.0.1 | Homey 4.2.0 | Xiaomi Mi Home V3.0.8

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [September 29, 2020, 9:39am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/90 "2020-09-29T09:39:34Z")

</div>

That’s correct. Whith te APK version u can’t controle the roborock. You only need this vershion to get te token. When you have the token you can go back to the version of the playstore

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [September 29, 2020, 9:42am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/91 "2020-09-29T09:42:28Z")

</div>

Same problem here. I never got te roborock work directly with Homey. I use Node Red for my dashboard and with MQTT and Node Red i have the roborock connected…

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 10:19am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/92 "2020-09-29T10:19:11Z")

</div>

But when i cannot get into the settings of my roborock by clicking on it where do i find the ip and token

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [September 29, 2020, 10:24am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/93 "2020-09-29T10:24:31Z")

</div>

You instal the APK app to create en TXT file, in that TXT file u can find the token and ip. There is a link in this treat where u can find a way to find this TXT file

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 12:43pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/94 "2020-09-29T12:43:06Z")

</div>

Finally got my token 🙂

Now the error in Homey: device.getstate is not a function …

Homey 4.2.0 | Xiaomi Mi Home V3.0.8

---

<div class="post-metadata">

**Author:** ![Timothyvisual](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timothyvisual/32/134075_2.png) [@Timothyvisual](https://community.homey.app/u/Timothyvisual)\
**Post date:** [September 29, 2020, 2:13pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/96 "2020-09-29T14:13:27Z")

</div>

Same here, so try Node Red with MQTT like suggested above

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 2:19pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/97 "2020-09-29T14:19:47Z")

</div>

no idea how to use node red and MQTT was hoping that i would work with the token etc… shame…

---

<div class="post-metadata">

**Author:** ![Timothyvisual](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timothyvisual/32/134075_2.png) [@Timothyvisual](https://community.homey.app/u/Timothyvisual)\
**Post date:** [September 29, 2020, 2:41pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/98 "2020-09-29T14:41:00Z")

</div>

Me neither, but that’s the fun part! I’m now on YouTube, Node Red for beginners! Looks like fun!

---

<div class="post-metadata">

**Author:** ![steve](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steve/32/27896_2.png) [@steve](https://community.homey.app/u/steve)\
**Post date:** [September 29, 2020, 3:11pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/99 "2020-09-29T15:11:10Z")

</div>

No, I can not figure it out. But it workshop for some people. I just sant to get it working with Homey and the app, not Node Red or any thing else.  
In the Homey App Store it says it supports my vacuum. Can we collectively address this problem to the developer?

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 4:33pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/100 "2020-09-29T16:33:00Z")

</div>

I agree, to have another domotica hub running just to get my vacuum-cleaner added to Homey is not desirable.

---

<div class="post-metadata">

**Author:** ![Wessel](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@Wessel](https://community.homey.app/u/Wessel)\
**Post date:** [September 29, 2020, 8:57pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/101 "2020-09-29T20:57:15Z")

</div>

For me it’s works fine. I cost some time to find the token in the txt file, but after that I’m very happy with the app.  
Especially the zone function.

Take your time to find the code.

---

<div class="post-metadata">

**Author:** ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)\
**Post date:** [September 29, 2020, 8:58pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/102 "2020-09-29T20:58:28Z")

</div>

I did find the code / token is there a possibility that we get the wrong token?

Will the toke change with every install of the app? working on it and i see my token is always the same.

---

<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 2, 2020, 6:02pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/103 "2020-10-02T18:02:35Z")

</div>

> [@wesley\_w](#):
>
> I did find the code / token

_Sigh_  
Just use the modified app already:

> **[MiHome\_5.5.4\_vevs.apk](https://www.dropbox.com/s/h2uua8bjr997346/MiHome_5.5.4_vevs.apk?dl=0)**
>
> Shared with Dropbox

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

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