# \[APP\]\[Pro\] Xiaomi Mi Home App

**URL:** <https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [August 22, 2018, 11:14am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118 "2018-08-22T11:14:52Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![rdvanbuuren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdvanbuuren/32/10728_2.png) [@rdvanbuuren](https://community.homey.app/u/rdvanbuuren)\
**Post date:** [January 3, 2019, 10:05am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/164 "2019-01-03T10:05:14Z")

</div>

In addition to this, I’ve been successful in retrieving the tokens using this method:

What you first do is, reset the device to manufacturing settings. This will normally let you re-pair the device to your home WiFi via your mobile phone app (how-to in this video: [https://youtu.be/NZl1P7rR8WQ?t=64](https://youtu.be/NZl1P7rR8WQ?t=64)), but that’s NOT what we want for now… We want to get that token.

So, on your computer you should connect to the WiFI of the device instead and find its ip address, via cmd.exe with ipconfig (normally would be 192.168.4.1).  
Then just use the steps in [https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain\_token.md#method-2---packet-sender-tool](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md#method-2---packet-sender-tool) and you should be able to retreive the hex token.

---

<div class="post-metadata">

**Author:** ![Densvenske](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/densvenske/32/3840_2.png) [@Densvenske](https://community.homey.app/u/Densvenske)\
**Post date:** [January 7, 2019, 4:05pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/165 "2019-01-07T16:05:07Z")

</div>

Hey I have a problem and i have the token and right ip but i get " Could not connect to device, handshake timeout " in the homey app this is about a xiaomi roborock v2 is there any easyfix for this?

---

<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:** [January 7, 2019, 6:15pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/166 "2019-01-07T18:15:12Z")

</div>

> [@Densvenske](#):
>
> Hey I have a problem and i have the token and right ip but i get " Could not connect to device, handshake timeout " in the homey app this is about a xiaomi roborock v2 is there any easyfix for this?

No easy fix. You could try the miio command line and see if that gives more information about what is going on.

> **[GitHub - aholstenson/miio: Control Mi Home devices, such as Mi Robot Vacuums,...](https://github.com/aholstenson/miio)**
>
> Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more - GitHub - aholstenson/miio: Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Pu...

---

<div class="post-metadata">

**Author:** ![Densvenske](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/densvenske/32/3840_2.png) [@Densvenske](https://community.homey.app/u/Densvenske)\
**Post date:** [January 7, 2019, 6:29pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/167 "2019-01-07T18:29:40Z")

</div>

Looked at it at github but I don’t understand how to do do this!

---

<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:** [January 7, 2019, 6:38pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/168 "2019-01-07T18:38:39Z")

</div>

> [@Densvenske](#):
>
> Looked at it at github but I don’t understand how to do do this

There is not much I can do. As mentioned in the app store description.

> If your are not to tech-savvy using this app for any other devices than the Yeelights might be challenging.

---

<div class="post-metadata">

**Author:** ![Densvenske](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/densvenske/32/3840_2.png) [@Densvenske](https://community.homey.app/u/Densvenske)\
**Post date:** [January 7, 2019, 6:59pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/169 "2019-01-07T18:59:31Z")

</div>

I can tech but I haven’t learned github yet. Is the prompt going to be in the homey?

---

<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:** [January 7, 2019, 7:16pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/170 "2019-01-07T19:16:24Z")

</div>

> [@Densvenske](#):
>
> I can tech but I haven’t learned github yet. Is the prompt going to be in the homey?

No, what you need is a command line with nodejs installed. Using the miio library through command line is completely seperate from Homey.

---

<div class="post-metadata">

**Author:** ![Densvenske](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/densvenske/32/3840_2.png) [@Densvenske](https://community.homey.app/u/Densvenske)\
**Post date:** [January 7, 2019, 7:32pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/171 "2019-01-07T19:32:41Z")

</div>

Okej okej I’ll look in to it tomorrow 😊

---

<div class="post-metadata">

**Author:** ![Densvenske](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/densvenske/32/3840_2.png) [@Densvenske](https://community.homey.app/u/Densvenske)\
**Post date:** [January 7, 2019, 8:54pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/172 "2019-01-07T20:54:43Z")

</div>

I thought alittle if i can´t get it to connect in the homey app how will this work then?

---

<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:** [January 7, 2019, 9:04pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/173 "2019-01-07T21:04:03Z")

</div>

> [@Densvenske](#):
>
> I thought alittle if i can´t get it to connect in the homey app how will this work then?

It wont but might give more clues why in your case it is not working. It helps to troubleshoot.

---

<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:** [January 19, 2019, 9:25am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/174 "2019-01-19T09:25:31Z")

</div>

Did you try the modified app?  
[https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing](https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing)

There is a “howto” but in french as well. Google translate is you friend!

> **[\[Android\] Obtenir son token/jeton (methode 1 : rapide)](https://xiaomirobot.wordpress.com/android-obtenir-token-jeton-roborock-mi-robot-methode-1-rapide/)**
>
> Etape 1 :Autoriser les sources inconnues L’installation d’applications hors Google Play Store nécessite de modifier les paramètres du téléphone, de façon à autoriser l’installation d’applicati…

---

<div class="post-metadata">

**Author:** ![efurdal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/efurdal/32/12859_2.png) [@efurdal](https://community.homey.app/u/efurdal)\
**Post date:** [January 23, 2019, 10:04pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/175 "2019-01-23T22:04:08Z")

</div>

@Phuturist

could you add a trigger/flow card for waterlevel on the humidifyer?

Using the evaporate humidifyer 2. Not in the supported list, but works fine when I added it as the humidifyer that was available in your app:)

---

<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:** [January 24, 2019, 6:50am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/176 "2019-01-24T06:50:03Z")

</div>

> [@efurdal](#):
>
> could you add a trigger/flow card for waterlevel on the humidifyer

Waterlevel does not seem to be a supported capability within the miio library. If you submit a feature request in my repo on GitHub I might look into it when I have more time.

---

<div class="post-metadata">

**Author:** ![nijsi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nijsi/32/3368_2.png) [@nijsi](https://community.homey.app/u/nijsi)\
**Post date:** [January 24, 2019, 3:07pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/177 "2019-01-24T15:07:59Z")

</div>

I finally got BlueStacks working through an old laptop and I have managed to find a token. hehe finally 🙂

---

<div class="post-metadata">

**Author:** ![Joriempie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joriempie/32/9980_2.png) [@Joriempie](https://community.homey.app/u/Joriempie)\
**Post date:** [January 29, 2019, 8:05pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/178 "2019-01-29T20:05:02Z")

</div>

When I use for example “oplaadstation” I got the notification on the following image

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/715b59e7dd7455862b1d7a955c2e118238afb9c7.jpeg)

I have the Roborock S50.

---

<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:** [January 29, 2019, 8:48pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/179 "2019-01-29T20:48:32Z")

</div>

> [@Joriempie](#):
>
> When I use for example “oplaadstation” I got the notification on the following image

This seems to be the [issue](https://github.com/jghaanstra/com.xiaomi-miio/issues/27) where a command send through the miio library sometimes is not processed by the miio device. Have your tried repeating the same command a couple of times?

---

<div class="post-metadata">

**Author:** ![Joriempie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joriempie/32/9980_2.png) [@Joriempie](https://community.homey.app/u/Joriempie)\
**Post date:** [January 29, 2019, 9:01pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/180 "2019-01-29T21:01:56Z")

</div>

Sometimes I have to repeat the command, and sometimes it will pickups directly. Thanks for the reply!

---

<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:** [January 29, 2019, 9:04pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/182 "2019-01-29T21:04:30Z")

</div>

> [@Geurti](#):
>
> The cubes are quite fun to use.  
> In the Homey v1 it was in the tags possible to which side was up. In Homey v2 i don’t see this option anymore.  
> Now I discovered in the Xiaomi app the face numbering map. I know a little about technical drawings but this one I don’t understand.  
> In real the logo and the battery door are opposites, not in the numbering map.  
> Is there an easy way to discover the sides?

Wrong app topic, this is about the Xiaomi Mi Home WiFi devices. The cube is a Zigbee device … 😉

---

<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:** [January 30, 2019, 5:30pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/184 "2019-01-30T17:30:17Z")

</div>

> ## v2.10.0 - 2019-01-30
> 
> - NEW: add waterlevel capability to Xiaomi Humidifier V2 including trigger card
> - FIX: fix setting speed for favorite mode on Air Purifiers

To be able to use the waterlevel capability you will have to re-pair your humidifier as a humidifier v2.

---

<div class="post-metadata">

**Author:** ![Bamato](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@Bamato](https://community.homey.app/u/Bamato)\
**Post date:** [January 30, 2019, 5:53pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/185 "2019-01-30T17:53:07Z")

</div>

Hi Phuturist! First of all: many thanks that you created and maintain this application.

I’m using it to control my Roborock S50 (v2) and succeeded in getting the token. I’m able to control it through Homey but I have a reliability issue. Only about half of the requests come through. The vacuum is scheduled to clean every day (through my Homey) and sometimes it works like a charm for a few days, and then it doesn’t. I’ve ruled out issues on my side (flow does fire (confirmed by logging + push notification), network connectivity, RAM, CPU, etc). Is this perhaps a known issue? If not, how can I support you with troubleshooting?

Thanks!

[Previous page](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118.md?page=8)

[Next page](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118.md?page=10)
