What I really want is to set these two variables (temp and mode) that I’ll get from the HTTP request. The transformation will only read the mode but I haven’t figured that out yet, since “Left variable” device_mode_index
doesn’t exist? It only exists as a {{ variable "device_mode_index" false}}
, right?`
I’m getting this error for the Transform Map routine;
Executing Node.Name = transform device_mode_index
info fnode Transform type = map
warning fnode Error 2 : Not Found
error flow Node executed with error . Doing error transition to 28. Error : Not Found
My transform is like this;
{
"Id": "29",
"Type": "transform",
"Label": "transform device_mode_index",
"SuccessTransition": "28",
"TimeoutTransition": "",
"ErrorTransition": "28",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": "",
"IsLVariableGlobal": false,
"IsRVariableGlobal": false,
"IsTargetVariableGlobal": false,
"LVariableName": "device_mode_index",
"RValue": {
"Value": 0,
"ValueType": "int"
},
"RVariableName": "{{ variable \"device_mode_index\" false}}",
"Rtype": "var",
"TargetVariableName": "device_mode",
"TargetVariableType": "string",
"Template": "",
"TransformType": "map",
"ValueMapping": [
{
"LValue": {
"Value": 0,
"ValueType": "int"
},
"RValue": {
"Value": "auto",
"ValueType": "string"
}
},
{
"LValue": {
"Value": 1,
"ValueType": "int"
},
"RValue": {
"Value": "dry",
"ValueType": "string"
}
},
{
"LValue": {
"Value": 2,
"ValueType": "int"
},
"RValue": {
"Value": "cool",
"ValueType": "string"
}
},
{
"LValue": {
"Value": 3,
"ValueType": "int"
},
"RValue": {
"Value": "heat",
"ValueType": "string"
}
},
{
"LValue": {
"Value": 4,
"ValueType": "int"
},
"RValue": {
"Value": "fan",
"ValueType": "string"
}
}
],
"XPathMapping": [
{
"IsTargetVariableGlobal": false,
"Path": "",
"TargetVariableName": "",
"TargetVariableType": "",
"UpdateInputVariable": false
}
]
},
"Ui": {
"nodeType": "",
"x": 1783,
"y": 1207
},
"TypeAlias": "Transform"
}
Looks like it can’t find device_mode_index
?