You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Playlist doesn't stop on ir remote FX command #4349
I have 38 keys IR with default config and playlist.
If the playlist has begun, it does not stop when another effect is called using the remote control.
I try Rainbow key as test, but Rainbow is canceled by the next effect of the playlist after some timeout.
To Reproduce Bug
create at least 1 preset and one playlist.
Select playlist as current effect.
Press ir remote button with next config:
"0xXXXXXX": {
"label": "Fire",
"pos": "6x4",
"cmnt": "Fire 2012",
"cmd": "FX=66&FP=35"
}
Expected Behavior
IR remote button stopped playlist and set selected effect.
Install Method
Binary from WLED.me
What version of WLED?
WLED 0.15.0-rc1 (build 2411250)
Which microcontroller/board are you seeing the problem on?
Please use JSON API and the playlist will be unloaded.
The HTTP API behaviour is such by design.
// set effect parametersif (updateVal(req.c_str(), "FX=", &effectIn, 0, strip.getModeCount()-1)) {
if (request != nullptr) unloadPlaylist(); // unload playlist if changing FX using web request
fxModeChanged = true;
}
Using HTTP API in ir_remote.json ("cmd": "FX=66&FP=35") playlist will not be unloaded in WLED 0.15.0-rc1 (build 2411250).
Using preset in ir_remote.json ("cmd": "!presetFallback","PL": 1) playlist will be unloaded in WLED 0.15.0-rc1 (build 2411250).
Effect call in ir_remote.json ("cmd": "!presetFallback","FX": 66) not work, and call preset whith id=1 if exist.
How i may unload playlist using ir_remote.json without call any preset, such as third example?
We didn't merge the rewrite , only the null pointer check to fix the crash case. There were still a number of other issues with it I haven't had a chance to address yet.
Activity
blazoncek commentedon Dec 7, 2024
Please use JSON API and the playlist will be unloaded.
The HTTP API behaviour is such by design.
Niorix commentedon Dec 9, 2024
Thanks for reply!
How i may unload playlist using ir_remote.json without call any preset, such as third example?
blazoncek commentedon Dec 9, 2024
Use JSON API.
Niorix commentedon Dec 12, 2024
I understand you. I used {"seg": {"fx": 66}}. It's worked.
blazoncek commentedon Dec 12, 2024
@willmmiles you may need to revisit HTTP API rewrite to see if original behaviour still exists.
willmmiles commentedon Dec 12, 2024
We didn't merge the rewrite , only the null pointer check to fix the crash case. There were still a number of other issues with it I haven't had a chance to address yet.