Need help to run Sonoff zigbee motion sensors SNZB-03 locally

Is anyone using Sonoff zigbee motion sensors (SNZB 03)? I am trying to make them run locally, currently I am using Zigbee Motion Detector as DTH which runs on cloud. I have tried two more DTHs - SmartSense Motion Sensor and SmartSense Motion, sensors work locally for a while, but they eventually go offline. Is there a way to make them run local? On a side note, Sonoff zigbee contact sensors (SNZB 04) run locally out of the box. Any help is appreciated, thanks in advance!

I am also using Zigbee Motion Detector as DTH which runs in the cloud. It was the only one that seemed to work long term.