Binding Xiaomi Mi home getway

Tags: #<Tag:0x00007fc3ed71f918>
  • Platform information:
    • Hardware: Laptop 8GB ram
    • OS: Windows 7

I am trying to bind the xiaomi Gateway v2 hub.
I followed the instructions here:
But it seems that it cannot find the getway.
The openhab and the getway in the same network.
I tried to click 3 times on the getway when click on “search” and still the item is not discovered.

What can I do?

I had to try mine two of three times before it worked.

I assume you put the app into dev mode and followed that process with entering the key etc?

I do not understand it.
There are 2 kind of xiaomi bindings :

  1. Xiaomi Mi IO Binding
  2. Xiaomi Mi Smart Home Binding

When I am adding the first binding it discover the getway but no sensor attached.
But I understand that I need the second binding.
So after I installed the second binding (Xiaomi Mi Smart Home Binding) nothing discovered.
What could be the probelm ?

Hi Inmar,

I’ve also just started with the Xiaomi Binding. As Crispin already said, it will only work if you follow the instructions on the Xiaomi Mi Smart Home Binding page. This is the only Binding you should need.

Especially important is that you enable the Developer Mode, and there note down the developer key AND turn On the switch to enable the WiFi functions.

All the best.

I am in developer and have the key.
But what are the steps to follow?
I installed the binding plug in of Xiaomi MI Smart binding and then what? The getway is not discovered in the Inbox :frowning:
Attached the info of the getway.
Maybe there is compatiability issue with getway v3 and OH?

This is not the page described in the binding setup, the required page does have the switch to enable the WiFi functions and the developer key stated underneath.

When you go back on the page you showed above and go into the option before or after going into this page, then you should get the correct page with the WiFi functions switch and the developer key.

Is your Gateway the HomeKit enable version currently on sale in Europe?

I attached the Hub info… the other page you talked about is attached now.
What do you mean by " HomeKit enable version "
I bought the getway from this link:

Yes, this is the correct page, with the wireless protocol turned on and the required developer key (aka password).

I got my fateway from China as well, and it also shows up as v3, same as yours. As far as I know the current HomeKit enabled version of the Aqara gateway does not allow this developer support and therefor inclusion into openHAB with the binding.

I created all my Things and Items through text files, but they also show up for me in the Inbox in PaperUI.

What exactly do you mean by “I tried to click 3 times on the getway when click on “search” and still the item is not discovered.” Do you see the gateway, but not the sensors in PaperUI?

I meant that after verifing that the wireless is on, that the getway and the HA are in the same network and after installing the binding of Xiaomi MI Smart Binding still nothing appears at the inbox.
When I installed the other binding “Xiaomi Mi IO Binding” the gateway ware found so I really don’t know what is the issue here …

I tried anything… even trying to click 3 times on the gateway… nothing worked for the Xiaomi MI Smart Binding

Ok, yes, this is weird. Now you have only the Xiaomi Mi Smart Home Binding installed, the Xiaomi Mi IO Binding is deactivated again, right?

Have you tried a restart with this configuration, after activating and deactivating the different bindings?

Also, as noted on the binding page:

  • The binding requires port 9898 to not be used by any other service on the system.
  • Make sure multicast traffic is correctly routed between the gateway and your openHAB instance

Have you checked the multicast traffic in your machine running openHAB, and can you see the regular heartbeat from the gateway?

Xiaomi Mi IO Binding is deactivated.
I tried to restart as well.

How can I know if " port 9898 to not be used by any other service on the system" ?
How can I make sure multicast traffic is correctly routed between the gateway and your openHAB instance?

I checked and there is a ping between the Ha and the Gateway.

Thank you for your help.

Have a go through the Troubleshooting section of the binding page, depending on your setup.

Hopefull this will narrow down the problems.

Great I will try to troubleshoot and update.