App to shut off heat/AC if window is open for longer then specified time?

if NEST is your thermostat