Hello,
We are currently publishing data from AWS Greengrass (AWS IoT) and receiving it in Ignition through MQTT Distributor and MQTT Engine (Cirrus Link).
We have configured alarms on MQTT tags in Ignition. Please refer to the attached screenshot for reference.
Our requirement is to import alarm configuration for MQTT tags programmatically.
What We Tried
We used the system.tag.exportTags() function to export the tag configuration.
filePath = "C:\\Users\\Ckotadiya\\Downloads\\mqtttags1.json
tagPaths = "[MQTT Engine]Mimics/iotdata/RTN/W-RTN1-CM1-F-PV-NRTN total feed1/value"
system.tag.exportTags(filePath, tagPaths)
The exported JSON looks like this:
{
"alarms": [
{
"Mobno": "9762475626, 9553062578",
"activePipeline": "Dashboard/SMS_Notification",
"mode": "AboveValue",
"name": "TotalFeed",
"setpointA": 71.0
}
],
"dataType": "Float8",
"enabled": true,
"name": "value",
"readOnly": true,
"tagType": "AtomicTag",
"value": 71.37339782714844
}
Import Attempt
We then attempted to import this configuration using system.tag.importTags():
filePath = "C:\Users\Ckotadiya\Downloads\mqtttags1.json"
basePath = "[MQTT Engine]Mimics/iotdata/RTN/W-RTN1-CM1-F-PV-NRTN total feed1/value"
system.tag.importTags(filePath, basePath, "o")
However, we are receiving the following error:
[Bad_Unsupported]
Is it possible to import alarm configurations to MQTT tags, or is there a recommended approach for managing these configurations at scale?
Any guidance or best practices would be greatly appreciated.
Thanks,
Chirag
