Hi there. I am experiencing the same issue. I did some tests and the integration works well when HA and the Xiaomi device are in the same VLAN. When on different VLANS, the autodiscovery works but the integration cannot be configured. Note that the integration was working before 112.0 from YAML so I believe fix should be around parameter setting from the Integrations UI.
I have two gateways, in both I can see:
Version no. 272
fw ver: 1.4.1_176
model: lumi.gateway.v3
Both worked untill 0.111, now one is working without any problem, the other one is discovered but canât connect.
Iâve double checked, I canât find any difference beetween them.
If I remove the connected gateway, still canât connect the other one. Itâs like if the problem is on that specific device.
In logs I can see, every 70seconds: 2020-07-16 00:03:11 ERROR (Thread-5) [xiaomi_gateway] Unknown gateway ip 192.168.21.22
Rolling back to 0.111, the device works again.
In the meanwhile Iâve setted up a new HassIO that will replace my old Home Assistant Core on Docker, and the situation is the same.
Iâve solved connecting the gateway on the same accesspoint of the working gateway. For now, after configuration, connecting back the gateway on the original accesspoint, itâs still working.
No idea the reason, I have a plan network without vlan, hope it could be usefull to someone, if have have similar problem.
Letâs see if I can clarify because Iâm afraid I donât quite understand the solution. Here is a small diagram of my network, any problem here that may affect the connection to the gateway or HASS? Thanks!
There should not be any problem, because I can see just a single broadcast domain in your LAN.
But you could try to connect the Raspberry directly on the wifi router and have a try.
I have two gateways like the first one of your images. Try to check in Xiaomi Home App, select you gateway, tap [âŚ], tap [About], finally tap [Hub Info].
In my gateways I see:
Version no. 272
hw ver: 0220
fw ver: 1.4.1_176
model: lumi.gateway.v3
Letâs check if you have some difference from mine.
First of all. You guys are needs to check the 4321 & 9898 port of your xiaomi gateway.
Please using NMAP with command ânmap -sU -p 9898,4321 your xiaomi gateway IPâ
If you cannot find âopenâ signal from that comman.
My knowledge of this has come to a dead end here. The ports are closed; I may try to solve it with the article you mention but I donât know if itâs worth it.