During the cooler months, only turning your AC on only when needed makes sense. However, during the summer months turning your AC off when you leave the house could raise humidity levels and make it more difficult to reduce the heat again when you are back.
Smart thermostats that include climate control will help to automatically manage the system to ensure the AC is not wasting unnecessary energy but the humidity is still controlled. Make sure fans are set to “auto” so they shift to low or turn off completely once comfortable temperatures are reached. If you do not have a smart thermostat you can still adjust your temperature regularly to ensure efficiency. During the hotter months, instead of turning your system completely off when you leave the house, increase the thermostat to around 25/26 instead. This will help to control the humidity levels whilst also ensuring that you are not running up your energy bill.
If you are going out for an entire day, or even away for a weekend, there is nothing to stop you turning your AC off altogether. Provided that your AC system is well-maintained, your property should return to an ambient temperature quickly once you return home and switch the AC back on.