TS0203 Tuya door/window sensor

A newbie here trying to get a Tuya door sensor to stay up and running. becomes unavailable after a while and doesn’t register again after that. Using the native ZBT-1 zigbee usb with an HA green. No tuya account- straight connection with ZHA. Any suggestions what I’m doing wrong?