Thanks - it’s not the API I’m referring to, but rather the web-based API Tool (Ezlo API Tool). I use it to test the API calls before I code them and use the web sockets API.
The web tool only has a single line where you can enter a value string. So essentially, I need to paste in only:
I think you might have been suggesting to use the “Custom” command in the API tool? If so, instead of hub.item.value.set, select custom and paste in the raw JSON.
The web-based API tool is pretty weird here. The json format depends on the device type, but the UI doesn’t let you select a type. Still, the type is inferred, as the error you show says 'Unexpected Json format for value type ‘rgb’. I can better understand why you’re raising the question in the first place.
The only think I can think of is trying the value.set api on a normal on/off light, by using a boolean value. Maybe if you can get that simple input work, you can work out the right string for rgb.