Hello,
I have a functions with this code
msg.payload = "\{\"state\":\{\"on\":false,\"bri\":255,\"colormode\":\"ct\",\"ct\":5624,\"hex\":\"#FFF0E2\",\"hue\":5111,\"sat\":28\},\"name\":\"\",\"raw\":\{\"name\":\"\",\"power\":\"on\",\"bright\":\"100\",\"rgb\":\"16711680\",\"ct\":\"5624\",\"hue\":\"0\",\"sat\":\"100\",\"color_mode\":\"2\",\"delayoff\":\"0\",\"flowing\":\"0\",\"flow_params\":\"\",\"music_on\":\"0\"\}\}"; return msg;
and after this node i have a node "json", he transform my string into a json object
and after this i have the yeelight node
Everything looks like this ->
And when i click on the switch under the node yeelight, i have the error Command send error: -5001
Can you help me?
Thanck you very much
Hello, I have a functions with this code
And when i click on the switch under the node yeelight, i have the error Command send error: -5001
Can you help me?
Thanck you very much
msg.payload = "\{\"state\":\{\"on\":false,\"bri\":255,\"colormode\":\"ct\",\"ct\":5624,\"hex\":\"#FFF0E2\",\"hue\":5111,\"sat\":28\},\"name\":\"\",\"raw\":\{\"name\":\"\",\"power\":\"on\",\"bright\":\"100\",\"rgb\":\"16711680\",\"ct\":\"5624\",\"hue\":\"0\",\"sat\":\"100\",\"color_mode\":\"2\",\"delayoff\":\"0\",\"flowing\":\"0\",\"flow_params\":\"\",\"music_on\":\"0\"\}\}"; return msg;
and after this node i have a node "json", he transform my string into a json object and after this i have the yeelight node Everything looks like this ->