Zigbee devices work for sometime and then suddenly stop working

Have you tried the latest script? It will self update, so you should just need to rerun what you have to get the latest. I added the Zigbee console.