To be honest, I have no idea what you're talking about... could be me, sorry (on the other hand: what's the current temperature in Madrid...? )
I assume the labelled part is supposed to be the bed, correct? That top endswitch doesn't exist on an UM2, just one at the bottom...
Anyway, an endswitch has a proper direction to be pushed which should noch be changed as the switch itself could block before switching.