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: