Closed LL-Kool-Aid closed 4 years ago
Do you want to set it via the UI or via the incoming msg.payload
?
Msg.payload would be fantastic.
Get Outlook for Androidhttps://aka.ms/ghei36
From: danecreekphotography notifications@github.com Sent: Tuesday, August 18, 2020 7:07:02 AM To: danecreekphotography/node-red-contrib-wled2 node-red-contrib-wled2@noreply.github.com Cc: Andrew crowboy42@hotmail.com; Author author@noreply.github.com Subject: Re: [danecreekphotography/node-red-contrib-wled2] Add support for RGBWW LEDs. (#66)
Do you want to set it via the UI or via the incoming msg.payload?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/danecreekphotography/node-red-contrib-wled2/issues/66#issuecomment-675499540, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJRRS45FMPL7ZKTMK672SRLSBKDINANCNFSM4QC3X2QA.
So I think it will work via the payload already. Set payload.color1
to an array of four values with the 4th value being the W component:
"color1": [0, 0, 0, 128]
Let me know if that does/doesn't work.
That worked! Thank you very much.
From: danecreekphotography notifications@github.com Sent: Tuesday, August 18, 2020 10:55 AM To: danecreekphotography/node-red-contrib-wled2 node-red-contrib-wled2@noreply.github.com Cc: Andrew crowboy42@hotmail.com; Author author@noreply.github.com Subject: Re: [danecreekphotography/node-red-contrib-wled2] Add support for RGBWW LEDs. (#66)
So I think it will work via the payload already. Set payload.color1 to an array of four values with the 4th value being the W component:
"color1": [0, 0, 0, 128]
Let me know if that does/doesn't work.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/danecreekphotography/node-red-contrib-wled2/issues/66#issuecomment-675625828, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJRRS447UDFNHZP5W2RSH33SBK6B3ANCNFSM4QC3X2QA.
Nice! Now I just have to figure out how to support it via the UI.
Not gonna happen via the UI, but at least it's supported via the payload.
Hello, I understand that this issue has been closed, but is there any way that I could get a quick explanation on how to modify the msg.payload with the WLED node? I tried using the change node (before and after the WLED node) to set payload.color1 to "color1": [0, 0, 0, 128], but I didn't find any success in getting my WW LEDs to turn on. Unfortunately the online guides for changing the payload don't seem to be clicking with me today so I'm hoping that someone can point me in the correct direction on getting my WW leds to automatically turn on/off. Thanks for everything, I really appreciate the work you've done on this node making life easier for people like me.
Honestly I would ignore my node entirely and just directly send the JSON that WLED expects to receive using the http request
node. My wled2 node adds no value once you are sending payloads with JSON.
Documentation for the JSON API is at https://github.com/Aircoookie/WLED/wiki/JSON-API. If you have trouble getting it working the NodeRed forum is super helpful: https://discourse.nodered.org/
Okay that make sense. I appreciate the assistance.
Cannot control just the white LED's.