Open-source IoT Platform - Device management, data collection, processing and visualization.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

288 lines
6.9 KiB

{
"firstNodeIndex": 9,
"nodes": [
{
"additionalInfo": {
"layoutX": 999,
"layoutY": 271
},
"type": "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode",
"name": "Save Timeseries",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configurationVersion": 1,
"configuration": {
"defaultTTL": 0,
"useServerTs": false,
"processingSettings": {
"type": "ON_EVERY_MESSAGE"
}
}
},
{
"additionalInfo": {
"layoutX": 1000,
"layoutY": 167
},
"type": "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode",
"name": "Save Attributes",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configurationVersion": 3,
"configuration": {
"processingSettings": {
"type": "ON_EVERY_MESSAGE"
},
"scope": "CLIENT_SCOPE",
"notifyDevice": false,
"sendAttributesUpdatedNotification": false,
"updateAttributesOnlyOnValueChange": false
}
},
{
"additionalInfo": {
"layoutX": 566,
"layoutY": 302
},
"type": "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode",
"name": "Message Type Switch",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"version": 0
}
},
{
"additionalInfo": {
"layoutX": 1000,
"layoutY": 381
},
"type": "org.thingsboard.rule.engine.action.TbLogNode",
"name": "Log RPC from Device",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);"
}
},
{
"additionalInfo": {
"layoutX": 1000,
"layoutY": 494
},
"type": "org.thingsboard.rule.engine.action.TbLogNode",
"name": "Log Other",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);"
}
},
{
"additionalInfo": {
"layoutX": 1000,
"layoutY": 583
},
"type": "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode",
"name": "RPC Call Request",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"timeoutInSeconds": 60
}
},
{
"additionalInfo": {
"layoutX": 255,
"layoutY": 301
},
"type": "org.thingsboard.rule.engine.filter.TbOriginatorTypeFilterNode",
"name": "Is Entity Group",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"originatorTypes": [
"ENTITY_GROUP"
]
}
},
{
"additionalInfo": {
"layoutX": 319,
"layoutY": 109
},
"type": "org.thingsboard.rule.engine.filter.TbMsgTypeFilterNode",
"name": "Post attributes or RPC request",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"messageTypes": [
"POST_ATTRIBUTES_REQUEST",
"RPC_CALL_FROM_SERVER_TO_DEVICE"
]
}
},
{
"additionalInfo": {
"layoutX": 627,
"layoutY": 108
},
"type": "org.thingsboard.rule.engine.transform.TbDuplicateMsgToGroupNode",
"name": "Duplicate To Group Entities",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configurationVersion": 1,
"configuration": {
"entityGroupId": null,
"entityGroupIsMessageOriginator": true
}
},
{
"additionalInfo": {
"description": "Process incoming messages from devices with the alarm rules defined in the device profile. Dispatch all incoming messages with \"Success\" relation type.",
"layoutX": 137,
"layoutY": 415
},
"type": "org.thingsboard.rule.engine.profile.TbDeviceProfileNode",
"name": "Device Profile Node",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"persistAlarmRulesState": false,
"fetchAlarmRulesStateOnStart": false
}
},
{
"additionalInfo": {
"description": "Forwards message to the \"Generate Report\" rule chain",
"layoutX": 1004,
"layoutY": 690
},
"type": "org.thingsboard.rule.engine.flow.TbRuleChainInputNode",
"name": "Generate Report",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"ruleChainId": "242ca320-59f8-11ed-b51b-0ffc9b098df8"
}
},
{
"additionalInfo": {
"description": "",
"layoutX": 370,
"layoutY": 461
},
"type": "org.thingsboard.rule.engine.integration.TbIntegrationDownlinkNode",
"name": "Send message",
"debugSettings": {
"failuresEnabled": false,
"allEnabled": true,
"allEnabledUntil": 0
},
"configuration": {
"integrationId": "d8eb67d0-550f-11ed-bb6e-8f34ea6bbc86"
}
}
],
"connections": [
{
"fromIndex": 2,
"toIndex": 0,
"type": "Post telemetry"
},
{
"fromIndex": 2,
"toIndex": 1,
"type": "Post attributes"
},
{
"fromIndex": 2,
"toIndex": 3,
"type": "RPC Request from Device"
},
{
"fromIndex": 2,
"toIndex": 4,
"type": "Other"
},
{
"fromIndex": 2,
"toIndex": 5,
"type": "RPC Request to Device"
},
{
"fromIndex": 2,
"toIndex": 10,
"type": "Generate Report"
},
{
"fromIndex": 6,
"toIndex": 2,
"type": "False"
},
{
"fromIndex": 6,
"toIndex": 7,
"type": "True"
},
{
"fromIndex": 7,
"toIndex": 2,
"type": "False"
},
{
"fromIndex": 7,
"toIndex": 8,
"type": "True"
},
{
"fromIndex": 8,
"toIndex": 2,
"type": "Success"
},
{
"fromIndex": 9,
"toIndex": 6,
"type": "Success"
},
{
"fromIndex": 2,
"toIndex": 11,
"type": "Attributes Updated"
}
],
"ruleChainConnections": null
}