# While a window is opened then Thermostat off

**URL:** <https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251>\
**Category:** Flows\
**Created:** [November 4, 2019, 5:28pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251 "2019-11-04T17:28:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxime](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxime/32/17354_2.png) [@Maxime](https://community.homey.app/u/Maxime)\
**Post date:** [November 4, 2019, 5:28pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/1 "2019-11-04T17:28:50Z")

</div>

Hello Homey community 👋  
When one of my windows keep opened more than 5 minutes I would like my thermostat to turn off.  
Then it gets back ON with closing.

How would you do that with flow ? I’m not used to it because I was on Jeedom before.

Thanks for your help.  
Maxime

---

<div class="post-metadata">

**Author:** ![Erik\_M\_Madsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik_m_madsen/32/18191_2.png) [@Erik\_M\_Madsen](https://community.homey.app/u/Erik_M_Madsen)\
**Post date:** [November 4, 2019, 5:55pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/2 "2019-11-04T17:55:56Z")

</div>

Which type thermostat, Tado, Netatmo etc. ??? And contact?

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [November 4, 2019, 6:39pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/3 "2019-11-04T18:39:35Z")

</div>

Make a timer. I make timers with the [Countdown app](https://apps.athom.com/app/nl.bevlogenheid.countdown) . Making the timer is stated in [this topic](https://community.homey.app/t/get-a-notification-when-the-washingmachine-is-ready/9372), first post.  
Make some flows:  
WHEN windows closes THEN turn on Thermostat AND stop timer.  
WHEN window opens THEN start timer for 300 seconds.  
WHEN timer is empty THEN turn down thermostat.

This is just an example. U will get other comments with “i like the timers app more then the countdown app” and stuff like that. This is just to help u get started.

---

<div class="post-metadata">

**Author:** ![Maxime](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxime/32/17354_2.png) [@Maxime](https://community.homey.app/u/Maxime)\
**Post date:** [November 4, 2019, 7:08pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/4 "2019-11-04T19:08:46Z")

</div>

I’m using Tado thermostat. And contact with both Aqara and Fibaro

---

<div class="post-metadata">

**Author:** ![Maxime](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxime/32/17354_2.png) [@Maxime](https://community.homey.app/u/Maxime)\
**Post date:** [November 4, 2019, 7:09pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/5 "2019-11-04T19:09:47Z")

</div>

Many thanks for your help. I’ll try your solution 😉

---

<div class="post-metadata">

**Author:** ![carp3-noctem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carp3-noctem/32/8831_2.png) [@carp3-noctem](https://community.homey.app/u/carp3-noctem)\
**Post date:** [November 4, 2019, 7:15pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/6 "2019-11-04T19:15:56Z")

</div>

@Maxime I’ve doen this also via aqara sensors latly:  
When contact alarm goes on, then switch tado to disabled zone  
when contact alarm goes off, then switch tado to auto shedule

i don’t like the timer in that action, also i’ve disabled the auto window open detection for the rooms i’ve used the sensors, else they have collided with both actions.

---

<div class="post-metadata">

**Author:** ![danone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danone/32/115743_2.png) [@danone](https://community.homey.app/u/danone)\
**Post date:** [November 5, 2019, 12:00am UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/7 "2019-11-05T00:00:22Z")

</div>

As per the two Gentleman’s posts above, there are many methods.  
Here below sharing mine, it can be improved a lot, I am sure.

1. A door/window open for X amount of time. I want to stop the heating if specific door or windows are opened. In my case those door/windows have various type of sensors (Xiaomi, Fibaro). First I did create a group of all those particular sensors, using the [Group App](https://homey.app/f/KtTNUU) Then I created a Countdown Timer using the Countdown app as per above post by Roco. My first simple flow looks like this.  

2. After the timer has lapsed, I set my thermostat to AWAY. I have a Netatmo, perhaps Tado can do the same or maybe just set it to a low temperature which will have your boiler off.  
Here is the second simple flow.  

3. If my sensor group is now closed before the timer runs out, then I want the timer to stop so it does not turn off the heating. Say for example I opened the back door to go out in the backyard then closed it after me. So I don’t want the heating to stop just because of that.  
Here is my second flow. This one accounts for both door closed before timer runs out (it stops then the timer) and door closed after time runs out (by now the thermostat has been stoped by the flow at point 2 above) by using the ELSE condition.  

One last thing I have implemented, when the Thermostat is set on “Frost-Guard” mode I disable all the above three flows (I do this with a flow of course). This is so the above flows don’t run during summer time. When the weather gets warm I usually set manually my thermostat in Frost-Guard mode. Of course you can have this automated, too.

Good luck!

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [November 5, 2019, 9:00am UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/8 "2019-11-05T09:00:55Z")

</div>

Tado has this functionality built-in as well. Based on sudden temperature drops it stops heating for a custom defined period. Why not use that instead?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c9043d0882f43ba865a6c6546479b09f241b7dfa.jpeg)

---

<div class="post-metadata">

**Author:** ![Maxime](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxime/32/17354_2.png) [@Maxime](https://community.homey.app/u/Maxime)\
**Post date:** [November 5, 2019, 9:23am UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/9 "2019-11-05T09:23:49Z")

</div>

Hello 👋  
I enabled it for a while but never worked. Actually I don’t know how it can detect my windows really opened…

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [November 5, 2019, 9:54am UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/10 "2019-11-05T09:54:28Z")

</div>

Pretty simple; if the temperature drops an unusual amount in a short period, it labels it as an open door/window. It then turns of heating as the temperature will rise again once the window/door is closed. It works surprisingly well to be honest because it doesn’t react if the temperature drops very slow (so a window that opens for a brief period doesn’t really affect the room but a door that opens when it is freezing outside will).

If you are not using tado you can do the exact same thing with a flow; IF temperature drops more than .3 degrees in 5 minutes THAN Disable heating for X minutes. Works flawlessly and only initiates when the temperature is actually affected, not when it simply sees a door open/close briefly.

---

<div class="post-metadata">

**Author:** ![carp3-noctem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carp3-noctem/32/8831_2.png) [@carp3-noctem](https://community.homey.app/u/carp3-noctem)\
**Post date:** [November 5, 2019, 10:05pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/11 "2019-11-05T22:05:06Z")

</div>

@Hannes85 i avoid using that for my bathroom and sleeping room, as many times the longest timer doesn’t was long enough and i came back just to found my heater glowing hot. with the flows i just stop that case and also let the window open for longer then 60 minutes (after detection)

---

<div class="post-metadata">

**Author:** ![Matej\_Kapusta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matej_kapusta/32/941_2.png) [@Matej\_Kapusta](https://community.homey.app/u/Matej_Kapusta)\
**Post date:** [November 6, 2019, 7:50pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/12 "2019-11-06T19:50:21Z")

</div>

Hi there. I have same problem. ☹ I need heating off when I open the window. Set temperature back after window is closed. I use the Spirit z-wave thermostat.

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [November 9, 2019, 1:01pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/13 "2019-11-09T13:01:36Z")

</div>

A zone is active when a contact sensor is open - you could piggy back into the “active” state of the one to determine when to shut off the other device. If you looking for a simple solution

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [November 9, 2019, 5:08pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/14 "2019-11-09T17:08:46Z")

</div>

Just set the mode of your Spirit to “Off” when window is opened and set back to “Heating” (called Comfort) when window is clodes. Then you don’t need to change the temperature.

---

<div class="post-metadata">

**Author:** ![Marian\_Satko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marian_satko/32/13021_2.png) [@Marian\_Satko](https://community.homey.app/u/Marian_Satko)\
**Post date:** [November 12, 2019, 5:01pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/15 "2019-11-12T17:01:36Z")

</div>

HI folks. I have TADO (2 Smart thermostats and 12 Smart Thermostat Radiator Valve=STRV) and many other stuff under the Homey. Problem of some explanation above is that TADO has only interval for heating OFF from 1 minute to 60 minutes (even though the scale shows more hours, it cannot be set above 1 hour). This is why I look for simple Window sensor to STRV flow that would secure no heating until window to be kept open. Surely I can set up flow that sensor turn off STRV but I am unsure how to turn STRV back to normal operation mode once the window get closed. Can you please advise?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [November 12, 2019, 6:03pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/16 "2019-11-12T18:03:56Z")

</div>

The Eurotronic Spirit thermostats are connected directly to Homey with Z-Wave. So the app can use all possibilities of them like the heating mode:

 ![Screenshot_20191112-185900_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/3/c34e40dd2d80d1410fc10955e3cee003bafd5656.jpeg)

I don’t know the TADO thermostats or the app if there is something similar. But perhaps their API/Gateway doesn’t offer only temperature and nothing like a mode.

---

<div class="post-metadata">

**Author:** ![carp3-noctem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carp3-noctem/32/8831_2.png) [@carp3-noctem](https://community.homey.app/u/carp3-noctem)\
**Post date:** [November 13, 2019, 1:35pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/17 "2019-11-13T13:35:23Z")

</div>

@Marian_Satko the Flows when used with tado° offer the following two situations (on / off):  
Heating Off is called: Disable the Zone  
Heating On (back to normal (smart Schedule)): Activate Smart Schedule

works very well with these two situations. There are also other Cards avail to set the temp, set temp until time expires, set temp until smart schedule changes, disable until time expires, disable until smart schedule changes and activate zone.

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [July 1, 2020, 4:20pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/18 "2020-07-01T16:20:48Z")

</div>

But with no paid account you only receive an push message

---

<div class="post-metadata">

**Author:** ![Capetrip](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/capetrip/32/19333_2.png) [@Capetrip](https://community.homey.app/u/Capetrip)\
**Post date:** [October 31, 2020, 11:32am UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/19 "2020-10-31T11:32:00Z")

</div>

Hi Carp3-noctem,

I got my Tado now (thanks for the advice 😉 and programmed the same flow with Aqara window sensors to switch on/off heating of the Tado Thermostates. However I need a way that those flows are not activated during the non - heating period. Doing it only within May - Sept is not grnular enough. How do you manage that?

Thanks and Regards,  
Uli

---

<div class="post-metadata">

**Author:** ![carp3-noctem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carp3-noctem/32/8831_2.png) [@carp3-noctem](https://community.homey.app/u/carp3-noctem)\
**Post date:** [November 1, 2020, 1:40pm UTC](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251/20 "2020-11-01T13:40:04Z")

</div>

I have setup a other flow that disabled / enabled this depending on the avarage outside Temperature over the day.

[Next page](https://community.homey.app/t/while-a-window-is-opened-then-thermostat-off/20251.md?page=2)
