# Impossible to add my Xiaomi gateway v3

**URL:** <https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214>\
**Category:** Questions & Help\
**Created:** [August 31, 2020, 4:58pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214 "2020-08-31T16:58:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Mottaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yann_mottaz/32/28597_2.png) [@Yann\_Mottaz](https://community.homey.app/u/Yann_Mottaz)\
**Post date:** [August 31, 2020, 4:58pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/1 "2020-08-31T16:58:21Z")

</div>

Hi,

I have tried to connect my Xiaomi gateway V3 to both apps “Xiaomi Mie Home” (the one in appstore) and “Mi Homey” (installed through CLI-method). But no success.  
I have been able to find the token - but using the generate passoword-method in the apps does not work.  
The process run but in the end I don’t have the password (capture enclosed)  
I saw a lot of discussions about this problem but some are really old.  
Maybe someone found a solution?

Thanks in advance !

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/102ac5317fded8dbdf8218743d563f23072ebc88.jpeg)

---

<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:** [August 31, 2020, 6:15pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/2 "2020-08-31T18:15:03Z")

</div>

What is the MAC adress of your gateway?

---

<div class="post-metadata">

**Author:** ![Yann\_Mottaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yann_mottaz/32/28597_2.png) [@Yann\_Mottaz](https://community.homey.app/u/Yann_Mottaz)\
**Post date:** [August 31, 2020, 6:31pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/3 "2020-08-31T18:31:47Z")

</div>

Hi,

This is the Mac : 64:90:C1:7A:20:FD

---

<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:** [August 31, 2020, 7:35pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/4 "2020-08-31T19:35:43Z")

</div>

That is good news…

 ![IMG_20200831_213444](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/28d5dd58c5fc0950f9cb0474c6c41f532d0e29ef.jpeg)

> [@Mi Homey](https://community.homey.app/t/mi-homey/19816/155):
>
> I have been struggling to connect my Xiaomi Gateway to Homey. And failed… Om the Home Assistant forum I found the reason (my gateway’s MAC is mentioned…) Source: [https://www.home-assistant.io/integrations/xiaomi\_aqara](https://www.home-assistant.io/integrations/xiaomi_aqara) If your gateway’s MAC address starts with 04:CF:8C or 7C:49:EB , there is a good chance that the required port 9898 is closed on your gateway (you can check it with the Nmap utility, using the command sudo nmap -sU {gateway\_ip} -p 9898 ). To fix that issue, you need to do …

---

<div class="post-metadata">

**Author:** ![Yann\_Mottaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yann_mottaz/32/28597_2.png) [@Yann\_Mottaz](https://community.homey.app/u/Yann_Mottaz)\
**Post date:** [August 31, 2020, 7:45pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/5 "2020-08-31T19:45:05Z")

</div>

Yes and no, cause in the end I still don’t know what is the problem / solution 😉

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [August 31, 2020, 11:20pm UTC](https://community.homey.app/t/impossible-to-add-my-xiaomi-gateway-v3/34214/6 "2020-08-31T23:20:56Z")

</div>

click on the “Mi Homey” link above, there is the answer.
