Zegbee magnetic switch

Hi, I have installed many zb magnetic switches buy some after some time comes offline and I cannot check the staus and the log.

I put online again but this Is a loop, they back offline, some come beck online when status change miving the magnet.

Why this situation, there Is a solution ?

Thanks!!