Smart Energy Datapoint Condition Match
The following payload creates a Smart energy data point condition match alert. This alert type fires when the value reported in a DIA channel matches the condition criteria.
Values:
-
scope.type: One of Group, Device, or XBeeNode.
-
scope.value: If type is Group, then value is the full group path (with no leading slash). If type is Device, then value is the full device ID. If type is XBeeNode, then the value is the XBee node extended src address.
-
timeout: Fire or reset if the value matches for this amount of time.
-
timeUnit: One of seconds, minutes, hours.
-
operator: One of <, <=, >, >=, =, !=.
-
type: One of string or numeric.
-
thresholdValue: The target value for the condition.
-
attributeId: The XBee attribute id.
-
clusterId: The XBee cluster id.
-
clusterType: The XBee cluster type.
-
endpointId: The XBee endpoint id.
{
"type": "Smart energy data point condition match",
"scope": {
"type": "Group",
"value": ""
},
"fire": {
"disabled": false,
"parameters": {
"attributeId": "1",
"clusterId": "1794",
"clusterType": "0",
"endpointId": "1",
"thresholdValue": "50",
"timeUnit": "seconds",
"timeout": "1",
"type": "numeric"
}
},
"reset": {
"disabled": false,
"parameters": {
"attributeId": "1",
"clusterId": "1794",
"clusterType": "0",
"endpointId": "1",
"thresholdValue": "49",
"timeUnit": "seconds",
"timeout": "1",
"type": "numeric"
}
}
}