Zone inactive for x minutes triggers, while there is motion, leaving me in the dark

The picture below shows that several messages “zone becomes active” are followed by one “zone becomes inactive. The first messages are triggered by a motion sensor, the latter ones by a contact sensor.

My zone becomes inactive after 1 minute. The time between motion on and off is set to 1 minute. I might have to set zone-inactivity to 2 minutes to give the motion sensor time enough to detect another motion.

@Peter_Kawa when in the dark, maybe you can log if motion is detected?