Method for detecting a state of a switching unit, the switching unit comprising an element that is movable between a first position and a second position.