Kwikset correct code not activating virtual switch

Hi all,

I love this device and am having trouble getting my correct code to trigger a virtual switch that disarms itself. Is something like this possible? I’ve coded a few things in Lua without success as the trigger is never seen as being fired from the door when entered. I’ve also been using the Program Logic Armed/Bypass device property input without luck.