The original post used a trigger based on a door sensor… is there a door sensor as well as the motion sensor? If so, you might want to consider:
The original post used a trigger based on a door sensor… is there a door sensor as well as the motion sensor? If so, you might want to consider: