Yes. It used to take 3, now it can be done with 1 ( because @bravenel is the greatest and added the capability) - see below.
" Added color map for setColor command in Maker API, and URLdecode for secondary params. To use the color map, this is the format: {"hue":88,"saturation":50,"level":90}"
Example I have been using on my one and only color bulb to set color to red when the alarm is on: {"hue":99,"saturation":100,"level":25}
@bravenel hello Bruce I tried several time to use the api maker to send a command to a color bulb, this is what I used:
“http://192.168.2.xx/apps/api/621/devices/190/setColor/{“hue”:88,”saturation”:99,”level”:35}?access_token=abc…”
And this is from the log:
2022-08-17 11:16:41.341 am errorgroovy.json.JsonException: expecting '}' or ',' but got current char '“' with an int value of 8220 The current character read is '“' with an int value of 8220 expecting '}' or ',' but got current char '“' with an int value of 8220 line number 1 index number 1 {“hue”:88,”saturation”:99,”level”:35} .^ on line 467 (method sendDeviceCommandSecondary)
Could you please tell me where I’m going wrong, I have also tried the {“hex”:”DECAFE”} and get the same error
That looks like a broken quote(s). When you copy/paste strings on some systems (I think Macs in particular), they want to convert the straight quotes (ASCII 34) to a fancier typographically attractive version (8220) for pretty documents, but that's not good for JSON and most programming languages. Don't use Word or anything other than a plain text editor to hold text, and know that if you copy text from posts here that look like this {"hue":88,"saturation":50,"level":90} instead of this {"hue":88,"saturation":50,"level":90} (notice the monospaced type face) it will likely be broken.
Try using this (your URL fragment with quotes fixed, formatted to preserve quotes):
@toggledbits, thank you so much, that worked excellent. I tried both and got the results back, I would never thought the fancy quotes till you pointed that out, I was using iPad with note pad never again.