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