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))
Running this client event script to remotely acknowledge alarms.
All alarms acknowledge with this script but some reappear a few seconds later as unacknowledged.
I made an expression tag to monitor the unacknowledged alarm count and using this script initially it went from 120 -> 0 to 88.
Running again it went from 88 -> 0 to 88.