Using the rest API, I am making the following post and request and getting a 500 error. Any ideas?:
[{“capability”: “switchLevel”, “command”: “setLevel”, “arguments”: [ {“level”: “50”}, {“rate”: “1000”} ]}]
Note that if I simple send the “on” command, no problem.
What happens if you take the quotes off of 50 and 1000?
Thanks for the replay. Same thing, though. Doesn’t matter.
So, I found the issue. The documentation is very unclear, but I found some sample code. The issue is that the arguments array is simply an array of values. This works: [{“capability”: “switchLevel”, “command”: “setLevel”, “arguments”: [ 50 ] }]