Smart locks and some HASS script can do the lock the door thing.
Although you might just have it monitor your housemates smartphone location and lock your doors if all phones have left the house. If you don't want it to lock, it will just push message you the lock state.
Although you might just have it monitor your housemates smartphone location and lock your doors if all phones have left the house. If you don't want it to lock, it will just push message you the lock state.