Skip to content
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

Playlists always append an "on:true" #4557

Open
1 task done
DarthWeber opened this issue Feb 15, 2025 · 9 comments
Open
1 task done

Playlists always append an "on:true" #4557

DarthWeber opened this issue Feb 15, 2025 · 9 comments
Labels
confirmed The bug is reproducable and confirmed

Comments

@DarthWeber
Copy link

What happened?

My goal is to realize a secure relay timer on an GPIO (external multirelay pin). I did a playlist like:

{"playlist":{"ps":[201,202],"dur":[10,10],"transition":[0,0],"repeat":1,"end":0,"r":false}}

but after saving this to the presets it will be appendend by an "on:true", but i don't want the main power to come up too.

To Reproduce Bug

see above

Expected Behavior

a playlist without "on:true"

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@DarthWeber DarthWeber added the bug label Feb 15, 2025
@DedeHai DedeHai removed the bug label Feb 15, 2025
@DedeHai
Copy link
Collaborator

DedeHai commented Feb 15, 2025

it will be appendend by an "on:true", but i don't want the main power to come up too.

this is the default behaviour. why cant you just delete the "on:true" from the playlist if you dont need it?

@DarthWeber
Copy link
Author

That is the isdue: If i delete that part it will be added again after vsave

@DedeHai
Copy link
Collaborator

DedeHai commented Feb 15, 2025

ah I see, can confirm that. I do not know the reason it is that way but it looks like it is intentional.

@DedeHai DedeHai added the confirmed The bug is reproducable and confirmed label Feb 15, 2025
@blazoncek
Copy link
Collaborator

It is intentional.

@dosipod
Copy link
Contributor

dosipod commented Feb 16, 2025

Some of the guys reported that multiple times on discord and not really sure of the intended reasoning for it as if you
want the unit to be on then that could be done in the presets but not the main playlist .This prevented a lot of the
possibility for semi automation .

@netmindz
Copy link
Member

It is intentional.

Why are we forcing on:true if the user did not request?

@DarthWeber
Copy link
Author

Thanks, that is what i also thought. Playlists could be more flexible wirhout forcing on the main output.

Maybe move to feature requests?

@blazoncek
Copy link
Collaborator

if the user did not request

User did request. In a lost post on Discord, quite a while ago.
I do not care if someone now requests removal of this feature. I will surely not do it but someone else might.
Expect going back and forth with it.

@DarthWeber
Copy link
Author

Would be great to understand the reason instead of moving back and forth.

In my eyes rhe json of a playlist should be saved as you modified it - with or wirhout that "on" statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed The bug is reproducable and confirmed
Projects
None yet
Development

No branches or pull requests

5 participants