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

<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:** [October 7, 2020, 6:30pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/104 "2020-10-07T18:30:06Z")

</div>

The token is correct because I can use the RoboRock Control Centre (windows app)

But when using the homey app the error: app device.getstate is not a function

---

<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:** [October 11, 2020, 8:25pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/105 "2020-10-11T20:25:32Z")

</div>

No one? too bad bought this roborock because I could integrate with homey. The token is correct but I think the APP needs an update? token is correct because I can controll the unit with the windows application.

Who can confirm that they have it working with firmware: Homey 5.0.0-rc.34 and S5 Max 01.10.26

---

<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 12, 2020, 5:39pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/106 "2020-10-12T17:39:54Z")

</div>

Have you tried the MiHomey app?

> **[Maxmudjon/com.maxmudjon.mihomey](https://github.com/Maxmudjon/com.maxmudjon.mihomey)**
>
> MiHomey App for Athom Homey. Contribute to Maxmudjon/com.maxmudjon.mihomey development by creating an account on GitHub.

---

<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:** [October 12, 2020, 5:49pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/107 "2020-10-12T17:49:07Z")

</div>

No not yet. CLI install?

---

<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:** [October 13, 2020, 9:46am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/109 "2020-10-13T09:46:57Z")

</div>

Did the CLI install of the MiHomey app. No luck yet… When adding nothing happens. strange thing is that the widows application again works flawlessly with the IP and Token.

It bugs me that I cannot figure this out

---

<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:** [October 16, 2020, 8:42am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/110 "2020-10-16T08:42:40Z")

</div>

Homey handels the communication different than Node Red or the available windows RoboRock Control Centre application. Any other explanation?

> [@\[APP\]\[Pro\] Xiaomi Mi Home App](https://community.homey.app/t/xiaomi-mi-home-app-for-wifi-devices/118/696):
>
> I think the problem is the way Homey comunicats or is connected to the network. When i connect the Roborock to Node Red on my Raspberry it works perfect. But when i try to connect the Roborock to Homey ik get the same arror (device.getstate is not a funktion) So i think te route homey makes to the roborock is diverent then the route from the RPi to de Roborock

---

<div class="post-metadata">

**Author:** ![Marius\_Kohmann](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_kohmann/32/32319_2.png) [@Marius\_Kohmann](https://community.homey.app/u/Marius_Kohmann)\
**Post date:** [December 10, 2020, 12:19pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/111 "2020-12-10T12:19:30Z")

</div>

Had some problems with connecting to my roborock s5 max after getting the token - what I did wrong was that I did not install the custom Homey app that is required for newer roborock devices.

After I installed the custom homey app, everything worked well! I followed this tutorial: [https://homey.guide/fa-xiaomi-roborock-s5-max-s6-i-homey/](https://homey.guide/fa-xiaomi-roborock-s5-max-s6-i-homey/) (sorry its in danish)

---

<div class="post-metadata">

**Author:** ![Alberto](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alberto/32/16912_2.png) [@Alberto](https://community.homey.app/u/Alberto)\
**Post date:** [December 17, 2020, 10:56pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/112 "2020-12-17T22:56:36Z")

</div>

Tried too get the token, fine.  
In homey i have this fault :handshake timeout"  
Any idea?

---

<div class="post-metadata">

**Author:** ![Marius\_Kohmann](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_kohmann/32/32319_2.png) [@Marius\_Kohmann](https://community.homey.app/u/Marius_Kohmann)\
**Post date:** [January 11, 2021, 7:16am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/113 "2021-01-11T07:16:56Z")

</div>

Try installing the custom homey app I mentioned in the link above 🙂

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [January 12, 2021, 12:48pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/114 "2021-01-12T12:48:36Z")

</div>

> [@Marius\_Kohmann](#):
>
> Had some problems with connecting to my roborock s5 max after getting the token - what I did wrong was that I did not install the custom Homey app that is required for newer roborock devices.

When you add it this way, Is it possible to pin & go or room clean?

---

<div class="post-metadata">

**Author:** ![Marius\_Kohmann](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_kohmann/32/32319_2.png) [@Marius\_Kohmann](https://community.homey.app/u/Marius_Kohmann)\
**Post date:** [January 12, 2021, 1:03pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/115 "2021-01-12T13:03:38Z")

</div>

> [@Arjan-21](#):
>
> When you add it this way, Is it possible to pin & go or room clean?

Unfortunately not, I have not found a way to to that with that app. If you want to support it I guess you have to create a custom app yourself using the miio tool available on GitHub.

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [January 12, 2021, 1:39pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/116 "2021-01-12T13:39:50Z")

</div>

I thought maybe this is the one with room cleaning etc. I think this app is the same as the one on GitHub.  
Unfortunately I’m not good with writing code. So I can nog build it myself.

---

<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:** [January 14, 2021, 9:14pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/117 "2021-01-14T21:14:23Z")

</div>

Got the token. Installed the custom app trough CLI and have added the roborock s5 max in Homey so far Hoerayyy!!! On my phone i run the latest Mi Home app from the google store and i can also controll my S5 Max from there. Now i want to have the S5 max also connected to Google home. I tried the three different google connections. when i use “Roborock” i can connect i see the S5 max in google home the S5 Max is available as a device. When i try to controll it i see that it is not responding and google home keeps trying to connect. When i remove the device and try " Mi Roborock" i have the same result. When i try the “Mi Home” there is no device connected. My goal is to control the S5 max by voice (for the wife) and control the S5 max trought flows when we are not at home

---

<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:** [January 14, 2021, 10:54pm UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/118 "2021-01-14T22:54:37Z")

</div>

Perfect, Thanks for sharing. After al this time i got my Roborock S5 Max connected to Homey. Will be doing some flow testing tomorrow.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b74ac0a72a8f973667a5881fd8bf7e135a6ae50.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/3/339f1fe24a8fc23733dacc4f8c443db86486bfa5.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bd2c029f8c271ed93eaddff254fe62a0c6f596fa.jpeg)

---

<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:** [February 6, 2021, 10:16am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/119 "2021-02-06T10:16:48Z")

</div>

I installed the CLI roborock app yesterday and yes the token did work for my S5max. However, the go to position and zone clean function do not work, it crashes the app.  
Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Morgan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morgan/32/15416_2.png) [@Morgan](https://community.homey.app/u/Morgan)\
**Post date:** [February 6, 2021, 11:43am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/120 "2021-02-06T11:43:58Z")

</div>

I have the same problem. The app crashes when I try the go to coordinates.

---

<div class="post-metadata">

**Author:** ![Oscar\_Strom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_strom/32/6861_2.png) [@Oscar\_Strom](https://community.homey.app/u/Oscar_Strom)\
**Post date:** [February 7, 2021, 7:56am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/121 "2021-02-07T07:56:13Z")

</div>

Hello,

Have you tried to send your S5 max to target? X and y?

//O

---

<div class="post-metadata">

**Author:** ![Oscar\_Strom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_strom/32/6861_2.png) [@Oscar\_Strom](https://community.homey.app/u/Oscar_Strom)\
**Post date:** [February 7, 2021, 8:03am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/122 "2021-02-07T08:03:15Z")

</div>

Same

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [February 12, 2021, 8:36am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/123 "2021-02-12T08:36:53Z")

</div>

Yes this is a known issue. Someone on GitHub has edit the xiaomi app to work with the s5 Max, but not works to get to a target and room/zone cleaning.

> <https://github.com/Maxmudjon/com.maxmudjon.mihomey/issues/19>
>
> I don't know how this project relates to the other one here on github: Maxmudjon/com.xiaomi-miio#126
> But there is a problem with the...

---

<div class="post-metadata">

**Author:** ![Oscar\_Strom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_strom/32/6861_2.png) [@Oscar\_Strom](https://community.homey.app/u/Oscar_Strom)\
**Post date:** [February 12, 2021, 9:57am UTC](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/124 "2021-02-12T09:57:01Z")

</div>

That is to bad. Would be nice to only clean after the kids under the kitchen table 🙂

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

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