You can use the lock or unlock state to trigger a routine in CoRE. The issue for us is we don't want the system to always be armed whenever the front door is locked. E.g., get home, unlock front door with code (thus disarming system), manually lock door behind you (thus arming system again), go let dog out back door (false alarm!).
Basically, we want to be able to lock the door manually from inside the home without arming the system. But when we lock from the keypad on our way out of the house, trigger the system to arm it.
So we would like to use the entry of a specific code to arm the system. We set up two codes using User Lock Manager: our code with a preceeding zero or one. Zero+code is set to trigger disarm routine, 1+code is set to run the arm routine. (Using 0 and 1 at the end of the code didn't work because the lock doesn't like consecutively-numbered codes.)
The unlock/disarm sequence works fine.
But lock/arm sequence does not. While the door locks, the code doesn't trigger the routine. It doesn't appear that our lock reports a specific user has locked the door. Likely because you don't need to enter a code to lock at all--you can just hit the lock key. Is there a way to force the lock to report it has been locked by a specific code? Or for the code app to go ask?