Electromechanical and static switch connected in series