# \[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:** 26

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 2, 2019, 4:21am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/513 "2019-11-02T04:21:04Z")

</div>

It’s Xiaomi Mi LED ceiling

---

<div class="post-metadata">

**Author:** ![Andeno](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Andeno](https://community.homey.app/u/Andeno)\
**Post date:** [November 2, 2019, 9:43pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/514 "2019-11-02T21:43:22Z")

</div>

Is it possible to connect the Homey Mi Home App to a Xiaomi Gateway on another network? I have set up a Xiaomi Smart Home Security Kit in my summer house and would like to read its gateway alarm status from Homey at home. Would it be possible to fill in the summer house IP and Gateway token and that’s it? I’m asking because you might know how it’s built to work. I will try in a couple of weeks when I’ll know the IP, then I can post the result.

---

<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:** [November 2, 2019, 9:49pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/515 "2019-11-02T21:49:04Z")

</div>

That won’t work as Homey needs to be in the same lan to communicate with the device. You would have to create VPN or something.

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_f/32/14910_2.png) [@Markus\_F](https://community.homey.app/u/Markus_F)\
**Post date:** [November 6, 2019, 10:08pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/516 "2019-11-06T22:08:52Z")

</div>

Every second day my vacuum cleaner don’t start per flow or sync the states with homey. If I restart the app, everything works fine for the next 2 days… Now I have a flow wich reboot the app every 24h. But do anyone know this problem and have an solution 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:** [November 6, 2019, 10:47pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/517 "2019-11-06T22:47:21Z")

</div>

Its a know issue and will probably not be resolved.

> <https://github.com/jghaanstra/com.xiaomi-miio/issues/27>
>
> Sometimes the vacuum cleaner won't accepts commands to the vacuum cleaner, after i resend the command it runs

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_f/32/14910_2.png) [@Markus\_F](https://community.homey.app/u/Markus_F)\
**Post date:** [November 7, 2019, 5:33am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/518 "2019-11-07T05:33:31Z")

</div>

Okay… I will test the situation with the app restarts.

---

<div class="post-metadata">

**Author:** ![Geurti](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/geurti/32/8560_2.png) [@Geurti](https://community.homey.app/u/Geurti)\
**Post date:** [November 10, 2019, 5:00pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/519 "2019-11-10T17:00:03Z")

</div>

Hi,  
Since a while my Yeelights are giving me a wrong status update In Homey. It says off when the lights are on and opposite. It’s not always all together the same way. When the light is on IRL and shows off in the devices tab then I just have to hit the button to follow the correct status. This only works when I’m at home of course, when I’m out I can’t be sure of the status.

Yeelight app:  
In the Yeelight app the lights are often showing offline. After a while they show online but the wrong status. When I hit the button in the Yeelight app it won’t follow the status but just turns off. This means I never get the correct status.  
Lan setting I can’t change. When I turn it on and go back it’s off again.

I think it has something to do with the last iOS update in combination but I’m not sure.  
This all has nothing to do with your app but maybe more people have this problem and you know the solution.

---

<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:** [November 12, 2019, 10:01am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/520 "2019-11-12T10:01:01Z")

</div>

> ## v2.13.2 - 2019-11-10
> 
> - Small fix for Yeelights not updating dim capability when in night mode
> - Small fix for Yeelights not updating onoff capability when turning them on by only changing the color

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 17, 2019, 7:09pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/521 "2019-11-17T19:09:18Z")

</div>

I had paired Yeelight LED Stripe, which suddenly shows as offline while original Yeelight app worked fine. I tried to reboot Homey and no change. So I deleted Yeelight LED Stripe from Homey and now, when I’m trying to add it again, it’s not able to find it. I deleted it then even in the original app, re-added there and tried to add to Homey back - still withing “Yeelights” it says “No new device have been found”. LAN mode is enabled, Yeelight original app works fine. Any idea what could be wrong please ?

---

<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:** [November 17, 2019, 7:18pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/522 "2019-11-17T19:18:42Z")

</div>

Not sure, could you restart the app now that you have removed the LED strip. Perhaps there is some sort of caching going on.

---

<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:** [November 18, 2019, 7:12pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/523 "2019-11-18T19:12:24Z")

</div>

> ## v2.13.3 - 2019-11-15
> 
> - Added a mechanism to refresh the device connection to prevent devices from not responding on the first try.
> - Moved installation instructions from app store to community support topic.

I have made a mistake in the latest app release (2.13.3) which is causing a lot of app crashes. I have already submitted a fix to the app store but that is pending approval at the moment. Sorry for any inconvenience … 😳

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 18, 2019, 7:29pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/524 "2019-11-18T19:29:40Z")

</div>

At the end I endep up with device restore ☹  
As for the crashes, indeed I realized many crashes but I thought it my nasty Homey :-). … Thank you anyway 🙂

---

<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:** [November 22, 2019, 10:19pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/525 "2019-11-22T22:19:44Z")

</div>

## IMPORTANT

Currently Yeelights are supported within the Xiaomi Mi Home app. When the Xiaomi Mi Home App was first developed communication with Yeelights followed the same protocol as the Xiaomi Mi/MiJia WiFi devices. This is a reversed engineered protocol and is not very user friendly and stable. At some point a better method to control the Yeelights became available and I implemented support for that. Now the Yeelights and the Xiaomi devices have nothing in common anymore and I have decided to split off the Yeelights into their own Yeelight app.

This means the Yeelight functionality within the Xiaomi Mi Home app will not be developed and supported anymore. I’m aware of the hassle it will be but you are asked to un-pair your Yeelights from the Xiaomi Mi Home app and re-pair them again in the new Yeelight app which will become available soon.

It will not be possible anymore to pair your Yeelights with the next update of the Xiaomi Mi Home app and the Homey app will actually tell you your device will not be supported anymore in the future.

---

<div class="post-metadata">

**Author:** ![vstankov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vstankov/32/6625_2.png) [@vstankov](https://community.homey.app/u/vstankov)\
**Post date:** [November 30, 2019, 10:53pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/526 "2019-11-30T22:53:01Z")

</div>

Hi,

any changes/issues with Xiaomi Air Purifier 2S? I’m trying to add one, using Method 1 and extracting the token with Mi Home app version 5.4.54. In Homey though it says Device is offline. I’ll appreciate any tips & tricks.

---

<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 1, 2019, 12:14am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/527 "2019-12-01T00:14:46Z")

</div>

Nope, havent changed anything. You are able to pair it but after that it says offline?

---

<div class="post-metadata">

**Author:** ![vstankov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vstankov/32/6625_2.png) [@vstankov](https://community.homey.app/u/vstankov)\
**Post date:** [December 1, 2019, 7:25am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/528 "2019-12-01T07:25:27Z")

</div>

The Test connection would fail but it allowed me to press “Connect” and add the device. At this point the device says it’s unavailable and stayed like this for an hour without change. Coincidentally or not, this morning (and after restart of Homey) the air purifier is available and there is a connection to it.  
I have tried also though to connect Xiaomi Gateway and PM2.5 Air quality monitor (following the same process) but the Connect button is grayed out and the Test connection fails … so basically I cannot add them to the Homey app. Any ideas?

---

<div class="post-metadata">

**Author:** ![Da\_JoJo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/da_jojo/32/8210_2.png) [@Da\_JoJo](https://community.homey.app/u/Da_JoJo)\
**Post date:** [December 1, 2019, 8:05am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/529 "2019-12-01T08:05:16Z")

</div>

![Screenshot_20191201-085938_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b141664043227cc84220c5c8a9bdcb3a90f02bb6.jpeg)  
While adding xiaomi 2in1 robot. Model stytj02ym  
Is this due to bug?  
Also xiaomi going to change their API and it seem local control is suppose to get block. Does this in any affect the app? If not connected to home it still is accessable with DID and token locally but after pair it gets new token apparently.

---

<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 1, 2019, 8:41am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/530 "2019-12-01T08:41:15Z")

</div>

> [@vstankov](#):
>
> The Test connection would fail but it allowed me to press “Connect” and add the device. At this point the device says it’s unavailable and stayed like this for an hour without change. Coincidentally or not, this morning (and after restart of Homey) the air purifier is available and there is a connection to it.  
> I have tried also though to connect Xiaomi Gateway and PM2.5 Air quality monitor (following the same process) but the Connect button is grayed out and the Test connection fails … so basically I cannot add them to the Homey app. Any ideas?

I noticed the communication with the gateway has changed and it seems at least the Gateway v3 is not supported (anymore).

> [@Da\_JoJo](#):
>
> While adding xiaomi 2in1 robot. Model stytj02ym  
> Is this due to bug?

I would not call it a bug as this device is not in the list of supported devices. Seems the device does not use the same methods for communication as the previous models. It’s not likely support will be added.

> [@Da\_JoJo](#):
>
> Also xiaomi going to change their API and it seem local control is suppose to get block. Does this in any affect the app? If not connected to home it still is accessable with DID and token locally but after pair it gets new token apparently.

I’m seeying more issues with controlling Xiaomi devices locally lately (as with the gateway v3 mentioned above). If Xiaomi indeed blocks local control this app will cease to work. This has always been mentioned in the app description as something that might happen.

---

<div class="post-metadata">

**Author:** ![Da\_JoJo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/da_jojo/32/8210_2.png) [@Da\_JoJo](https://community.homey.app/u/Da_JoJo)\
**Post date:** [December 1, 2019, 10:53am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/531 "2019-12-01T10:53:32Z")

</div>

Not necessarly , they change from local access to cloud access as soon as it connected and paired to user. When connect to cloud it will get a new token, but it still has API access. Also there is no need for pairing if directly connected to homey. API functions work nevertheless and might have some different commands, this shouldn’t be hard to implement.  
You can take the code from this hack [https://github.com/nqkdev/home-assistant-vacuum-styj02ym/blob/master/README.md](https://github.com/nqkdev/home-assistant-vacuum-styj02ym/blob/master/README.md)  
Commands:  
set\_language [1/2] - voice pack (1 - CN, 2 - EN)  
set\_carpetturbo [0/1/2] - carpet detection with suction level used on carpets (0 - off, 1 - medium suction, 2 - turbo suction)  
get\_prop  
set\_mode  
set\_pointclean  
set\_wall  
set\_zone  
set\_charge  
set\_ischarge  
set\_direction  
set\_suction  
set\_repeat  
set\_broken  
set\_light  
set\_voice  
set\_language  
set\_ordertime  
del\_ordertime  
get\_ordertime  
set\_notdisturb  
get\_notdisturb  
set\_carpetturbo  
set\_remember  
set\_calibration  
get\_curpos  
set\_resetpos  
set\_resetmap  
set\_uploadmap  
get\_consumables  
set\_consumables  
map\_plan  
add\_map  
set\_mode\_withroom  
reset\_factory  
arrange\_room  
rename\_room  
set\_mop  
set\_newmap  
set\_cardoper  
set\_iswork  
set\_timezoneorder  
set\_auto

hw\_info  
sw\_info  
run\_state  
suction\_grade  
mode  
err\_state  
battary\_life  
start\_time  
order\_time  
s\_time  
s\_area  
v\_state  
zone\_data  
repeat\_state  
remember\_map  
has\_map  
water\_grade  
box\_type  
mop\_type  
is\_mop  
light\_state  
has\_newmap  
is\_charge  
is\_work

---

<div class="post-metadata">

**Author:** ![Tequila329](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tequila329/32/10729_2.png) [@Tequila329](https://community.homey.app/u/Tequila329)\
**Post date:** [December 1, 2019, 11:50am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/532 "2019-12-01T11:50:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7d14574d945597448502d2131004082bdc7fabe9.jpeg)

The app stopped working a few times in the past days. Got this error code, maybe it is helpful.

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

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