Question about IF statements and subscriptions


#1

I’m writing a routine I can manually trigger through a URL to lock my front door, and then buzz my security gate.

I want to lock the door first, then CHECK to see if the locking worked, then call the buzz piston.

However, I realized that this SUBSCRIBES me to the lock event. I don’t want to run this when the lock changes, only when I call the URL. What am I doing wrong? I didn’t use the “changes to”.

(NOTE: ignore the first call to the buzz piston at the top, that’s there just to make it work at themoment)

EDIT: Nevermind, I did not realize there were subscription options. Fixed, thanks.