Have you checked out this app for scheduling temperatures and it supports on/off AC’s with a remote temperature sensor. [RELEASE] 5-2 Day Programmable Thermostat Scheduler (Weekday, Weekend) with Remote Temperature Sensor for each Schedule
It may not do everything you’re liking at (depending on how your ac is integrated, using a switch or a HVAC DTH), but you’re can schedule it up to 4 times a day to change the temperature so you can calculate when you’re expected to be at home and adjust the schedule accordingly.