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
if( system.tag.read("[default]Line/ClearFaults").value == 1):
results = system.alarm.queryStatus(source=[“Line”])
for item in results:
eventID = “%s” % (item.getId())
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?