Skip to content

Nothing happening #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
milandzuris opened this issue Feb 24, 2024 · 1 comment
Open

Nothing happening #115

milandzuris opened this issue Feb 24, 2024 · 1 comment

Comments

@milandzuris
Copy link

Hi, idk what i'm doing wrong but nothing changes on my WLED
image
image

@tonydm
Copy link

tonydm commented May 7, 2025

I see that this is an old post from last year; was here looking for some clarification on documentation. But to answer your question, you need to send a JSON object in the msg.payload to the wled2 node. I use a timer to send either an on or off string value to a function node. There I set up the message to the wled2 node like this:

Hope this helps

Image

var action = msg.payload;
msg.payload = {
    state: action,
    preset: null
}
if (action == 'on') {
    msg.payload.preset = 1 // WLED Profile 1 (Nightlight)
} else {
    msg.payload.preset = 0 // No preset
}
return msg;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants