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.