# Flow for turning off heating source if window is open

**URL:** <https://community.homey.app/t/flow-for-turning-off-heating-source-if-window-is-open/99967>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [January 4, 2024, 11:45am UTC](https://community.homey.app/t/flow-for-turning-off-heating-source-if-window-is-open/99967 "2024-01-04T11:45:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [January 4, 2024, 2:30pm UTC](https://community.homey.app/t/flow-for-turning-off-heating-source-if-window-is-open/99967/2 "2024-01-04T14:30:45Z")

</div>

Hi @anon78407409 ,  
I am not sure, if I understand you right.  
For many sensors there is a _If…_ card **IsOpen for _xxx_ minutes** as well as **IsClosed** or similar and for the heating system there should be some cards to switch them on and off or to change temperature.

With simple cards you must write one Flow for _WindowOpen_ and one for _WindowClosed_, If you have several windows in the same room you may use cards on the zone where you put the devices. I do not have those sensors so I do not know how exactly they look like.

But if you want a simple flow that works in all rooms, like _If…_ something happens on a device _Then…_ switch on/off heating in the room, where the device is, I do not have a clue if it works with simple ore advanced flows. Probably you have to try _Scripts_ which I did not yet.

---

_[View the full topic](https://community.homey.app/t/flow-for-turning-off-heating-source-if-window-is-open/99967)._
