This lengthy discussion around Ruida homing setup may sort things out:
You won’t have miswired switches, but getting the polarity correct requires the same attention.