Very good explanation here.
I don’t think so, at least not with Xiaomi. I’ve heard reports of IKEA Tradfri working with Philips Hue gateway, but then stopped working after firmware upgrade.
I wouldn’t take that as a given.
Although long, this topic has valuable info on Xiaomi sensors and HA.