My anet a2 auto-homes incorrectly
Your limit switches are not working properly - they should always hit.

Do the following steps:


Move axis in all possible directions, both positive and negative;
Check limit switch wiring;
Limit switch output.