Wait / Monitor for something to happen


#1

1) Give a description of the problem
I’m trying to write a piston to recognise my wife has come home (using her phone as a presense sensor), then within an allotted time see if the front door opens, if it does then get my echo to speak something.

2) What is the expected behavior?
I’m expecting something like this:

If wife presence changes to present
wait for 5 minutes
if within that 5 minutes the front door changes to open
then play blahblahblah
else end

I just need some guidance on the best way to frame that up… thanks!!


#2

Add a second condition for the door and replace the ‘and’ with ‘followed by’

index


#3

Thank you!!! I didn’t realise we could do “followed within x by y”

Much appreciated.