# 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:** 11

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 8, 2021, 5:12pm UTC](https://community.homey.app/t/help-with-a-flow-when-raining-notify-which-doors-windows-are-open/48331/11 "2021-08-08T17:12:49Z")

</div>

The variables are created and filled by the script already.  
First, make sure to run the script minimal 1 time in HomeyScript editor, so the variables are getting created and become available and findable from the flow editor.  
Flow:  
You can simply run the script from a AND card (go to Homeyscript in the list, and then select the script), and as action, create a notification card and select the variable [windowText], which is grouped under “Homeyscript”.

 ![Screenshot_20210808-191545_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/f/7fa06fc27715c70bb87e8cf419d66e7b043cbc94.jpeg)

Screenshot of the action card while the “share a flow” doesn’t display the variable:

 ![Screenshot_20210808-191329_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4ad63d7786f5a7d7b1b1afda335e3411486a81f4.jpeg)

Result pushmessage (it reports an open door and window):

 ![Screenshot_20210808-192750_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e4033df804e0023cd938526eedb6eddb3ce5b5b0.jpeg)

---

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