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

<div class="post-metadata">

**Author:** ![Andrey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrey/32/9729_2.png) [@Andrey](https://community.homey.app/u/Andrey)\
**Post date:** [June 24, 2019, 8:07am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/391 "2019-06-24T08:07:52Z")

</div>

Thanks for the fix. But dimming ambilight still doesn’t work (bg\_set\_bright).

Yeelight Meteorite light has Night mode which is not available in the update.

---

<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:** [June 24, 2019, 5:41pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/392 "2019-06-24T17:41:36Z")

</div>

You seem to know your way around the code and GitHub. Would it not be easier if you just make the changes, test them with your light and submit a pull request?

---

<div class="post-metadata">

**Author:** ![Andrey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andrey/32/9729_2.png) [@Andrey](https://community.homey.app/u/Andrey)\
**Post date:** [June 25, 2019, 4:31am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/394 "2019-06-25T04:31:59Z")

</div>

It will not be easy for me, sorry ☹ I’m absolutely not familar with Homey programming.  
I just tried to send {“id”:1,“method”:“bg\_set\_bright”,“params”:[1, “smooth”, 500]} command by your app and it worked - changed the ambient light brightness. But I cannot imagine how to implement this in app dialogs. ☹

---

<div class="post-metadata">

**Author:** ![JackDaniel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jackdaniel/32/11278_2.png) [@JackDaniel](https://community.homey.app/u/JackDaniel)\
**Post date:** [July 4, 2019, 5:31am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/395 "2019-07-04T05:31:30Z")

</div>

My Roborock S50 has a multiple personality disorder, at first it was only English and German, now also French has been added 🤪  
Can we somehow help with the therapy?

 ![25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9b5e72bf8810ca4b608d097e1df92da6d2597ed7.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:** [July 4, 2019, 5:48am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/396 "2019-07-04T05:48:11Z")

</div>

The app is only translated in English and Dutch. Any German and French comes from Homey itself for the default card for capabilities. This is something you should report at Athom HQ.

---

<div class="post-metadata">

**Author:** ![AlexVVVx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexvvvx/32/13190_2.png) [@AlexVVVx](https://community.homey.app/u/AlexVVVx)\
**Post date:** [July 11, 2019, 6:47am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/397 "2019-07-11T06:47:23Z")

</div>

Hi Jelger!  
About a year ago you opened an issue [https://github.com/aholstenson/miio/issues/145](https://github.com/aholstenson/miio/issues/145) that I was involved into the investigation. It was regarding Philips Eyecare Lamp.  
Yesterday I noticed a pool request [https://github.com/aholstenson/miio/pull/238](https://github.com/aholstenson/miio/pull/238) that looks like a fix of that bug.  
Do we have any chance that you include this lamp support by your application?

Thank you.

---

<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:** [July 11, 2019, 7:50am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/398 "2019-07-11T07:50:17Z")

</div>

> [@AlexVVVx](#):
>
> Yesterday I noticed a pool request

Good find @AlexVVVx

> [@AlexVVVx](#):
>
> Do we have any chance that you include this lamp support by your application?

That would be cool!

---

<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:** [July 11, 2019, 6:32pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/399 "2019-07-11T18:32:17Z")

</div>

I have uploaded a new version of the app to Github. Can one of you guys test this with a CLI install and let me know if the fix is working.

> **[jghaanstra/com.xiaomi-miio](https://github.com/jghaanstra/com.xiaomi-miio)**
>
> Homey app to control Mi Home devices that implement the miIO protocol - jghaanstra/com.xiaomi-miio

---

<div class="post-metadata">

**Author:** ![AlexVVVx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexvvvx/32/13190_2.png) [@AlexVVVx](https://community.homey.app/u/AlexVVVx)\
**Post date:** [July 11, 2019, 8:34pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/400 "2019-07-11T20:34:05Z")

</div>

I have successfully installed the application with a CLI install, setup the lamp and got this error - Could not connect to device, token might be wrong. I am not sure if my token is correct so I will continue tomorrow.

Thank you

---

<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:** [July 12, 2019, 11:34am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/401 "2019-07-12T11:34:19Z")

</div>

@AlexVVVx and @Phuturist

I have the same problem:

- installed the older Mi App
- retrieved the token via non rooted phone
- installed the Xiaomi App via CLI (named com.xiaomi-miio-master.zip)
- started the ‘add Philips lamp’ wizard
- pasted the IP and the TOKEN
- returns an error ‘token might be invalid’

UPDATE  
I have downloaded the date.txt file to my Mac and opened it in a text editor. Searching for the token, I see multiple instances. Perhaps I used the wrong one!  
No more time today, but to to be able to check all listed tokens this weekend!

UPDATE 2  
I had two Philips Eyecare light tokens in my log file on my phone. Tried both with the IP that was given to the lamp. No luck.Both return an error stating the token might be invalid.

---

<div class="post-metadata">

**Author:** ![AlexVVVx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexvvvx/32/13190_2.png) [@AlexVVVx](https://community.homey.app/u/AlexVVVx)\
**Post date:** [July 14, 2019, 3:42pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/402 "2019-07-14T15:42:49Z")

</div>

I have just extracted the token and new one is different from the token that was used initially. Now I have a new error message during the Lamp setup: **device.eyeCareMode is not a function**  
It looks like that the token is correct and we have another bug in the code. The error message is different from one I faced initially last year.  
I will try to have a look into the code.

---

<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:** [July 14, 2019, 5:36pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/403 "2019-07-14T17:36:47Z")

</div>

Could you try again using the latest version from Github. Just pushed some changes to Github.

---

<div class="post-metadata">

**Author:** ![Flight777](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/flight777/32/2129_2.png) [@Flight777](https://community.homey.app/u/Flight777)\
**Post date:** [July 14, 2019, 6:00pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/404 "2019-07-14T18:00:08Z")

</div>

To continue the conversation from GitHub 😉

Recently the app does not recognise or refind my Yeelight Desk Lights anymore, even after multiple resets of the device ( **and enabling LAN mode in the Yeelight app** ) it is not finding it…

All other Yeelight devices are still OK.

---

<div class="post-metadata">

**Author:** ![AlexVVVx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexvvvx/32/13190_2.png) [@AlexVVVx](https://community.homey.app/u/AlexVVVx)\
**Post date:** [July 14, 2019, 6:44pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/405 "2019-07-14T18:44:57Z")

</div>

Great! It is working!  
Not perfect but I can turn on//off the lamp and change brightness.  
The problem is that the application icon is getting gray in about 5 second after last activities and brightness bar is reset to 0. But when I touch controls they are become active again.  
Looks like we are moving in the right direction.  
Please let me know if you need any other assistance from my side.

Thank 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:** [July 14, 2019, 7:43pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/406 "2019-07-14T19:43:14Z")

</div>

Could you try restarting the app and then try to pair again. And is the Yeelight on the same LAN as 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:** [July 14, 2019, 7:44pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/407 "2019-07-14T19:44:30Z")

</div>

Could you run the app with `athom app run` and let me know if the console gives you any more hints why the device shows as offline after 5 seconds.

---

<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:** [July 14, 2019, 8:00pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/408 "2019-07-14T20:00:48Z")

</div>

> [@Flight777](#):
>
> and enabling LAN mode in the Yeelight app

Question  
I do not see the Philips Eye Care2 lamp in the Yeelight App. So, I can not set the LAN mode. Is that required?

---

<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:** [July 14, 2019, 8:01pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/409 "2019-07-14T20:01:46Z")

</div>

> [@Phuturist](#):
>
> Could you try again using the latest version from Github. Just pushed some changes to Github.

I can check this too, tomorrow. Thanks @Phuturist

---

<div class="post-metadata">

**Author:** ![AlexVVVx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexvvvx/32/13190_2.png) [@AlexVVVx](https://community.homey.app/u/AlexVVVx)\
**Post date:** [July 14, 2019, 8:23pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/410 "2019-07-14T20:23:02Z")

</div>

I see nothing special in the console:

C:\temp\com.xiaomi-miio-master\>athom app run  
✓ Pre-processing app…  
✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
— App size: 4.14 MB  
✓ Installing Homey App on `Homey` ([http://192.168.142.188:80](http://192.168.142.188:80))…  
✓ Homey App `com.xiaomi-miio` successfully installed  
✓ Running `com.xiaomi-miio`, press CTRL+C to quit  
— Profile your app’s performance at [https://go.athom.com/app-profiling?homey=5aa77f6e973aff2c0d896239&app=com.xiaomi-miio](https://go.athom.com/app-profiling?homey=5aa77f6e973aff2c0d896239&app=com.xiaomi-miio)  
─────────────── Logging stdout & stderr ───────────────  
2019-07-14 23:14:00 [log] [XiaomiMiioApp] Initializing Xiaomi Mi Home 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:** [July 14, 2019, 8:40pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/411 "2019-07-14T20:40:58Z")

</div>

Did you let it run for some time? If the device offline it should surely spit something onto the console log. I have uploaded a new version on Github that might give more information.

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

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