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:
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:
- Driver does not appear to accept the string (formatted as JSON) argument.
- I cannot get context variable in to a JSON argument.