I'm assuming you are doing some life cycle testing of these dimmer switches. Personally I would use a mechanical limit switch. They are cheap and easy to work with, and you have a low operating cycle. If the total cycles you are testing to are very high, it might be better to go with a proximity switch, as you won't have any wearing to worry about. "Happy the Hare at morning for she is ignorant to the Hunter's waking thoughts."