You obviously have a problem with your ac unit which cannot be dianosed here.
First place to look is the thermostat
Because of the thermostat. This will turn on the unit when the temperature gets below what ever degree it is set at and then will turn off when the thermostat gets at that temperature.
To replace an AC thermostat, first turn off the power to the unit. Remove the old thermostat cover and disconnect the wires. Install the new thermostat according to the manufacturer's instructions, making sure to connect the wires correctly. Finally, turn the power back on and test the new thermostat to ensure it is working properly.
To wire an AC thermostat, first turn off the power to the HVAC system. Then, remove the old thermostat and label the wires. Connect the wires to the corresponding terminals on the new thermostat, following the manufacturer's instructions. Finally, secure the thermostat to the wall and restore power to the system.
Your a/c unit uses different relays(switches) that are energized when the thermostat calls for A/C.
you can simply select "off" on the thermostat to stop operation; however, if you are going to service the ac, the main power cut-off will be within arms reach of the condenser usually located outside .
To connect thermostat wires to an AC unit, first turn off the power to the unit. Then, match the wire colors from the thermostat to the corresponding terminals on the AC unit. Typically, the wires are connected to terminals labeled R, Y, G, and W. Use a screwdriver to secure the wires in place. Finally, turn the power back on and test the thermostat to ensure it is working properly.
a bad thermostat or miswire of the low voltage wiring or a bad heating relay stuck in the heating mode.
A central air conditioning unit will commonly turn on and off intermittently. To stop this, adjust the temperature on the thermostat or switch the unit either on or off rather than the automatic setting on the thermostat.
That's the entire point of an AC unit. it's to keep your house at a steady temperature
You can control the AC switch remotely by using a smart plug or a smart thermostat that connects to your home's Wi-Fi network. These devices allow you to turn the AC on and off using a smartphone app or voice commands through a virtual assistant like Amazon Alexa or Google Assistant.
The steps involved in an AC thermostat replacement are: turning off the power to the AC unit, removing the old thermostat cover, disconnecting the wires from the old thermostat, removing the old thermostat from the wall, installing the new thermostat, connecting the wires to the new thermostat, attaching the new thermostat to the wall, and finally turning the power back on to test the new thermostat.