Zigbee - from flakey to stable

Sorry I can’t help you, but this person creates modules that supposedly work very well with Xiaomi sensors. Possibly he can help you find a solution?