# HVAC ON/OFF by door and window sensors

**URL:** <https://community.smartthings.com/t/hvac-on-off-by-door-and-window-sensors/215346>\
**Category:** Automation Ideas\
**Created:** [December 22, 2020, 10:42pm UTC](https://community.smartthings.com/t/hvac-on-off-by-door-and-window-sensors/215346 "2020-12-22T22:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeachBum1](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BeachBum1](https://community.smartthings.com/u/BeachBum1)\
**Post date:** [December 22, 2020, 10:42pm UTC](https://community.smartthings.com/t/hvac-on-off-by-door-and-window-sensors/215346/1 "2020-12-22T22:42:00Z")

</div>

I own a beach rental property and want to control the HVAC with the door/window sensors. I want the AC to go to OFF whenever _any_ door or window is open for more than 3 or 5 minutes. Then I want the AC to go to ON when the door or window is closed again…when _all_ sensors are closed.

It seemed pretty simple and I set up an automation to turn the AC ON when ALL sensors were closed. Then, if ANY sensor opened, delay 3 minutes and turn the AC OFF. I thought the first step would override the second step when the door was closed again. It worked sometimes but sometimes would not and the AC would turn OFF but not ON again. I need a very consistent automation so that renters don’t complain that the AC is not working.

---

<div class="post-metadata">

**Author:** ![jkp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jkp/32/117130_2.png) [@jkp](https://community.smartthings.com/u/jkp)\
**Post date:** [December 22, 2020, 11:24pm UTC](https://community.smartthings.com/t/hvac-on-off-by-door-and-window-sensors/215346/2 "2020-12-22T23:24:54Z")

</div>

You may want to check out the smartapps from @RBoy

> **[RBoy Apps SmartThings](http://smartthings.rboyapps.com/)**
>
> Make your Home your Butler with RBoy Apps and SmartThings.
> Make you home the smartest house on the block! Make your home look after you.

---

<div class="post-metadata">

**Author:** ![RBoy](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rboy/32/62677_2.png) [@RBoy](https://community.smartthings.com/u/RBoy)\
**Post date:** [December 22, 2020, 11:38pm UTC](https://community.smartthings.com/t/hvac-on-off-by-door-and-window-sensors/215346/3 "2020-12-22T23:38:27Z")

</div>

You can check out these two apps which have that feature built in to monitor multiple door/window sensors and suspend the HVAC and then resume operation when they’re all closed. There are more on the website but these two will probably be the best fit for your needs as they have a closed loop setup i.e. it checks the the HVAC is operating to ensure that commands aren’t lost in cloud/mesh and your renters aren’t left with a AC not working.

[[RELEASE] 5-2 Day Programmable Thermostat Scheduler (Weekday, Weekend) with Remote Temperature Sensor for each Schedule](https://community.smartthings.com/t/release-5-2-day-programmable-thermostat-scheduler-weekday-weekend-with-remote-temperature-sensor-for-each-schedule/6780)

[[RELEASE] Mode Based Thermostat - Control Multiple Thermostats Temperature / Remote Temperature Sensors when Changing Modes](https://community.smartthings.com/t/release-mode-based-thermostat-control-multiple-thermostats-temperature-remote-temperature-sensors-when-changing-modes/6652/)

You can also check out other rental automation apps like [Rental Lock Automater](https://community.smartthings.com/t/release-rental-lock-automater-airbnb-vrbo-homeaway-tripadvisor-booking-expedia/124785/) which are popular with hosts.
