I think I am going to try. Spent so long try to sort issues with not getting values through on Openhab even though everything showed as online and autodiscovered!
I have now, in one last desperate attempt, unplugged the ethernet cable from my Pi and used the Wifi to connect it, suddenly it all starts working.
My questions is then, do I now HAVE to use Wifi for my Pi?! Surely thats not right. Anyone using Unifi and Openhabian I’d love some advice. All other bindings work fine on Ethernet, but Xiaomi is a no go.
Which other bindings (devices) do you have, on WiFi?? (wild guess, none).
Anyway - What Unifi Accesspoint are you running. How did you configure it (them). How many LAN´s do you have? If you´r having more than one AP, do they use the same SSID. Are you using the same SSID for 2G and 5G. Perhaps the xiaomi gateway connects to a different SSID.
In the other thread you mentioned UFW… I suspect you mean the Unifi firewall. Or unifi controller??
In previous posts (why did you start a new topic? does not really improve the overview) his Xiaomi things showed up as online. This should mean there is no IP visibility issue. Do you have any firewall rules active like only certain ports are allowed to communicate from WIFI to LAN and visa versa.
Could you provide a screendump of your LAN setup from the Unifi controller as well as your firewall rules?
As Vincent indicate, it may seem there is a problem with the LAN(s), and it might as well be two different LAN´s you havn´t bridged. BUT, in that case I would assume other WiFi devices would have problems as well. This indicate you may have a firewall rule, which exclude some ports.