alarms=system.alarm.queryStatus(state=["ActiveUnacked","ActiveAcked"])
data = []
for Alarm in alarms:
row={}
for Properties in Alarm.getActiveData().getProperties():
row[Properties]=Alarm.get(Properties)
data.append(row)
return data
Here you can find the script i use to get the name and value of the associated data.
i found this post telling that after a restart the name come correctly. and that's the case even in 8.1.26. but is you change the binding on the associated data. then it's broke until you execute another gateway restart.
Regards