This piston was built with help from several people over a period of weeks/months. It has been working flawless for several months so I thought I’d Share. It’s pretty basic, but serves it purpose well.
Purpose: This piston will notify me when specific codes are used to unlock the door. Onetouchlock is turned off for the locks. This means that the code must be entered to lock the door when the worker leaves as well. I’m back routine runs, which sets HVAC appropriately, disarms SHM, etc. When the worker leaves, they enter the code, Goodbye routine runs, onetouchlock is set back to on, and a text message is sent with total time in the house. There is also a catch for if you are there when they leave, you would not want run the goodbye routine if you were home.
This works well if you have a general expectation of how long someone is supposed to be in your home. Without having to go in and look at logs, etc.