The new virtual thermostat app for window units etc

If you have a thermostat for your window unit try this app with a remote sensor.

If you’re controlling your window unit with a On/off switch then set your window unit to the lowest temperature setting and use the on/off switch as you cooling device in the above SmartApp coupled with a remote temperature sensor