IsAlarmActive Through Script

Is there a way to figure out if there is an active alarm for a tag through script? I see that you can do it using the isAlarmActive expression function but I would like to access it via script instead.

There sure is.
https://docs.inductiveautomation.com/display/DOC81/system.alarm.queryStatus

1 Like

If you care about a particular tag, but not which particular alarm, you could also just read the alarm active sub-property of the tag.

1 Like

This is exactly what I needed. I just need to know if there is any active alarm on the tag. I didn’t realize you could read the sub-properties of the tag by using system.tag.read. Thank you!