-
I have a device that I am trying to set 7 sequential parameters all at once using setBulk over MQTT, but so far I have been unsuccessful. This is what I am trying: MQTT Topic: MQTT Payload:
And this is the error I receive:
Based on the error message I assume values array is not correct, but I have not been able to find any documentation that shows me how the payload should be formatted. Does anyone know what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
What is the device? |
Beta Was this translation helpful? Give feedback.
-
{
"args": [
{
"nodeId": 48,
"commandClass": 112,
"endpoint": 0 },
"setBulk",
[
[
{"parameter": 4, "value": 1},
{"parameter": 5, "value": 99}
]
]
]
} MQTT is expecting an array of function arguments. In this case, there's one argument which is also an array. If you were using a different API with multiple arguments (e.g. MultilevelSwitch set), it would work with just the outer |
Beta Was this translation helpful? Give feedback.
-
Thanks @kpine |
Beta Was this translation helpful? Give feedback.
setBulk
takes an array itself, so you need another[]
:MQTT is expecting an array of function arguments. In this case, there's one argument which is also an array. If you were using a different API with multiple arguments (e.g. MultilevelSwitch set), it would work with just the outer
[]
.