AC Unit turns off for no reason I can figure out
My outside AC unit has started doing something I just cannot figure out. It will run for some time and then cut off. You can hear it when it does so, kind of a hum. Fan not turning, but can hear the unit. If I leave it off for maybe 10 minutes or so I can turn it back on at the thermostat. It will then run again, sometimes for 30 minutes or so, sometimes longer. Then the same thing again. Turn it off, wait, then it runs once more. I was having this problem, service tech came out and checked freon levels, all good, and cleaned the coils in the attic. When it cools it works just fine. Now, same problem remains. Additionally sometimes when I turn the thermostat to cool (electric thermostat) it my take a while to come on. Yesterday it did this back anf forth stuff most of the day. This morning when I turn it to auto/cool it hasn't kicked on at all. Thoughts or suggestions on what I can check? I'm almost leaning toward replacing the thermostat but don't want to just waste money changing things.