Hinges with electrical safety switch