Open LG1990 opened 4 years ago
Did you got this working? I'm running into the same issue.
Be great to get this solved.
This is another way to do it without these nodes. You need to manually edit the function and http node with the correct token and ID:
[{"id":"9d5e2dfb25c61856","type":"debug","z":"7551d37b.9fcfdc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":2260,"wires":[]},{"id":"78fd2e3725ce678f","type":"http request","z":"7551d37b.9fcfdc","name":"","method":"PUT","ret":"txt","paytoqs":"ignore","url":"https://api.lifx.com/v1/scenes/scene_id:PUT_SCENE_ID_HERE/activate","tls":"","persist":false,"proxy":"","authType":"","credentials":{"user":"","password":""},"x":610,"y":2260,"wires":[["9d5e2dfb25c61856"]]},{"id":"803889354baaa6b0","type":"function","z":"7551d37b.9fcfdc","name":"","func":"msg.headers = {\n Authorization: \"Bearer \"+ \"PUT_LIFX_TOKEN_HERE\"\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":2260,"wires":[["78fd2e3725ce678f"]]},{"id":"3360f7c34b1d2b7a","type":"inject","z":"7551d37b.9fcfdc","name":"","props":[{"p":"payload.duration","v":"100","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":270,"y":2260,"wires":[["803889354baaa6b0"]]}]
But I would prefer it to be resolved of course.
I've a problem similar to a previously solved issue: I'm not able to activate a scene in v.1.2.1 (node-red 0.20.8).
I can do it via support page https://api.developer.lifx.com/docs/activate-scene, but not from the node itself.
I define:
Nothing, happens and the json i get back is empty: {"_msgid":"628dfd47.d5f8b4","topic":""}
I also tried to activate scene using the "Set State" by specifying the scene_id as selector, but nothing happens.
Everything else works fine.
Hope you could help!