Hello friends! I have a similar situation, like in https://community.nxp.com/t5/Wireless-Connectivity/zigbee-rejoin/m-p/1151456#M10135
I have 10 psc xiaomi door/window sensor, connected to gate, based on lumi (jn5169 chip). Software is Zigate firmware - https://github.com/fairecasoimeme/ZiGate
Problem was described in detail - https://github.com/fairecasoimeme/ZiGate/issues/349
Briefly, as a result, if the device did not show signs of life for 1-4 hours, then the coordinator will kick it out of the network and ask to restart it, but not all devices come back. In the exchange protocol, we see only a message about the exit from the network, but not about the fact that the exit was initiated by the coordinator himself.
Other xiaomi sensors (temp/humidity, occupancy sensor, etc) in my situation, based on jn5169 works well.
Can i modify Zigate Coordinator source code (based on JN-AN-1216) so that xiaomi door sensors NOT leave Coordinator (will rejoin instead leave)