Prevent repetition

Hi,
I have a door sensor connected to a pleg action, but I don’t want it to be firing all the time.
I would like it to fire once and then wait several seconds before it can fire again.

Is that possible with pleg?

Most certainly …

Input:
Trigger Some door sensor (or any trigger for that matter)

Condition:
DoAction Trigger @ 2 > 30

The above will only fire the DoAction condition when Trigger happens, if it has been more than 30 seconds since the previous Trigger.

I did what you suggested but now the conditions are always true.
Take a look at start_nap and end_nap

These two are always true no matter what, so it doesn’t work as expected.

As you can see nap_on nap_off and napTime are all false.

I just don’t understand.
The more I think I know about PLEG the less it seams…

And set repeat to on

Ok, thank you. I’ll try that.