def METHOD_NAME(self):
    global doorMoving
    global doorHistory        
    if doorHistory != doorState:
        doorMoving=1
        doorHistory=doorState
        respDoor.run(self.key,state=doorState)
        PtDebugPrint("Door Begin %s" % doorState)