Pendulums switching a switch