This object is in archive! 

Rule exit delay time

Guido shared this question 8 years ago
Need Answer

I`m looking for a way to program a rule witch works after the exit delay time of my security partition.

I want to send a http request to my Sonos if the security partition is armed and the door will be opened , 90 sec after i armed the system.

Look at the attach what i try

Replies (4)

photo
1

Maybe you could save the time when security is armed to a variable (is this even possible) and have a different rule triggered by door opens to check if the variable is less than 90 secs old.

photo
1

Thank you Marius for this idea.


Now it works.

The way:


Rule 1

If Alarm armed

wait 90 sek

Set Variable Armed90Sek =1


Rule 2

If Alarm armed AND Door open AND Variable Armed90Sek = 1

HTTP Request to Sonos (Disarm the Alarm)


Set Variable Armed90Sek =0

photo
1

I think you first issue could have been solved using the advanced blok 'refresh all' before testing door status, because no matter how long you wait in a rule, retrieving sensor status will always get the status back when the rule was triggered, not when you check the status.

photo
1

I am not so sure. If refresh_all is called after 90 seconds, it would (probably?) only get the status Door_open in that instant? So the door would have to be in open state exactly after 90 seconds in order to validate the if clause to be true?

Leave a Comment
 
Attach a file