How to implement lock open door


MI was wondering what do I need to change to be able to use the open door card lock? I have an entity created with the template lock and I use an automated relay that closes for 50ms and then reopens and so the door Opens.