Solar energy cycle microgrid automatic control system