mattmattmatt / node-red-contrib-yeelight-compat-hue

💡 A Node-RED node for controlling Yeelight devices, compatible with node-red-contrib-node-hue flows.
https://flows.nodered.org/node/node-red-contrib-yeelight-compat-hue
MIT License
10 stars 12 forks source link

My Lamp doesn't respond #20

Open Mlebailly22 opened 4 years ago

Mlebailly22 commented 4 years ago

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 -> image 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

S474N commented 4 years ago

Can you try simple injection, if it works?

{"on": true,"ct": 1700, "bri": 1, "duration": 500}