I have received my V2 Xiaomi (mijia) gateway today and have come to set it up in my HAAS HA but i keep getting an error every time i reset it and it says xiaomi-aqara could not be set up check my config.
I have as you can see got the key from the developer screen on an andriod device and toggled the Wireless communication protocol on but still nothing is happening.
I have also toggled the wireless communication off & on and and changed the password to no avail and have also removed the gateway from the mi home app, reset the gateway and added it again with no luck.
try adding the host: IP.IP.IP.IP in case your home router borks the multicast detection - this seems to be an issue for some people. (this also assumes you have a static IP allocated to the gateway - which you should)