Automation for better air conditioning. Any hint?

I posted how I do it (with a heat pump rather than a pure airconditioner), but my automation is built on the premise that you have full control of the IR commands. Anyway, it might help you out?