# How to get label to reflect actual alarm?

**URL:** <https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914>\
**Category:** Flows\
**Created:** [January 12, 2024, 1:56pm UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914 "2024-01-12T13:56:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [January 12, 2024, 1:56pm UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/1 "2024-01-12T13:56:38Z")

</div>

Hi!  
I’m sorry for the non-english screenshot. But I’d like to have a flow where when the last person leaves the house, if any contact alarm then isn’t disabled, I’ll get a push notification saying WHICH contact alarm is active. Is there no way to fetch that information from the “All alarms” card?

 ![flow example](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c989cc8b8b32119075d3a83b3c96e658ed122035.jpeg)

---

<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:** [January 12, 2024, 2:02pm UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/2 "2024-01-12T14:02:21Z")

</div>

You should def check out this flow

> [@Report any open doors/windows](https://community.homey.app/t/report-any-open-doors-windows/77972/2):
>
> Hi Marcel, I use this Homeyscript script for that. It sends a timeline report, so you just have to call this script in a flow: (I use the same script for rain/snow/storm alerts) // Check if certain doors or windows is open? let devices = await Homey.devices.getDevices(); let windowText = ""; let currentText = ""; let logText = ""; let windowOpen = false; \_.some(devices, device =\> { if ( device.class == 'sensor' ) // device.class is found at https://tools.developer.homey.app/tools/devices …

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [January 12, 2024, 2:10pm UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/3 "2024-01-12T14:10:16Z")

</div>

Thanks!  
So I guess I’ll have to go with a similar solution to my other thread as well:

> [@Flow for turning off heating source if window is open](https://community.homey.app/t/flow-for-turning-off-heating-source-if-window-is-open/99967/2):
>
> Hi @DIYglenn , 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 …

I kinda miss a “If this **sensor** is active in this **zone** - Then in the same **zone** enable/disable this **device** ”

---

<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:** [January 12, 2024, 3:45pm UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/4 "2024-01-12T15:45:17Z")

</div>

> [@anon78407409](#):
>
> I kinda miss a “If this **sensor** is active in this **zone** - Then in the same **zone** enable/disable this **device** ”

 ![Screenshot from 2024-01-12 16-44-53](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/a/3a991088116fde3d5ef0c8a3fba30668a2fcd870.png)

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [January 22, 2024, 9:42am UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/5 "2024-01-22T09:42:57Z")

</div>

But won’t that mean any sensor in that zone? I do not want f.ex. a motion sensor to disable heaters.

---

<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:** [January 22, 2024, 11:45am UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/6 "2024-01-22T11:45:41Z")

</div>

A zone gets active when a motion-/contact sensor alarm turns on → IF “Exclude from zone activity” is not enabled that is:

> ![Screenshot_20240122-123938_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/77cf6e58af4cd6bb9899d3c5d4c8830f08fedf5f.jpeg)

.

With multiple sensors in a zone, you can choose which one(s) should activate the zone, by enabling the beforementioned ‘Exclude from zone activity’.  
**This way, you could exclude motion sensors, and include contact sensors**.

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [January 26, 2024, 7:48am UTC](https://community.homey.app/t/how-to-get-label-to-reflect-actual-alarm/100914/7 "2024-01-26T07:48:13Z")

</div>

Thanks! I appreciate it. I haven’t used “zone” for anything before.
