Uses for Thaumaturgy cantrip 5e

I’m wondering about possible uses for the Thaumaturgy cantrip. Can it be cast on something that has a triggering action for it to go off? An example of what I am meaning is a shop owner casts it on the shop door. When the door opens a bell sounds. I’m thinking in this situation it would need to be recast each time the door opened. Another example would be if you are guarding a treasure and trying to catch a thief. Cast Thaumaturgy on the treasure and when the treasure is touched, and alarm goes off, or something. I haven’t found anything online about it. My DM says no, another DM I know says yes. I’m just looking for other thoughts or opinions.