The automatic operation of the service hoist tripped at approximately 12:50 am due to a failure in the cable gate switch. MSHA was notified by the emergency reporting hotline within the required time frame. There were no injuries or entrapments. The gate switch cable was repaired and the hoist could run automatic by approximately 2:00 am.