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

<div class="post-metadata">

**Author:** ![Kingcool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kingcool/32/9538_2.png) [@Kingcool](https://community.homey.app/u/Kingcool)\
**Post date:** [August 26, 2019, 8:45pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/453 "2019-08-26T20:45:50Z")

</div>

Ordered a mi fan pedestal 2s like 5 min ago and just logged in here to check if there was support for it.  
So I’m definitely interested 🙂

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [August 27, 2019, 2:20am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/454 "2019-08-27T02:20:30Z")

</div>

Me! I have the 1st generation xiaomi fan (V1 with removable battery) and it would be great to support it!  
Here’s the product links  
[Smartmi DC Pedastal Fan](http://smartmi.com.cn/fan/)

There are 3 versions.  
Version 1 with the removable battery, The front grill of the fan is flat  
Version 2s with built in battery (non removable), front grill of the fan is flat  
Version 2 which is mains powered. The grill is convex.

---

<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:** [August 27, 2019, 5:41am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/455 "2019-08-27T05:41:27Z")

</div>

Could you guys post product links so I can try and find out the correct model id.

---

<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:** [August 27, 2019, 8:56pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/456 "2019-08-27T20:56:38Z")

</div>

> [@viix](#):
>
> There are 3 versions.  
> Version 1 with the removable battery, The front grill of the fan is flat  
> Version 2s with built in battery (non removable), front grill of the fan is flat  
> Version 2 which is mains powered. The grill is convex.

Have a look at this overview. Could you tell me which identifier you have?

> <https://github.com/aholstenson/miio/blob/2e59e197519c5158842bbbcabfd5625afdc9d215/docs/devices/mifan.md#feature-comparison>

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [August 28, 2019, 3:39am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/457 "2019-08-28T03:39:29Z")

</div>

Hmm, the first 2 are mijia branded fans, the latter 2 are the smartmi branded fans.  
Mine is actually an earlier model of number 4, but version 1. The functions are essentially the same, it’s just the newer model comes with a handheld remote and non removable battery.

I wonder if they would work as is or a model identifier is required?

---

<div class="post-metadata">

**Author:** ![Kingcool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kingcool/32/9538_2.png) [@Kingcool](https://community.homey.app/u/Kingcool)\
**Post date:** [August 28, 2019, 2:08pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/458 "2019-08-28T14:08:54Z")

</div>

Mine seams to be a zhimi.fan.za4  
Ive not recieved it yet, but it had the built in battery, and was named 2s 🙂

---

<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:** [August 28, 2019, 6:19pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/459 "2019-08-28T18:19:27Z")

</div>

Do you guys know how to run a Homey app from the command line? I have pushed a lot of changes to the app to GitHub but I need someone to test if it is actually working.

Tutorial CLI install: [[HOW TO] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198)  
Github: [https://github.com/jghaanstra/com.xiaomi-miio](https://github.com/jghaanstra/com.xiaomi-miio)

---

<div class="post-metadata">

**Author:** ![Kingcool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kingcool/32/9538_2.png) [@Kingcool](https://community.homey.app/u/Kingcool)\
**Post date:** [August 28, 2019, 8:15pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/460 "2019-08-28T20:15:09Z")

</div>

I will gladly test when I receive my fan 🙂

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [August 30, 2019, 7:20am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/461 "2019-08-30T07:20:23Z")

</div>

I will try it tonight…  
Here’s the basic info I got from miio discover for my fan

**Device ID:** 74668718  
**Model info:** zhimi.fan.v3  
**Address:** -  
**Token:**???  
**Support:** At least generic

Tried adding the fan, test connection shows handshake timed out, added as Dmaker fan but device unavailable/app crashed.

---

<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:** [August 30, 2019, 3:58pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/462 "2019-08-30T15:58:54Z")

</div>

Hi, is that what you need to know? Many thanks for any advise.

2019-08-30 17:31:17 [log] [ManagerDrivers] [yeelights] [5] Initializing device: “💡 Světlo obývák” of model “ceiling4” with capabilities:  
2019-08-30 17:31:17 [log] [ManagerDrivers] [yeelights] [5] [ ‘onoff’,  
‘dim’,  
‘light\_hue’,  
‘light\_saturation’,  
‘light\_temperature’,  
‘light\_mode’,  
‘night\_mode’ ]

---

<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:** [August 30, 2019, 5:10pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/463 "2019-08-30T17:10:42Z")

</div>

Yes, but this shows the device has the correct capabilities. So the color action cards should be available as well. Could you post a screenshot of the action cards available for you.

---

<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:** [August 30, 2019, 5:25pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/464 "2019-08-30T17:25:12Z")

</div>

Alright so miracly now the color palette turns on and changes the ambiente led strip on 650. However there is no option to turn on/off the led strip in the Homey app. Also no action refers to it in flows. Is that how it should be?

 ![homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/97d9ece7641cf4fc0156fc5f7449f214f3ac1429.png)

---

<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:** [August 30, 2019, 6:49pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/465 "2019-08-30T18:49:39Z")

</div>

Hmmm, could be I have not created that card yet. You can submit a feature request on GitHub if you want this. Not sure when I get to it to add this.

---

<div class="post-metadata">

**Author:** ![Sander\_de\_Bruijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sander_de_bruijn/32/13172_2.png) [@Sander\_de\_Bruijn](https://community.homey.app/u/Sander_de_Bruijn)\
**Post date:** [September 2, 2019, 9:33pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/466 "2019-09-02T21:33:49Z")

</div>

My Yeelight Color Bulb and sealing light are constantaly offline. I have to restart the app a few times a day. I tried everything, like using a static ip, turning 5 GHz off, etc. But no solution yet. Now my home automation is very unreliable.

---

<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:** [September 3, 2019, 5:52am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/467 "2019-09-03T05:52:54Z")

</div>

I assume you are the one that send the debug log from the app. This is what it shows (the log is full of these errors):

```auto
Yeelight - error on socket: Error: read ECONNRESET
2019-09-02 08:33:27 [log] [ManagerDrivers] [yeelights] [0] Yeelight - trying to reconnect in 6 seconds.
2019-09-02 08:35:05 [log] [ManagerDrivers] [yeelights] [0] Yeelight - error on socket: Error: read ECONNRESET

```

So apparently your connection between Homey and your Yeelights gets reset which suggests an unstable internet connection from Homey and/or your Yeelights.

---

<div class="post-metadata">

**Author:** ![Sander\_de\_Bruijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sander_de_bruijn/32/13172_2.png) [@Sander\_de\_Bruijn](https://community.homey.app/u/Sander_de_Bruijn)\
**Post date:** [September 3, 2019, 8:50am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/468 "2019-09-03T08:50:33Z")

</div>

Thank you for youre fast reply. The yeelights are more than in range of my WiFi connection. So i dont understand. I have a expediabox v10a. Do you have Some tips for me to improve?

---

<div class="post-metadata">

**Author:** ![Kingcool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kingcool/32/9538_2.png) [@Kingcool](https://community.homey.app/u/Kingcool)\
**Post date:** [September 3, 2019, 3:00pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/469 "2019-09-03T15:00:02Z")

</div>

Just recieved my fan, and i getting the same result as viix on my v4 fan.

---

<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:** [September 3, 2019, 4:39pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/470 "2019-09-03T16:39:57Z")

</div>

Did you guys run the app using `athom app run`? That should give me more information what is going on.

---

<div class="post-metadata">

**Author:** ![Kingcool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kingcool/32/9538_2.png) [@Kingcool](https://community.homey.app/u/Kingcool)\
**Post date:** [September 3, 2019, 8:22pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/471 "2019-09-03T20:22:43Z")

</div>

Just tested and got this:

/drivers/zhimi-fan/device.js:89  
}  
^

SyntaxError: Missing catch or finally after try  
at createScript (vm.js:80:10)  
at Object.runInThisContext (vm.js:139:10)  
at Module.\_compile (module.js:617:28)  
at Object.Module.\_extensions…js (module.js:664:10)  
at Module.load (module.js:566:32)  
at tryModuleLoad (module.js:506:12)  
at Function.Module.\_load (module.js:498:3)  
at Module.require (module.js:597:17)  
at Module.require (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/index.js:1:253)  
at require (internal/module.js:11:18)

— INFO: com.xiaomi-miio has been killed —

---

<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:** [September 3, 2019, 9:06pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/472 "2019-09-03T21:06:35Z")

</div>

Ok, I hope to have fixed that. Could you try the current version from GitHub and see if that fixes this.

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

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