# Help with a flow: When raining, notify which doors/windows are open

**URL:** <https://community.homey.app/t/help-with-a-flow-when-raining-notify-which-doors-windows-are-open/48331>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [June 11, 2021, 6:57pm UTC](https://community.homey.app/t/help-with-a-flow-when-raining-notify-which-doors-windows-are-open/48331 "2021-06-11T18:57:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [June 11, 2021, 9:31pm UTC](https://community.homey.app/t/help-with-a-flow-when-raining-notify-which-doors-windows-are-open/48331/4 "2021-06-11T21:31:29Z")

</div>

I created a HomeyScript for checking open windows.  
You could do something like this in a flow started with a rain sensor.  
As rain sensor I use a rain sensor board with a aqara window sensor (cables attached at the reed sensor and connected to the rain board.

Here is an example for a script (sorry, only german 😉)

> [@Homey Web App (Soon)](https://community.homey.app/t/homey-web-app-soon/39283/28):
>
> Hi Uwe, HomeyScript ist eigentlich nicht so schwer. Du brauchtst nur JavaScript-Kenntnisse und musst in der Homey-API-Beschreibung wühlen grin Hier mal ein Beispiel. Ich prüfe damit mehrere Fenster und gebe einen Text zurück, der über Alexa ausgegeben wird. Der Flow ist als Favorit gespeichert und kann so direkt über Alexa aufgerufen werden. Die Sktipte kann man als Flow-Bedingung verwenden (true/false-Rückgabe). Viel besser ist aber, dass man auch Flow-Tags erzeugen, im Skript füllen und i…

---

_[View the full topic](https://community.homey.app/t/help-with-a-flow-when-raining-notify-which-doors-windows-are-open/48331)._
