Switch on a push-button switch automatically