# Fresh Air - Close Window reminder (fixed)

**URL:** <https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [February 12, 2019, 2:01pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110 "2019-02-12T14:01:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 2:01pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/1 "2019-02-12T14:01:01Z")

</div>

Hi,

I have a house with multiple floors and when I open a window I want to to be notified after 600 seconds that the window is open and enough fresh air is in the room. I use window/door contact sensors to get the data.

Now tried a lot with the flows but I didn’t quite get it.

I’m curious if there is a way to catch all windows/door sensor alarms (so if alarm type is equal door alarm or similiar) and then start individual countdown timers for each opened window. Of course I don’t want to get notified when in the meantime someone has closed the window already.

Do I need an extra Flow for each window or is there a way to combine them? (I have a lot of windows and I would prefer a combined way) 🙂

---

<div class="post-metadata">

**Author:** ![Ype](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ype/32/8406_2.png) [@Ype](https://community.homey.app/u/Ype)\
**Post date:** [February 12, 2019, 2:21pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/2 "2019-02-12T14:21:08Z")

</div>

because you can only use one trigger (a contact on the window) to get a flow in motion i think you need multiple flows for each window a flow.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [February 12, 2019, 2:43pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/3 "2019-02-12T14:43:50Z")

</div>

Can be done: when window opens then write name to a variable and start timer. If timer runs out then send message with variable in it 🙂

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [February 12, 2019, 3:12pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/4 "2019-02-12T15:12:31Z")

</div>

Also you can use the ‘devices’ property to check if any window is open. And when you close a window and all windows are closed stop the timer.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [February 12, 2019, 4:02pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/5 "2019-02-12T16:02:57Z")

</div>

Of ocurse I meant that in combination with the alarm-function 🙂

---

<div class="post-metadata">

**Author:** ![Tino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tino/32/10934_2.png) [@Tino](https://community.homey.app/u/Tino)\
**Post date:** [February 12, 2019, 4:09pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/6 "2019-02-12T16:09:03Z")

</div>

could you please show me an screenshot for a flow like this? I‘m interested in using the name of the open window in a variable

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 4:32pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/7 "2019-02-12T16:32:38Z")

</div>

Yes, how do you guys extract the name cause there is no specific window/door alarm. Otherwise it would be possible to use the device name as a Tag.

---

<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:** [February 12, 2019, 4:35pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/8 "2019-02-12T16:35:19Z")

</div>

When using the “devices” card as a trigger like @Jeroen_Somhorst just mentioned then there is ur tag 😉

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/94dd67de3a11933cb35e6a0df9b34fd40bee421d.jpeg)

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 5:37pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/9 "2019-02-12T17:37:29Z")

</div>

Ok thanks, I need some time to test this, cause the countdown timer don’t work for me. I did some very simple stuff (when: timer has started, then: send notification) but that wasn’t fired at all. So I need an alternative app for countdown timers 😕

---

<div class="post-metadata">

**Author:** ![ralfvd](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralfvd/32/16441_2.png) [@ralfvd](https://community.homey.app/u/ralfvd)\
**Post date:** [February 12, 2019, 6:04pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/10 "2019-02-12T18:04:28Z")

</div>

There are multiple countdown apps, each with their own habits and way of working.

You can also use the Heimdall alarm app ; in the newest versions there is a way to check all contacts: [Heimdall - Let Homey watch over your home](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/388)

---

<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:** [February 12, 2019, 6:18pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/11 "2019-02-12T18:18:10Z")

</div>

> [@meistereder](#):
>
> (when: timer has started, then: send notification) but that wasn’t fired at all.

Can u show us the screenies of this flow(s)?

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 6:34pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/12 "2019-02-12T18:34:33Z")

</div>

Sure, here are the screens

 ![Screenshot_20190212-192810](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/ddd8bdb243ef1ca8b53c838a1c3a36dd7018c5c2.jpeg)

 ![Screenshot_20190212-192848](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7ca9c9ca997f966331e62f1f02b52034c208b4b1.jpeg)

 ![Screenshot_20190212-192915](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/155e83ce621cc479089439dafecb922b82f184be.jpeg)

No rocket science here. 🙂 I also tried the beta of Countdown Timer App. Restarted homey, only the app and it didn’t work. Only thing left ist that I’m using a German special character in the devices name (ü).

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 6:39pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/13 "2019-02-12T18:39:13Z")

</div>

> [@meistereder](#):
>
> Only thing left ist that I’m using a German special character in the devices name (ü).

Oh shit… this was it… The timer does not support Umlaute (üöä) in its name 😄 I will file a bug report.

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 12, 2019, 6:56pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/14 "2019-02-12T18:56:35Z")

</div>

So my solution was looking like this:

1. Flow: Contact Alarm goes off; then: create timer with the device name
2. Flow: an Contact Alarm alarm turned off; then: stop time with the device name
3. Flow: timer finished; then: send notification with “door/window still open…”

I thought this was very lightweight and not too complicated but unfortunately I can only stop timers with a name and not with a variable. ☹ Is there a hack to put in variables even the app doesn’t provide it?

---

<div class="post-metadata">

**Author:** ![meistereder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/meistereder/32/5953_2.png) [@meistereder](https://community.homey.app/u/meistereder)\
**Post date:** [February 16, 2019, 8:43pm UTC](https://community.homey.app/t/fresh-air-close-window-reminder-fixed/9110/15 "2019-02-16T20:43:49Z")

</div>

Found a solution which is working for me for now:  
I have two general Flows:

- Start Timer:  
When: an alarm turned on ‘contact alarm’  
Then: Start/Update a timer ventilation for 600 seconds
- Timer Finished:  
When: A timer has finished  
And: contains “ventilation”  
Then: Send notification " still open, close the damn window"

Now as this Timer app doesn’t support stopping Timers with a variable name, I need to setup a flow for each window I want to surveil.  
Template for each window looks like this  
When: Device Foo: The contact alarm turned off  
Then:

1. Disable a Flow “Timer finished” // crappy workaround
2. Stop a timer: ventilationFoo
3. Enable a Flow " Timer finished // crappy workaround, as otherwise the Flow get triggered from the “Stop a Timer” Action (which is madness in my opinion)

I’ve created an issue for my problem, cause in a perfect world I would only need 3 Flows to cover the whole house.

By the way: I can recommend the Xiaomi Window/Door Sensors. Small, nice, and working perfectly for me.
