Xiaomi & Aqara Devices - Pairing & Keeping them connected

There is also a SmartThings solution called Mi Connector, though it requires an API Server running on Docker:

When Mi Connector is used with a Xiaomi Gateway, the LAN Communication Protocol developer option does need to be enabled and the Mi Connector API server uses UDP to communicate with the gateway.

Also very interesting is that the Mi Connector solution opens up the control / interaction with other non-ZigBee Lumi / Xiaomi / Aqara / MiJia smart home devices.

However, there are some potential disadvantages:

  • All of the device handlers and smart app would need to be ported to/adapted for use with Hubitat - with the author's permission

  • English is not the first language of the author of Mi Connector, and it may be a challenge to communicate through technical issues in porting the code.

  • Although turning on the LAN Communication Protocol developer option on a Xiaomi gateway does enable direct local LAN communication with Xiaomi devices vis-a-vis the gateway, the WAN connection still remains and the gateway still "phones home" to servers in China for iOS / Android app control and interaction.

  • The Xiaomi hub is limited to connecting to 32 ZigBee end-devices. To increase that limit, only Xiaomi / Aqara mains-powered wall switches can be used as repeaters. Also important for people in the USA: to my knowledge, there's only one model of Aqara wall switch that is suitable for use with 60Hz / 110-120V power.

2 Likes