The macros above only locked the door at the first time in my case and to guarantee that always lock the door after I enter I added a check in the...
Separate names with a comma.