{
  "name": "Tuya Downlink Converter",
  "type": "DOWNLINK",
  "integrationType": "TUYA",
  "debugMode": false,
  "debugSettings": {
    "failuresEnabled": true,
    "allEnabled": false,
    "allEnabledUntil": 0
  },
  "configuration": {
    "scriptLang": "TBEL",
    "decoder": null,
    "tbelDecoder": null,
    "encoder": null,
    "tbelEncoder": "/** Encoder **/\n\nvar command = {};\ncommand[\"code\"] = msg.method;\nif (msg.params == \"false\" || msg.params == \"true\") {\n    command[\"value\"] = Boolean.valueOf(msg.params);\n} else {\n    command[\"value\"] = msg.params;\n}\n\nvar result = {\n    contentType: \"JSON\",\n    data: JSON.stringify(command),\n    metadata: {\n        deviceId: metadata.deviceName\n    }\n};\n\nreturn result;",
    "updateOnlyKeys": []
  },
  "additionalInfo": {
    "description": ""
  },
  "edgeTemplate": false,
  "converterVersion": 1
}
