Multipurpose automation controller