{
  "ruleChain": {
    "name": "Airconditioners",
    "type": "CORE",
    "firstRuleNodeId": null,
    "root": false,
    "debugMode": false,
    "configuration": null,
    "additionalInfo": null
  },
  "metadata": {
    "version": 2,
    "firstNodeIndex": 0,
    "nodes": [
      {
        "type": "org.thingsboard.rule.engine.filter.TbOriginatorTypeSwitchNode",
        "name": "Test Device",
        "debugSettings": null,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "version": 0
        },
        "additionalInfo": {
          "layoutX": 301,
          "layoutY": 152
        }
      },
      {
        "type": "org.thingsboard.rule.engine.metadata.TbGetOriginatorFieldsNode",
        "name": "Get Device Fields",
        "debugSettings": null,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 1,
        "configuration": {
          "dataMapping": {
            "type": "deviceType",
            "name": "deviceName"
          },
          "fetchTo": "METADATA"
        },
        "additionalInfo": {
          "layoutX": 128,
          "layoutY": 280
        }
      },
      {
        "type": "org.thingsboard.rule.engine.filter.TbJsFilterNode",
        "name": "If Airconditioner",
        "debugSettings": null,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "jsScript": "return metadata.deviceType === 'airconditioner';"
        },
        "additionalInfo": {
          "layoutX": 128,
          "layoutY": 477
        }
      },
      {
        "type": "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode",
        "name": "Type switch",
        "debugSettings": null,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "version": 0
        },
        "additionalInfo": {
          "layoutX": 402,
          "layoutY": 378
        }
      },
      {
        "type": "org.thingsboard.rule.engine.action.TbAddToGroupNode",
        "name": "Add to Airconditioners",
        "debugSettings": null,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "groupNamePattern": "Airconditioners",
          "groupCacheExpiration": 300,
          "createGroupIfNotExists": true
        },
        "additionalInfo": {
          "layoutX": 677,
          "layoutY": 503
        }
      },
      {
        "type": "org.thingsboard.rule.engine.integration.TbIntegrationDownlinkNode",
        "name": "Airconditioners",
        "debugSettings": {
          "failuresEnabled": false,
          "allEnabled": false,
          "allEnabledUntil": 1753277036341
        },
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "integrationId": "f1638ff0-6631-11f0-849b-4b376fd671b7"
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 678,
          "layoutY": 251
        }
      },
      {
        "type": "org.thingsboard.rule.engine.metadata.TbGetAttributesNode",
        "name": "Get namespaceIndex value",
        "debugSettings": {
          "failuresEnabled": false,
          "allEnabled": false,
          "allEnabledUntil": 1753276759615
        },
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 1,
        "configuration": {
          "tellFailureIfAbsent": true,
          "fetchTo": "METADATA",
          "clientAttributeNames": [
            "namespaceIndex"
          ],
          "latestTsKeyNames": [],
          "serverAttributeNames": [],
          "sharedAttributeNames": [],
          "getLatestValueWithTs": false
        },
        "additionalInfo": {
          "description": "",
          "layoutX": 128,
          "layoutY": 377
        }
      }
    ],
    "connections": [
      {
        "fromIndex": 0,
        "toIndex": 1,
        "type": "Device"
      },
      {
        "fromIndex": 1,
        "toIndex": 6,
        "type": "Success"
      },
      {
        "fromIndex": 2,
        "toIndex": 3,
        "type": "True"
      },
      {
        "fromIndex": 3,
        "toIndex": 4,
        "type": "Post telemetry"
      },
      {
        "fromIndex": 3,
        "toIndex": 5,
        "type": "Attributes Updated"
      },
      {
        "fromIndex": 3,
        "toIndex": 5,
        "type": "RPC Request to Device"
      },
      {
        "fromIndex": 6,
        "toIndex": 2,
        "type": "Success"
      }
    ],
    "ruleChainConnections": null
  }
}