Alerting when front door is closed and unlocked

We have a Yale door lock. I would like to get alerted when the front door is closed but unlocked, or even better – lock the door if door is closed after a certain period of time. Is this possible?

It’s not possible to automatically lock it based on a left unlocked trigger, but you can set a lock left unlocked notification in Alarm.com. It does not consider sensor status, just time left unlocked and you can set the time frame when it would be active. See the guide here: