I understand that N facing N will repel, but would it still repel if the magnetic field is slightly changed by this simple design of this classic magnet switch drawn in the photo?
That's the second post I've seen on this. And I can not figure out what you are asking. What are you switching? Where are the terminals of this switch? How is the magnetic field changed? I can not make any sense out of your drawing....or the photograph.
Can you start over, and clearly explain what you are trying to do and what are you talking about?