Vision 8.0.7 Remote Alarm Acknowledgement

I want to acknowledge alarms with a physical push-button and not the built in acknowledge button on the alarm table.

Client Event: Tag Change

try:
if( system.tag.read("[default]Line/ClearFaults").value == 1):
results = system.alarm.queryStatus(source=["Line"])
for item in results:
eventID = "%s" % (item.getId())
system.alarm.acknowledge([eventID], None)
except Exception as e:
print("Error:" + str(e))

I have a tag change script that does this at the client level but I have 3 clients so this will execute 3 times every time "ClearFaults" goes high. I tried running this as a Gateway Event but it seems system.alarm.acknowledge does nothing at the Gateway level.

Is there a way to make this work at the Gateway level?

If not is there a way for the script to only execute once regardless of how many clients are open?

Thanks

You almost certainly have errors showing in your gateway logs. system.alarm.acknowledge() requires a username when called from gateway scope. As shown in the manual.

1 Like

That did the trick. I missed that part thank you.