Combinations of mechanical switches and static switches, the latter being controlled by the former