# Shelved Alarm in Clear and Acked System Tag

**URL:** <https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [September 29, 2023, 4:26pm UTC](https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851 "2023-09-29T16:26:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cwells/32/35042_2.png) [@cwells](https://forum.inductiveautomation.com/u/cwells)\
**Post date:** [September 29, 2023, 4:26pm UTC](https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851/1 "2023-09-29T16:26:18Z")

</div>

Hello,

I have been using System tag "Gateway/Alarming/Clear and Unacked" in a binding for the Perspective Audio component. However, an alarm that was shelved for 4 hours had added to this count a couple times during that shelving.

Our routine to acknowledge all the unacknowledged alarms uses system.alarm.queryStatus() to get a list of the "ClearUnacked" and "ActiveUnacked" alarms and acknowledges each with system.alarm.acknowledge(). This did not catch that shelved alarm, so we had to unshelve the alarm first to acknowledge it.

Is this normal behavior for Shelved alarms or a bug in the system? For reference, this Gateway is using 8.1.27.

Thanks!

---

<div class="post-metadata">

**Author:** ![Ben\_Eklund](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ben_eklund/32/40758_2.png) [@Ben\_Eklund](https://forum.inductiveautomation.com/u/Ben_Eklund)\
**Post date:** [October 2, 2023, 9:49pm UTC](https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851/2 "2023-10-02T21:49:34Z")

</div>

Please feel free to submit a ticket with us at [support@inductiveautomation.com](mailto:support@inductiveautomation.com), so we can track and troubleshoot this issue. Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Gagne](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Michael\_Gagne](https://forum.inductiveautomation.com/u/Michael_Gagne)\
**Post date:** [February 8, 2024, 8:58pm UTC](https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851/3 "2024-02-08T20:58:04Z")

</div>

You can include the shelved alarm in the query:

system.alarm.queryStatus(state=["ClearUnacked","ActiveUnacked"], includeShelved=True)

But I do have the same problem as you with my script that Set/Reset a bit a a PLC for audible alarm. Before using the shelve function everything was working fine. After an acknowledge, the count of the unacked alarms was alwasy zero dues sending the reset bit.. Now with an unacked shevled alarms my count is no longer zero. I did try a bunch of stuff to get the alarm EvenID of only the shelved to just force them to Ack while on the shelf but did not find anything working.

Any ideas all?

---

<div class="post-metadata">

**Author:** ![fledder](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@fledder](https://forum.inductiveautomation.com/u/fledder)\
**Post date:** [April 10, 2024, 6:06pm UTC](https://forum.inductiveautomation.com/t/shelved-alarm-in-clear-and-acked-system-tag/79851/4 "2024-04-10T18:06:49Z")

</div>

+1 for using the alarm for an audible alert and having shelved alarms cause the alert to happen. Is this an official bug? Is it on the roadmap for any particular version? Or is it intended behavior?
