Where should I add the action in a wait action


#1

I have the following piston code, that sends a refresh command to my door lock if the status changes to unlocked or unknown after waiting 100 seconds.

The question is, is the refresh code in the correct section, or should it be added to the add new task section of the screenshot below:


#2
IF lock changes to unlocked
or 
IF lock changes to unknown
Then (NEVER CANCEL TASK)
With Lock 1
Wait 100 seconds
Do refresh 

If you use WAIT without Tans Cancellation to NEVER, the piston will cancel your wait time as soon as triggers/conditions are no longer TRUE.