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

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 20, 2019, 8:46pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/206 "2019-02-20T20:46:35Z")

</div>

error: Could not connect to device, token might be wrong  
app version: 2.0.8.257 (ios)  
homey version: 2.0.2 (early 2019)  
xiaomi mi gateway: dgnwg02lm

---

<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:** [February 20, 2019, 8:48pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/207 "2019-02-20T20:48:52Z")

</div>

> [@Corvum](#):
>
> error: Could not connect to device, token might be wrong

Could you double check your token, perhaps it has recently been changed during a firmware upgrade of your Gateway. See here: [com.xiaomi-miio/docs/obtain\_token.md at master · jghaanstra/com.xiaomi-miio · GitHub](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md#method-3---obtain-xiaomi-gateway-device-token)

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 20, 2019, 9:14pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/208 "2019-02-20T21:14:08Z")

</div>

I’ve just generated it before trying… also as I mentioned I’ve checked it via raspberry and domoticz…  
I also tried to add using my android tab - the same 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:** [February 20, 2019, 9:35pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/209 "2019-02-20T21:35:48Z")

</div>

> [@Corvum](#):
>
> I’ve just generated it before trying… also as I mentioned I’ve checked it via raspberry and domoticz…  
> I also tried to add using my android tab - the same result

I do not have a clue then.

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 20, 2019, 9:54pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/210 "2019-02-20T21:54:36Z")

</div>

can the root cause be in port number? for domoticz I use 9898

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 21, 2019, 6:34am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/211 "2019-02-21T06:34:43Z")

</div>

hi, something wrong with connection between homey and gateway, I can prove it with screenshoots:  
(homey and mi gw are connected to the same wifi, homey has static local ip 192.168.1.20, mi gw - 192.168.1.24)

 ![Screenshot_20190221-082252_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d4bf963a65baf0c221a116bea6eb8c617a65dec4.jpeg) ![Screenshot_20190221-082307_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9608787d39b169d224fd9dccae040a7f91da5883.jpeg) ![Screenshot_20190221-082325_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4363c05491aa4a1759477b1434e20b86c46d166f.jpeg) ![Screenshot_20190221-082649_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/dcba556c9364f07f2b2f35261a4ac4b31bd7b98e.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:** [February 21, 2019, 7:02am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/212 "2019-02-21T07:02:25Z")

</div>

You are using the password instead of the token. The token is shown on screenshot 2. Use that and it will work. If you followed the instructions I send you would already have this working.

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 21, 2019, 7:06am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/213 "2019-02-21T07:06:55Z")

</div>

oh, thanks a lot, now it works 🙂

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 21, 2019, 8:46am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/214 "2019-02-21T08:46:13Z")

</div>

regarding xiaomi ir remote device:  
here it is present in supported devices list:

> <https://github.com/rytilahti/python-miio/blob/master/README.rst#supported-devices>

  
can this lib be helpful for you?  
p.s. I can support you with testing and also can share scripts from domoticz

---

<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:** [February 21, 2019, 12:04pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/215 "2019-02-21T12:04:18Z")

</div>

> [@Corvum](#):
>
> can this lib be helpful for you?

I’m aware of this but this is a python library. Implementing it in the nodejs miio library will be a lot of work and I’m not even sure if my coding skills are good enough for this. So it’s not very high on my to-do list.

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 21, 2019, 1:46pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/216 "2019-02-21T13:46:56Z")

</div>

i see, thanks ☹  
could you please add to yeelight bulbs check status not only by on/off but by dim(brightness) level as well? It’s possible to get this info from bulb as I know.

---

<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:** [February 21, 2019, 1:49pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/217 "2019-02-21T13:49:49Z")

</div>

> [@Corvum](#):
>
> could you please add to yeelight bulbs check status not only by on/off but by dim(brightness) level as well

Depending on the type of bulb and it’s capabilities this is already implemented in the app. If you have added a bulb that has these capabilities but they are not shown under the device card (even after swyping left and right) please let me know which bulb you have.

---

<div class="post-metadata">

**Author:** ![Corvum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/corvum/32/13168_2.png) [@Corvum](https://community.homey.app/u/Corvum)\
**Post date:** [February 21, 2019, 2:31pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/218 "2019-02-21T14:31:13Z")

</div>

mmm, yep, you are right but I mean yeelight card has it on “flow device adding” screen, please see attached screenshot (xiaomi rgb yeelight bulb)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/967b8e339abd5d5c3d9e3b23339701d0f5b13f26.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:** [February 21, 2019, 2:56pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/219 "2019-02-21T14:56:16Z")

</div>

This is default Homey functionally. You can use the logica condition cards and check the values which are available as tokens

---

<div class="post-metadata">

**Author:** ![Raytestrak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raytestrak/32/3299_2.png) [@Raytestrak](https://community.homey.app/u/Raytestrak)\
**Post date:** [February 22, 2019, 11:40am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/220 "2019-02-22T11:40:03Z")

</div>

Is support for the [Xiaomi doorbell](https://www.xiaomitoday.com/360-smart-doorbell-vs-xiaomi-zero-intelligent-video-doorbell/) possible? It’s only 44 euros (a steal compared to i.e. Nest doorbell), but I’m having trouble finding which protocol it uses.

---

<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:** [February 22, 2019, 11:57am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/221 "2019-02-22T11:57:32Z")

</div>

> [@Raytestrak](#):
>
> Is support for the [Xiaomi doorbell](https://www.xiaomitoday.com/360-smart-doorbell-vs-xiaomi-zero-intelligent-video-doorbell/) possible?

Possible yes but probably not gonna happen. The miio library used to communicate with Mi Home devices is not maintained anymore so I dont expect support for this device will be added.

---

<div class="post-metadata">

**Author:** ![Ruskie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruskie/32/13911_2.png) [@Ruskie](https://community.homey.app/u/Ruskie)\
**Post date:** [February 22, 2019, 11:47pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/222 "2019-02-22T23:47:31Z")

</div>

Hi, thanks for adding the

Mi Home Bedside II

to the list of supported devices!!!

PS Any chance for an icon change 🙏, or are all Yeelights the same icon?

Another observation: Dim to 0% brings brightness to the lowest setting but DOES NOT turn the lamp completely off, while “Turn off” does turn it off.

---

<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:** [February 23, 2019, 6:30am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/223 "2019-02-23T06:30:59Z")

</div>

> [@Ruskie](#):
>
> PS Any chance for an icon change 🙏, or are all Yeelights the same icon?
> 
> Another observation: Dim to 0% brings brightness to the lowest setting but DOES NOT turn the lamp completely off, while “Turn off” does turn it off.

I’ll see what I can do about the icon.

What is the observation about dim and turnoff. Seems quite logical that turnoff actually turns off the light while dim does not. Are you expecting different behavior?

---

<div class="post-metadata">

**Author:** ![Ruskie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruskie/32/13911_2.png) [@Ruskie](https://community.homey.app/u/Ruskie)\
**Post date:** [February 23, 2019, 7:36am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/224 "2019-02-23T07:36:56Z")

</div>

Dim to X% would bring brightness to X over the set amount of time. Dim to 1% would bring the bulb to the minimum brightness without turning it off. Dim to 0% should fade the light out completely.

The difference with turning it completely off is “turn off” is instantaneous, while “dim to” gives you the opportunity to set a time period over which it happens.

In fact, my Zigbee Aqara bulb expectedly behaves just like that when “dimmed”. The behavior of Athom’s very own Philips Hue app “Dim to” is also like this, ie Dim to 0% will fade the bulb out over Y secs.

Now, having said all that, there is a “Change brightness over time” action, which seems to overlap with “Dim” in its function.

But, even within the Mi Home app, for Philips Zhirui bulbs this option to “Change brightness over time” is not available at all, so to slowly fade the light out instead of turning it off instantly you have to do two cards instead of one:

1. Fade to 1%
2. Turn off

instead of just one “Dim to 0%”

So perhaps realising the “Dim to 0%” equals “Turn off completely over Y seconds” function would make user experience more consistent across apps and within the Mi Home app itself.

Thanks

---

<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:** [February 23, 2019, 7:54am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/225 "2019-02-23T07:54:10Z")

</div>

> [@Ruskie](#):
>
> So perhaps realising the “Dim to 0%” equals “Turn off completely over Y seconds” function would make user experience more consistent across apps and within the Mi Home app itself.

Please submit a feature request on Github and I’ll see what I can do when I have more time.

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

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