How do keep track of the number of shelved alarm? I know len(system.alarm.queryStatus(state=[“ActiveUnacked”])) can be used to count the number of alarms based on state, but I don’t know the argument for shelved alarms. I tried “ShelvedUnacked”, but that is not correct.
The logic looks pretty straight forward, but the count is off. I triggered 2 alarms and shelved one, but when I ran the script, it showed 3 shelved alarms.