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

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 1, 2018, 7:53am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/104 "2018-11-01T07:53:46Z")

</div>

Haven’t had chance to do this yet, but I’ve now changed my network to a new mesh WiFi setup and am back with all devices showing offline

So IP address on them all has changed but in theory nothing else  
Yeelight app finds them  
Alexa finds them  
Homey shows them as offline

Edit: Just to add - no new devices found when I run a scan, so it’s not that they’ve reset themselves

---

<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 1, 2018, 10:48am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/105 "2018-11-01T10:48:31Z")

</div>

> [@vaderag](#):
>
> So IP address on them all has changed but in theory nothing else  
> Yeelight app finds them  
> Alexa finds them  
> Homey shows them as offline

Well, you can’t compare my amateur coding skills with these companies. Once a light is saved within Homey it’s saved with the corresponding IP address. Once this changes the connection is broken, apparently the Yeelight app and Alexa do a new discovery to update changes in IP address. This is currently not built into my app. I’ll see if I can add this somewhere in the future but it’s not too high on my priority list.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 1, 2018, 11:18am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/106 "2018-11-01T11:18:14Z")

</div>

Ah, this probably explains a lot of the issues then…  
If it’s based on IP address then we all probably need to assign static DHCP routing to these devices too?  
Surprised this hasn’t been an issue for more people!

Also, just to add, not criticising your coding at all - appreciate all the work on the app - just really really frustrated as I’ve been through my 30 odd flows twice now only for the devices to disconnect and be b0rked again!

Edit: @Phuturist is there any way for me to update the IP address of the device? (maybe even via CLI?) to save me having to redo all my flows again!?

Edit2: Also, can you tell me how I can add these devices now? I have tried to add them again via the devices and even after having removed the old one it’s not finding the bulbs (LAN mode is on…)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6aec67e8217dfede3aa28b5da75ec38cb1a42d7f.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:** [November 1, 2018, 7:35pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/107 "2018-11-01T19:35:56Z")

</div>

> [@vaderag](#):
>
> Edit: @Phuturist is there any way for me to update the IP address of the device? (maybe even via CLI?) to save me having to redo all my flows again!?
> 
> Edit2: Also, can you tell me how I can add these devices now? I have tried to add them again via the devices and even after having removed the old one it’s not finding the bulbs (LAN mode is on…)

The IP is currently saved in the data object of the device. I dont think it’s possible to edit/update this any other way than with a Homey app. Seeying the issues you are having I will move this to the settings object and make it available for editing under the device settings. But that’s of no use to you right now.

Try restarting the app after removing the bulb before doing a new discovery. That should clean any temporary data which can cause the light to not be discovered.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 1, 2018, 8:22pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/108 "2018-11-01T20:22:34Z")

</div>

Thanks, that will be helpful I think!

I’ve tried restarting the app, to no avail ☹

Any other ideas?

---

<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 1, 2018, 8:56pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/109 "2018-11-01T20:56:16Z")

</div>

> [@vaderag](#):
>
> Any other ideas?

No I dont, sorry.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 1, 2018, 9:16pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/110 "2018-11-01T21:16:55Z")

</div>

😥😥

Guess I’m hard resetting them all again at the weekend

---

<div class="post-metadata">

**Author:** ![Sebastien](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sebastien/32/13801_2.png) [@Sebastien](https://community.homey.app/u/Sebastien)\
**Post date:** [November 2, 2018, 8:30pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/111 "2018-11-02T20:30:52Z")

</div>

Hello

I tried all the methods to find the token of the bridge, without success (1, 2, 3 …) and I realized that there was more simple: ( Activate the mode develloper)

**Android:**

**Gateway**  
…

1. About
2. Several click on plugin version
3. Hub Info

![Screenshot_20181102-210237_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/cad301142fe2ae64e7ed8ec509892ac4cb50fa7f.jpeg) ]!

 ![Screenshot_20181102-210248_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/8/8aa35acfcc182dcb9c0d083f6380219fa9b88e5b.jpeg) ]!  
 ![Screenshot_20181102-210316_Mi%20Home](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/cd08ab4ebef0f0cff6e200994806622eab020cd3.jpeg) !

Cordially

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 3, 2018, 7:49am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/112 "2018-11-03T07:49:56Z")

</div>

Just reset one and it’s STILL not being found ☹

Could it be due to the fact that they are on 192.168.1.x where as homey is on 192.168.0.x?

---

<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 3, 2018, 8:21am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/113 "2018-11-03T08:21:43Z")

</div>

> [@vaderag](#):
>
> Could it be due to the fact that they are on 192.168.1.x where as homey is on 192.168.0.x?

Yes, could very well be. The Homey app sends a discovery message during pairing. It will probably only be send in the same subnet.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 3, 2018, 8:41am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/114 "2018-11-03T08:41:22Z")

</div>

Any way to change that or brute force it?

I’ve had no issues getting Sonoff or any other devices to communicate this way, and having Homey on the different subnet is important for the security functions I use it for…

---

<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 3, 2018, 8:55am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/115 "2018-11-03T08:55:35Z")

</div>

> [@vaderag](#):
>
> Any way to change that or brute force it?

Don’t know, I’m not even sure that’s the case. You could look into it yourself though, the Yeelight api is well documented.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 3, 2018, 9:10am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/116 "2018-11-03T09:10:55Z")

</div>

> <https://github.com/vieira/homebridge-yeelight-wifi/issues/5>

Is this helpful? Couple of ‘solutions’ linked?

---

<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 3, 2018, 10:23am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/117 "2018-11-03T10:23:29Z")

</div>

> [@vaderag](#):
>
> Is this helpful? Couple of ‘solutions’ linked?

By the looks of it you could hardcode your subnet into the discovery function to have it look in that specific subnet. For this you would need to fork my repo and add it yourself in /lib/yeelight.js.

I did find out that it could also be a [router setting](https://stackoverflow.com/a/379043/1973685) and I have also added a specific command to could fix it as well. Could you try a CLI install and see if that fixes the issue already.

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

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 3, 2018, 10:41am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/118 "2018-11-03T10:41:48Z")

</div>

Thanks. Have family here this weekend but will try and have a go if I get chance (gotta actually work out what I’m going with the CLI as well!)

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 6, 2018, 5:23pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/119 "2018-11-06T17:23:11Z")

</div>

So, sorry to follow up on this, know I’m dominating the thread here, but wanted to let you know I have actually centralised my system with the mesh network doing all of the routing now so there is only one subnet being used for all devices… after resetting all my Yeelights once more (due to a new wifi change) fingers crossed everything seems to be working as hoped now

Thanks for the troubleshooting help - not sure we ‘fixed’ the actual issue but it’s certainly now fixed in my setup via simplification 🙂

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 12, 2018, 7:52am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/120 "2018-11-12T07:52:44Z")

</div>

NEW TOPIC 😉

@Phuturist

Are you able to advise what’s wrong with the flow below - doesn’t seem to be doing anything at all ☹

 ![Screenshot_20181112-075121](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fb0b2d176c86d20784b24e0a0a20c07f04bf6f27.png)

Am I using the card wrong?

I want it to light up to full over 30mins at 6.30am…

---

<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, 2018, 5:46pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/121 "2018-11-12T17:46:40Z")

</div>

> [@vaderag](#):
>
> doesn’t seem to be doing anything at all

Have you tested it with a shorter time range to see if your settings work? I just tested the card with Yeelight and it worked fine.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [November 12, 2018, 7:30pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/122 "2018-11-12T19:30:25Z")

</div>

Just tried and same… Nothing  
Even took the time conditions out to ensure that it’s not that, says passed but nothing

On off etc all work great

Edit. Just tried with one of my other bulbs, card seems to do nothing there either 😟

---

<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, 2018, 9:05pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/123 "2018-11-12T21:05:19Z")

</div>

> [@vaderag](#):
>
> Edit. Just tried with one of my other bulbs, card seems to do nothing there either

And are you sure your lights support a Kelvin temperature of 6500? Some Yeelights only go to 6000. Try setting it to 3500 for instance.

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

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