From the model s manual:
Cabin Overheat Protection operates until 12 hours has elapsed once you exit Model S, or until the Battery energy drops below 20%, whichever comes first. Using Cabin Overheat Protection requires energy from the Battery, which may decrease range.
So if it only stays on...