I’m not super familiar with humidex, I was going to suggest taking a look at how your values fit into a psychometric chart but it’d probably be more trouble than it’s worth, especially if you just have a single window unit. Your humidity is just going to dump every time the unit kicks on to drop the temp anyways
An easy thing you could automate would be to include time schedules as well as better temp ranges. Most of your cycling is from 1800-0600 (is this chart time offset? I don’t get why so much of your external heat gain is overnight). So you could avoid some of that by precooling below your set temp beforehand. I was going to suggest doing this at night, which is also when power prices are usually lower, but again it looks like it gets hotter outside at night so I’m not sure.
Regardless, before these periods of heat gain run the ac in a continuous cycle a few degrees below your comfort zone, which will also dehumidify the air more, extending your comfort zone time during heat gain without cycling