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

<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 19, 2020, 3:06pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/638 "2020-06-19T15:06:59Z")

</div>

I’m not developing this app anymore. Ownership has been transferred to @Maxmudjon

---

<div class="post-metadata">

**Author:** ![basvanderploeg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basvanderploeg/32/83556_2.png) [@basvanderploeg](https://community.homey.app/u/basvanderploeg)\
**Post date:** [June 20, 2020, 7:36pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/639 "2020-06-20T19:36:23Z")

</div>

I’m trying to add the Xiaomi Air Purifier 3H to Homey using the Mi Home Homey app.I got the right token and ip address, but get the following error:

`device.power is not a function`

The token is right, since it’s working perfectly with the Xiaomi Air Purifier Homebridge plugin.

Maybe this can help… The specific model is as follows:

```
"model":"zhimi.airpurifier.mb3"
"spec_type":"urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-mb3:1"
```

---

<div class="post-metadata">

**Author:** ![Bazs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bazs/32/19304_2.png) [@Bazs](https://community.homey.app/u/Bazs)\
**Post date:** [June 25, 2020, 7:46pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/640 "2020-06-25T19:46:31Z")

</div>

Same issue. Token and IP address is OK. @Maxmudjon

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [June 25, 2020, 10:58pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/641 "2020-06-25T22:58:27Z")

</div>

I got also problems with connecting my S5 Max to Homey. Got the IP and Token. When i press the “test connection” button i get the fault code “device.getState is not a function”

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [June 26, 2020, 9:53am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/642 "2020-06-26T09:53:44Z")

</div>

For now i connect te roborock S5 MAX to Node Red, and via MQTT i can controle the roborock.

For now i am happy 😇

---

<div class="post-metadata">

**Author:** ![Crashy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/crashy/32/7688_2.png) [@Crashy](https://community.homey.app/u/Crashy)\
**Post date:** [June 26, 2020, 12:53pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/644 "2020-06-26T12:53:01Z")

</div>

How did you manage this? I’m curious!

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [June 26, 2020, 2:51pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/645 "2020-06-26T14:51:42Z")

</div>

my english is not verry good but i try to explane it.

I already use Node Red on a rasberry for my dashboard. I have installed this on node red [node-red-contrib-miio-roborock (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-miio-roborock)

There u can controle the roborock with the IP adres and the token. U get 2 node’s, one for control and one to read the status of de roborock.

It’s verry easy to set it up (if u already have a raspberry and node red installed on it…

If u wanna no how to instal node red and mqtt u can look at this topic

> [@Node Red: A widget based dashboard working with Homey trough MQTT](https://community.homey.app/t/node-red-a-widget-based-dashboard-working-with-homey-trough-mqtt/18798):
>
> I really wanted a dashboard in the wall to control everything I want. Last couple of week’s I’ve discovered homey-dash. Great I thought, and build an old iPad 2 inside the wall. Sadly, the dashboard was very limited. I could only start some flows, and control some switches. To see information on some devices, I needed to press them several times, and to use a slider I needed to long press a device. I thought I could adjust my electric blinds, but sadly the slider didn’t work for …

I hope u understand my bad english 🤪

---

<div class="post-metadata">

**Author:** ![Crashy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/crashy/32/7688_2.png) [@Crashy](https://community.homey.app/u/Crashy)\
**Post date:** [June 29, 2020, 9:40am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/646 "2020-06-29T09:40:20Z")

</div>

Thanks, I understand, I have Domoticz running on a Pi, so i’ll look into it!

---

<div class="post-metadata">

**Author:** ![Marcus\_Fasth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_fasth/32/16659_2.png) [@Marcus\_Fasth](https://community.homey.app/u/Marcus_Fasth)\
**Post date:** [June 29, 2020, 11:14am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/647 "2020-06-29T11:14:32Z")

</div>

Same problem here and no response from dev.

---

<div class="post-metadata">

**Author:** ![Bkam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bkam/32/18533_2.png) [@Bkam](https://community.homey.app/u/Bkam)\
**Post date:** [July 1, 2020, 4:56pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/648 "2020-07-01T16:56:12Z")

</div>

Some thing must have happens last update with homey , before that i have all my fans in homey , but now i get “Could not connect to device, handshake timeout” tried 3 diffrent fan all “model”:“zhimi.fan.za3”, when i try and add them agan

---

<div class="post-metadata">

**Author:** ![Crashy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/crashy/32/7688_2.png) [@Crashy](https://community.homey.app/u/Crashy)\
**Post date:** [July 7, 2020, 2:24pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/649 "2020-07-07T14:24:02Z")

</div>

So, I have found a solution to automate the Roborock S5 Max with Homey, although it’s sort of a weird workaround, but it works 🙂

I took the following steps:

1. connect the Roborock to the Roborock official app (instead of the Mi Home app)
2. Connect the Roborock service with google assistant
3. record your own voice saying: Hey google, Start Cleaning
4. Upload your recording to Soundboard on Homey
5. Create a flow to play the soundboard file on Sonos and voila!

Again, this is by far a solution, but it is possible to automate the start cleaning process of the Roborock S5 Max - I still have to create some flows for instance, if we are away for an hour, and there hasn’t been any cleaning the last two days, because I don’t want the robot to start cleaning when I just go to the store (60 minutes or less).

Sidenotes:

- I have 2 Sonos speakers in the same room, one of them plays the recording, the other one “listens” to the Hey Google sound - offcourse also works with other Hey Google commands.
- It didn’t work for me to use the above solution on one Sonos device, so you do need two in the same room (in my case, kitchen is the “player” with volume to 50% and the living room is the “listener”
- Stopping or docking the robot is still a bit difficult, because when the robot is cleaning, the Sonos Beam finds it harder to hear the (recorded) voice…
- only starting a (full) clean is possible by using google assistant, not zone or room cleaning (yet hopefully).

Hope this helps some people…

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [July 7, 2020, 7:33pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/650 "2020-07-07T19:33:47Z")

</div>

**Problem connecting Aqara gateways.**

Hi guys. troubles here. I disconnected my aqara gateways, and now I cannot add them anymore.

- Do they need to be in the same wi-fi network? One of them is, two of them are not. I cannot add any of them. I always get the message "wrong ip address or device offline  
 ![Screenshot_20200707-212819](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/f/1ff0fb573b08d01410f766a177f2e334f7608ff0.jpeg) ![Screenshot_20200707-213145](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/4474905931076a45cfb8e47e31ef2d595a6cf1bf.jpeg)

My homey is SWV 4.2.0  
The aqara gateway is SWV 1.4.1\_176.0220

Since all of my Xiaomi & Aqara zigbee nodes are connected to homey through my gateways, nothing is working at the moment ☹  
Help needed, WAF is free falling…

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [July 7, 2020, 8:12pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/651 "2020-07-07T20:12:02Z")

</div>

The newer gateways, have a closed 9898-port.  
to open the port:

> **[\[SOLVED\] Openhab2 - Xiaomi Mi Gateway - does not respond](https://community.openhab.org/t/solved-openhab2-xiaomi-mi-gateway-does-not-respond/52963/266)**
>
> So. I´m back. I managed to get the xiaomi gatway v3 connected to openhab. I know it´s solved already, but I found it hard to follow as an absolute beginner. That´s why I will explain it again so that maybe more beginners are confident to try. ...

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [July 8, 2020, 7:39am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/652 "2020-07-08T07:39:17Z")

</div>

Will the roborock s5 max also work with this app?

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [July 8, 2020, 1:18pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/653 "2020-07-08T13:18:12Z")

</div>

> [@Arjan-21](#):
>
> s5 max also work with t

For me, it works. You will have to download the old xiaomi app to easily have access to the token.  
You can find the app here:

> [@Xiaomi Mi Roborock S50 vacuum cleaner token](https://community.homey.app/t/xiaomi-mi-roborock-s50-vacuum-cleaner-token/2516/23):
>
> Yes, Modified app to find the token: [https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing](https://drive.google.com/drive/folders/18OyC78peggCdiMmmT7i5bpvpdMJl1Ec1?usp=sharing) You do not need to be on the “china mainland” server.

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [July 11, 2020, 8:39am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/654 "2020-07-11T08:39:57Z")

</div>

Unfortunately it only works for android.

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [July 11, 2020, 1:47pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/655 "2020-07-11T13:47:39Z")

</div>

I’ve tried an other way to access the token (with iOS back-up etc.)

But when I wanna add the roborock in the Xiaomi mi home app as a mi robot (I don’t know or that is correct). I get the message: could not connect the device. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [July 12, 2020, 8:55am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/656 "2020-07-12T08:55:48Z")

</div>

> [@Arjan-21](#):
>
> get the message: could not connect the device. What am I doing

Try the Mi Homey app. You will have to install using the CLI method. this one works just fine for me

> [@Mi Homey](https://community.homey.app/t/mi-homey/19816):
>
> Hi, could you add my app to work with zigbee Xiaomi devices. The main difference from other simular apps 1.zigbee Xiaomi devices connect with Homey through Mi Getaway without using Mi cloud 2.thete are no limits on the amount of connected zigbee devices because you can have several Mi Getaways and distribute all of zigbee devices among them. When you connect more than 20 devices directly to Homey - some problems might occur and delays 3.all the scenarios are processed particularly in Homey wi…

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198):
>
> Homey Pro only!!! It does not work this way with Homey (cloud), it only supports CLI run which is there only for development purposes. Installing Node.js Check Node.js version on Homey: Homey App: Settings - General - About - Node.js version Download Node.js (use Homey’s version or higher) from [https://nodejs.org/](https://nodejs.org/) and install it on your computer. Download the app you want to install from GitHub Go to the repository on [GitHub](https://github.com/) (the correct link for the app you want to install is at the bottom…

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [July 12, 2020, 11:03am UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/657 "2020-07-12T11:03:10Z")

</div>

In the top post it say  
Quote: “ no need to delete the device from the mihome app”

For the xiaomi app, do I need to delete the vacuum in the app on my phone and reset the WiFi?  
I like the roborock app more than I like the mihome app. Is there a way to use that app to make rooms and the map and than connect it to the homey.  
Or am I thinking wrong

I will try this way as well.

---

<div class="post-metadata">

**Author:** ![Arjan-21](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arjan-21/32/27181_2.png) [@Arjan-21](https://community.homey.app/u/Arjan-21)\
**Post date:** [July 15, 2020, 6:59pm UTC](https://community.homey.app/t/app-pro-xiaomi-mi-home-app/118/658 "2020-07-15T18:59:44Z")

</div>

I’ve install the Mi home app (CLI method) on my homey. But when I wanna add my roborock, there is now way to push connect and I get the message “not connected”

 ![IMG_3193](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a24557d4ae6509984f23a90bcfd077b8badf0e7c.jpeg)

I tried it again with the Xiaomi app, but I see three messages. “handshake time-out” & “Device getState is not a function” & “network request failed”. I don’t see it on the same time.

Am I doing something wrong or do I forget something (like reset wifi or something else)?

Thanks for your help

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

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