These are the mijia Hub Gateway devices Compatible with all servers

mijia gateway gen 2

1. Mijia multi-function gateway 2 v2 gen 2

Product model:DGNWG02LM.   v2  (Chinese version)
internal model:lumi.gateway.v2, lumi.gateway.v3
Product Name in Mi Home App:Mi Control Hub

This gateway only supported the Zigbee 1.2 protocol

|Mi Home app|yes|
| — | — | — | — |
|Aqara Home app|no|

Xiaomi Gateway (Aqara)
https://www.home-assistant.io/integrations/xiaomi_aqara

or

Xiaomi Miio
https://www.home-assistant.io/integrations/xiaomi_miio

or
xiaomi home integration

It uses a Chinese style plug, and it only works well if you set it to the Chinese server. in mi home app.

To enable developer mode or so called “LAN function” in Xiaomi Gateway 2 after the ability to do this was removed from Xiaomi Home App, use xiaomi-cloud-tokens-extractor and miiocli tools.
https://community.home-assistant.io/t/not-able-to-get-xiaomi-gateway-key/61795/289?u=msly

c#
C# Library supports **only Gateway version 2 (DGNWG02LM)
https://github.com/sergey-brutsky/mi-home

2.Mijia multi-function gateway 2 gen 2 Region releases

Second version 2016-now, in webshops often refered to as the “upgraded version”. The number indicates its region (02 through 05), with each region their corresponding plugs.
The 02 model is only meant for China, but supports the most devices.

Product model:DGNWG02LM.(Chinese version)  v2
internal model:lumi.gateway.v3

Product model:DGNWG03LM.    v2
internal model:lumi.gateway.mitw01

Product model:DGNWG04LM  v2
internal model:lumi.gateway.mihk01
Product model:DGNWG05LM(Europe version). v2
internal model:lumi.gateway.mieu01
Zigbee chip:JN5169
The European version of the gateway mieu01 from Xiaomi, with a European plug

(lumi.gateway.miXX01) mitw01,mihk01,mieu01

region - sg

Product model:DGNWG04LM  v2
internal model:lumi.gateway.mihk01
Firmware: 3.5.9_004

https://www.home-assistant.io/integrations/xiaomi_miio

region - hk

HK - 米家多功能智能網關
https://www.mi.com/hk/mi-control-hub/

2016 年 11 月 29 日起,「小米多功能智能網關 」 正式切換為 「 米家多功能智能網關 」
除了將logo由 “ MI ” 更新成 “ ” 之外,產品外觀和功能均無任何變化

網關插入插座通電
打開米家 App,
點選右上角 「+」 增加米家多功能網關
加入成功後,根據 App 提示綁定其他智能配件

accessories

https://buy.mi.com/hk/accessories/315

These gateways above only supported the Zigbee 1.2 protocol

Note
These devices were produced 6 or 7 years ago, which are hard to buy, and the latest XiaoMi devices are not in the catalog.

useful links

https://community.home-assistant.io/t/not-able-to-get-xiaomi-gateway-key/61795/292?u=msly