# Flow triggered by any one contact alarm in the same zone

**URL:** <https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359>\
**Category:** Flows\
**Created:** [January 13, 2022, 9:16am UTC](https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359 "2022-01-13T09:16:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k_s/32/11635_2.png) [@K\_S](https://community.homey.app/u/K_S)\
**Post date:** [January 13, 2022, 9:16am UTC](https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359/1 "2022-01-13T09:16:30Z")

</div>

How can I create a flow that is triggered by any contact alarm in a zone, rather a flow for each contact alarm?

For example I have six windows in a room, and want to turn the heating off if one of the windows is opened.

It seems I can use:

\*When \*  
_“A contact alarm is turned on”_

…but not for zone, so I have to add something like:

_And_  
_Room A Window 1 Contact alarm on on_

_Or_  
_Room A Window 2 Contact alarm on on_

…but it seems I can only add a maximum of two ‘or’ conditions, whereas I have six windows in that room.

How can I make this work without six flows (and another six to restore the heating once the window is closed again, and the same again for 5 more rooms)?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 13, 2022, 11:39am UTC](https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359/2 "2022-01-13T11:39:10Z")

</div>

If I understand you’re requirements correct, than you’re on the right way!

**When…**  
– A contact alarm is turned on  
**And…**  
– Logic card “is exact” or “contains” → tag “Area” + type in the name of the room, e.g. “Room A”  
**Then…**  
– Whatever

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/e/0e92af798bde8d450742d3428cd606bd7b6b5a56.png)

Another solution could be to use the [\< group \>](https://homey.app/en-us/app/com.swttt.devicegroups/%3C-group-%3E/) app and group all 6 window sensors to one device.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 13, 2022, 11:55am UTC](https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359/3 "2022-01-13T11:55:28Z")

</div>

As fantross mentioned, the group app is a good solution.

Or you can use zone activity (most contact sensors trigger the zone activity)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8401c3cdf56473712f4f9b066ea87893c9191bd5.png)

If you also have other sensors (motion) in the same zone you can create a new zone and only move the contact sensors into that zone.

So you would have 2 zones:

- livingroom
- livingroom contactsensors

---

<div class="post-metadata">

**Author:** ![K\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k_s/32/11635_2.png) [@K\_S](https://community.homey.app/u/K_S)\
**Post date:** [January 14, 2022, 8:57am UTC](https://community.homey.app/t/flow-triggered-by-any-one-contact-alarm-in-the-same-zone/58359/4 "2022-01-14T08:57:53Z")

</div>

Thanks both, I’ve gone with the simplest option using the Logic card
