Don't confuse limit switches, which are for emergencies, with home switches which need to be accurate and repeatable. Personaly I'd stick with mechanical switches since it is much easier to make these fail-safe compared to purely electronic ones.