Active Alarms exist notification binding

I have a notification icon with a configured event that has a popup with an alarm table component. I am passing a parameter to the alarm table that filters on the displayPath. This portion works great. I want to the notification icon to turn red if any active alarms exist. I am trying to find some sort of property that will provide this data. Has anyone ever done this or have any idea what property I could use to gather enough info to perform this logic?

I do this in a gateway script for my display paths with a query similar to:

active = system.alarm.queryStatus(state=["ActiveUnacked"])

You can then compare the number returned and set/reset a boolean tag used for your widget.

Thanks, ill give this a shot, sounds like it would work for what I need.

If you only plan on having 1 tag provider (or don’t care which tag provider the alarm is in) [System]Gateway/Alarming folder has tags that probably have exactly what you need.

Unfortunately that won’t work. I need it filtered down to an individual facility.

This worked out perfect! Wrote to a tag on each UDT and was able to bind / transform to our liking.

Thanks,

1 Like

Don’t go too crazy with that function in clients or tag scripts.

Depending on where you are calling it, how many instances, how often, etc.

It can really bog down a client or the gateway.

Ill monitor, I have it set to run every 90 secs (running as a Gateway Event). It retrieves the count for roughly 6000 facilities and writing to the same. I noticed it took around 10 seconds to run the script.