Tino,
Can you seperate the two? Both the hat portion and the other part should be latching switches. Seperate the two and test it by itself. And since it hasthree additional pins I would test them too. We not the hat it latching. I think the other part is not and the hat's post is backing uff just enough for the connection to go back to open.

Oh and thinks for the shoutout.