Hello everyone ,
I’m using system.tag.editAlarmConfig() in order to create new alarms. When using the alarm mode “On Condition” however, I have no idea of how to bind the “activeCondition” property to an expression.
Analyzing a similar, in the designer created, alarm with system.tag.getAlarmStates(), I can see that the type of the “activeCondition” property is “Expression”. All other properties are of type “Value”. Unfortunately, according to system.tag.editAlarmConfig, the alarm config PyDictionary only accepts nested lists with the format [“name”, “Value”, “newValue”]. And item 1 is always “Value”.
So I can do neither
alarmConfig[name].append(["activeCondition", "Type", "Expression"])
nor
alarmConfig[name].append(["activeCondition", "Value", "my alarm condition"]).
Is there any way to programmatically create the activeCondition binding for an alarm?
Markus