Skip to content
Discussion options

You must be logged in to vote

setBulk takes an array itself, so you need another []:

{ 
    "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 [].

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jtronicus
Comment options

@kpine
Comment options

Comment options

You must be logged in to vote
1 reply
@jtronicus
Comment options

Answer selected by jtronicus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants