Email Alert when Door left unlocked at certain time of day

I am trying to find a way through Vera lite to send a notification (email or sms) when the door is left unlocked after a 11pm at night. I have a kwikset lock that I would be polling for the lock state.

I won’t want it to trigger the lock I just want a notification that the door has been left unlocked meaning it was probably left open.

I can’t seem to find a way to do this through the scenes and triggers. I have not worked with lua yet but is there a way to make this happen.


I’m going to try to do something similar for my garage door.