'doorlock' does not name a type

Thanks for your help i found a different way to do it with a keypad.