Can PLEG detect multiple sensor state changes within specified time interval?

I had an idea of triggering a scene if I could detect alarm door sensor triggered n times within specified time internal. I automated curtain rod, and while it closes at night automatically with PLEG, I thought I could make it open if I would open our bedroom door say twice within 10 sec. Is something like thank possible with PLEG?

Does anyone have any suggestions how this could be accomplished?

Have you seen PLEG Basics?

You could do this using a Multiple Trigger expression:

Triggers
Door Door sensor is tripped

Conditions
AutoOpen Door @ 2 < 10

Actions
AutoOpen Curtains Open action

This did the trick. Thanks for your help, and I’ll refer to PLEG pdf in the future.