Rule engine: Set color: Set color by numerical value

I am now trying to get a similar rule setup to generate random colors for a Z-Wave RGBW Controller (Fibaro). I am using a custom driver.

I cannot seem to get it to work like I have for Zigbee devices I did before. When I try to send a string (formatted as a JSON formatted argument):

{"hue": {{$context.response.data.result}}, "saturation": 100, "level": 50}

I get the following in the logs:

Screen Shot 2022-09-08 at 12.11.05 PM

In another test I submitted the argument as a JSON (versus string) without the random number context variable and it works.

However, in the JSON I can’t seem to format the context variable correctly. Is it even possible?

To summarize:

  1. Driver does not appear to accept the string (formatted as JSON) argument.
  2. I cannot get context variable in to a JSON argument.