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

<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:** [May 3, 2019, 7:20am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/329 "2019-05-03T07:20:13Z")

</div>

Sorry guys, there is nothing I can do about the connection issues. Some report it works, some don’t. This has always been a hacky and unsupported way to communicate with Xiaomi devices as stated in the app description. I’ll add the S50 to the list of not fully supported devices.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [May 3, 2019, 10:15am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/330 "2019-05-03T10:15:59Z")

</div>

No worries @Phuturist. Thanks for your effort!

---

<div class="post-metadata">

**Author:** ![pieter2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter2/32/9977_2.png) [@pieter2](https://community.homey.app/u/pieter2)\
**Post date:** [May 8, 2019, 12:23pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/331 "2019-05-08T12:23:41Z")

</div>

Yesterday the app was updated automatically and it seems to work again. I’ll try rebooting the app everyday to see if this helps.

---

<div class="post-metadata">

**Author:** ![Maurits](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maurits/32/8884_2.png) [@Maurits](https://community.homey.app/u/Maurits)\
**Post date:** [May 9, 2019, 11:20am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/332 "2019-05-09T11:20:49Z")

</div>

@Phuturist Is it possible to add a function to turn of the OLED screen of the Air Purifier? This is available in the Mi Home App called (light).

Also i have to flow cards for on and to for off in the **Then** field

 ![03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/ea979550c09833d240daf9072eeed9e1a3647ba6.png)

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 12:28pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/333 "2019-05-10T12:28:50Z")

</div>

Am I missing something or does the Yeelight Lightstrip Plus not work? I have tried everything but Homey never finds the device. I have LAN control turned on. Flicked it on/off multiple times. Removed an paired the strip via Mi Home ánd Yeelight app multiple times. Even rebooted Homey and removed and re-installed the Yeelight app op my iPhone.

I just don’t get it… the strip should work since the app page clearly says so:

_Yeelights: Bulbs Wi-Fi, LED strips, Bedside Lamp II, Ceiling Lights, Desk Lamp_

To make it more confusing: I can control it with Google Home fine by linking my Yeelight account. So the LAN control works fine. But I want to use it with Homey for Flows (and since Google Home integration is now live I want everything connected through Homey).

Anyone?

Edit: I can set the strip using Google Home but cannot turn it on or off. Maybe there is something wrong with the LAN control? I have flicked that 20 times now and unplugged/plugged the strip too. Anyone experienced 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:** [May 10, 2019, 12:49pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/334 "2019-05-10T12:49:47Z")

</div>

> [@Maurits](#):
>
> Is it possible to add a function to turn of the OLED screen of the Air Purifier? This is available in the Mi Home App called (light).
> 
> Also i have to flow cards for on and to for off in the **Then** field

It should be possible to create a LED display action card. I’ll see if I can add it in a future release.

I’ll look into the double onoff action cards. Looks like something that is still there from firmware 1.x while on firmware 2.x these cards are auto generated.

---

<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:** [May 10, 2019, 12:58pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/335 "2019-05-10T12:58:01Z")

</div>

> [@ASN](#):
>
> Am I missing something or does the Yeelight Lightstrip Plus not work? I have tried everything but Homey never finds the device. I have LAN control turned on.

This model is probably not supported yet within my app. I need to retrieve the model identifier and add it to the app before it gets recognized. I’ll try and find the model indentifier on the internet but if I cant find it I may need your help to find it. If you dont hear from me anymore I’ll add it in a future release and it will be in the change log.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 1:12pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/337 "2019-05-10T13:12:49Z")

</div>

Thanks for clarifying, I thought I was going insane lol. I’m happy to help, so just send me a message when you need something.

If I think of the model I think you are refering to, then this is the one: YLDD04YL

---

<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:** [May 10, 2019, 1:19pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/338 "2019-05-10T13:19:05Z")

</div>

> [@ASN](#):
>
> If I think of the model I think you are refering to, then this is the one: YLDD04YL

That is indeed the model type but not the identifier I’m after. It looks though this model has not been added in various other home domotica solutions because the identifier is unknown (see [home assistant](https://www.home-assistant.io/components/yeelight/#supported-models) or [openHAB](https://github.com/openhab/openhab2-addons/issues/4322) for instance).

Do you know how to run a Homey app from the command line. I could create a debug version of the app that should spit out the model identifier.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 1:32pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/339 "2019-05-10T13:32:48Z")

</div>

I don’t know how to run apps from command line. I am willing to try though! I’m running macOS if that matters.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 1:34pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/340 "2019-05-10T13:34:02Z")

</div>

Meant to reply above to you.

---

<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:** [May 10, 2019, 1:47pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/341 "2019-05-10T13:47:37Z")

</div>

I know nothing about MacOS but I’m sure that should not matter. Following the instructions from the tutorial and use my debug branch to `athom run app`. It should return the model identifier on the command line.

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

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 3:21pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/342 "2019-05-10T15:21:16Z")

</div>

I keep getting this error if I try to install that app. I have CLI setup and am connected to Homey through command just fine.

✓ Pre-processing app…  
✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
events.js:174  
throw er; // Unhandled ‘error’ event  
^

Error: EPERM: operation not permitted, scandir ‘/Users/ASN/Library/Cookies’  
Emitted ‘error’ event at:  
at Pack.destroy (/usr/local/lib/node\_modules/athom-cli/node\_modules/tar-stream/pack.js:202:17)  
at onstat (/usr/local/lib/node\_modules/athom-cli/node\_modules/tar-fs/index.js:97:26)  
at /usr/local/lib/node\_modules/athom-cli/node\_modules/tar-fs/index.js:35:25  
at FSReqWrap.args [as oncomplete] (fs.js:140:20)

Any thoughts?

---

<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:** [May 10, 2019, 3:22pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/343 "2019-05-10T15:22:52Z")

</div>

> [@ASN](#):
>
> I keep getting this error if I try to install that app. I have CLI setup and am connected to Homey through command just fine.

Looks like the athom CLI does not has permission to write a cookie. Not sure how it works in MacOS but can you use elevated permissions (run as administrator)?

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 3:25pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/344 "2019-05-10T15:25:09Z")

</div>

I tried the command with sudo, but same error. It takes around 2 minutes, and then the error shows up. Or do I need a different command to run it as Administrator?

---

<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:** [May 10, 2019, 3:30pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/345 "2019-05-10T15:30:32Z")

</div>

I know nothing about MacOS so I dont know.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 3:52pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/346 "2019-05-10T15:52:42Z")

</div>

Alright, so I got it to finally install :)! Currently waiting for the log te appear.

2019-05-10 17:48:08 [log] [XiaomiMiioApp] Initializing Xiaomi Mi Home app …

Is it normal for it to take this long, or am I waiting for nothing?

edit: I’ve been at this message for ten minutes now. Beginning to think nothing is happening?  
edit 2: it’s been over 20 minutes without anything showing up. Any thoughts?

---

<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:** [May 10, 2019, 4:12pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/347 "2019-05-10T16:12:12Z")

</div>

> [@ASN](#):
>
> edit: I’ve been at this message for ten minutes now. Beginning to think nothing is happening?

You now need to try and pair the Yeelight. During pairing it should show the model identifier in the console.

---

<div class="post-metadata">

**Author:** ![ASN](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@ASN](https://community.homey.app/u/ASN)\
**Post date:** [May 10, 2019, 4:15pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/348 "2019-05-10T16:15:03Z")

</div>

Do you mean by installing it through the Homey app -\> Devices \> + \> Xiaomi Mi Home \> Yeelights?

I tried that just now, and it says no devices found and the log shows nothing.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/1503caf1a4757bb9e2c8ef8f08daa1c5e9a3d5a1.jpeg)

---

<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:** [May 10, 2019, 4:26pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/349 "2019-05-10T16:26:11Z")

</div>

> [@ASN](#):
>
> I tried that just now, and it says no devices found and the log shows nothing.

If that is the case my assumption about unknown model identifier is not correct. That would suggest the LED strip is not responding to the broadcast message send to identify the LED strip. Is it on the same subnetwork as Homey?

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

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