PLEG trigger not firing for a while after changed

i have a yale lock that i’m trying to use PLEG to update a multistring variable when a user unlocks via pin. i have a trigger on pin code entered…but the trigger isn’t set as true until many minutes after the door is unlocked. sometimes 20 minutes or more.

for example, right now i can see in the logs that i unlocked the door via pin at 16:59:13, but the trigger wasn’t set to true until 17:18:11.

what am i doing wrong?