Pause heating or cooling when a window stays open
Open a window for fresh air, and heating or cooling pauses after a short delay. Close every monitored opening, and the system resumes only if this recipe paused it.
Best for: Homes with a controllable thermostat and reliable contact sensors on the windows or patio doors people intentionally leave open.
Not for: Briefly used exterior doors, homes with unmonitored openings, or HVAC equipment whose thermostat mode cannot be safely paused and restored.
Why this exists
Pausing heating or cooling when a window stays open avoids using energy on air that is immediately lost outside. The recipe must ignore quick door trips, remember whether it caused the pause, wait for every monitored opening to close, and avoid undoing a manual thermostat change.
Start with one frequently used window. Expand only after the full pause-and-resume cycle works reliably.
Logic
- Trigger: Any monitored window or door remains open for two minutes.
- Conditions: Heating or cooling is active, climate pause is enabled, and no safety condition requires HVAC to continue.
- Action: Record that this recipe owns the pause, save the current thermostat mode if the system can do so reliably, pause HVAC, and identify the opening in a notification.
- Wait / timeout: Ignore quick openings. Remind the household if an opening remains open long enough for indoor temperature to become a concern.
- Stop condition: Every monitored opening has remained closed briefly.
- Manual override: A thermostat change made during the pause cancels automatic restoration of the old state.
What I used
Control heating and cooling
ecobee Smart Thermostat Enhanced. Keep safe limits and manual control at the thermostat.
Detect an open window or door
SONOFF SenseGuard Gen2 Zigbee contact sensor. Test every open and closed report before enabling HVAC control.
See recommended gear for the job-first checklist. Amazon product links on this page are affiliate links, and I earn from qualifying purchases. Product recommendations and the affiliate relationship are explained in the disclosure.
Setup notes
- Start with windows people intentionally leave open. Exclude exterior doors used for quick trips.
- Verify each contact sensor reports open and closed correctly ten times.
- Create one combined “any monitored opening is open” state.
- Add a two-minute open delay and a short all-closed delay to prevent rapid cycling.
- Track whether this recipe paused HVAC. Never resume merely because a window closed.
- During testing, notify without changing the thermostat.
- After notifications are reliable, test pause and resume while someone watches the thermostat.
Platform notes
This recipe needs more than contact and thermostat control. The platform must track whether this recipe caused the pause, recognize a later manual thermostat change, and restore only a valid saved state. See the platform guides for broader fit and maintenance tradeoffs.
Amazon Alexa
I could not verify a universal Alexa routine path that safely owns, saves, and restores thermostat state across contact-sensor and thermostat integrations. Use an Alexa alert-only version unless the exact devices expose the required open-duration trigger and thermostat actions under When and Alexa Will. Do not use a second unconditional routine to resume HVAC when one window closes.
SmartThings
A simple SmartThings Routine can notify when a contact remains open if the device exposes that condition. The complete pause-and-restore pattern is better suited to an advanced SmartThings Rule that can evaluate every monitored contact and the current thermostat state. Confirm local execution for every feature in the rule and preserve manual thermostat changes.
Hubitat
Use Hubitat Rule Machine to combine delayed contact conditions, track whether the rule paused HVAC, and require every monitored opening to be closed before restoration. Keep independent thermostat safety limits active and clear rule ownership when the thermostat changes outside the rule.
Home Assistant
Home Assistant is a technical fit for stateful pause-and-restore logic, but I have not personally run it. Verify the current contact and climate integrations, state restoration, manual-change detection, and unavailable-device behavior before allowing it to control HVAC.
Safe restoration
The resume half is more important than the pause:
- Resume only when all monitored openings are closed.
- Resume only when the recipe still owns the pause.
- Restore the saved mode, not an assumed seasonal mode.
- If the saved state is missing or invalid, notify instead of guessing.
- If someone manually changed the thermostat, clear recipe ownership and leave their choice alone.
- Keep independent freeze and overheat protection active.
Advanced features
Use different delays by opening
A window intended for ventilation can use a short delay. A frequently used patio door needs a longer delay or should be excluded. The goal is to catch sustained openings without cycling HVAC during normal traffic.
Add a reminder instead of a blinking light
Send one useful notification when HVAC pauses and another only if the opening remains open. Repeated blinking or phone alerts become noise and teach the household to ignore the recipe.
Show which opening blocks resume
A status tile can list the windows still open. This makes a failed resume understandable without exposing platform-specific implementation details.
Failure modes
- HVAC cycles during quick door trips: Increase that door’s delay or remove it from the monitored group.
- HVAC never resumes: Find the sensor still reporting open and verify that this recipe owns the pause.
- The wrong mode resumes: Do not guess heat, cool, or auto. Validate saved-state handling before enabling restoration.
- A manual thermostat change is reversed: Clear recipe ownership whenever the thermostat changes outside this automation.
- A sensor battery dies while reporting open: Alert on unavailable or stale sensors and require manual review instead of forcing a resume.
- Indoor temperature becomes unsafe: Independent thermostat limits override the automation and notify the household.
- The hub or internet is down: The thermostat remains usable at the wall and continues enforcing its own safety limits.
FAQ
How long should a window stay open before HVAC pauses?
Start with two minutes for windows. Use a longer delay or exclude exterior doors that normally open for brief trips.
When should the thermostat resume?
Resume only after every monitored window and door has remained closed briefly, and only if this automation was responsible for the pause.
What if someone changes the thermostat while a window is open?
Treat the manual thermostat change as the new instruction. Do not restore an older saved mode over it when the window closes.