I have an alarm table that shows alarms that are all active and acked.
I have an expression tag that is the system tag for the active and unacked alarm count.
The table shows no active and unacked tags (minimum priority is diagnostic) but the tag counts 6 active and unacked tags.
I also have 10 shelved alarms. Do shelved alarms retain there unacked status if shelved before being acked? If so, how do I require that alarms be acked before shelving, or automatically ack the alarm if it's being shelved?
I'll have to do something with the onShelve
extension function. Where can I find more info on the format of "alarms"?
Tried: system.alarm.acknowledge(alarms)
and that did not work.
Printing to the console, alarms
looks like this:
[{Source: 'prov:Area_01:/tag:Alarms/Odor_Control_Heat_Trace_ALM/ALM_IND:/alm:Alarm', Display Path: 'HDWK', UUID: 'b837ed7b-eb76-4ba8-b308-b394b4922243', Current State: 'Active, Acknowledged', Priority: 'Medium', Active Data: {ackPipeline=Alarms, setpointA=1.0, eventValue=true, activePipeline=Alarms, clearPipeline=Alarms, name=Alarm, eventTime=Wed Aug 28 11:22:35 CDT 2024, label=Odor Control Panel Heat Trace, priority=Medium, displayPath=HDWK, enabled=true}, Clear Data: null, Ack Data: {ackPipeline=Alarms, setpointA=1.0, ackUser=usr-prov:Users:/usr:admin, activePipeline=Alarms, clearPipeline=Alarms, name=Alarm, eventTime=Wed Aug 28 11:23:08 CDT 2024, label=Odor Control Panel Heat Trace, priority=Medium, displayPath=HDWK, enabled=true}, Runtime Data: {isShelved=false, shelfUser=usr-prov:Users:/usr:admin, shelveExpiration=null}}]