Controlling WLED - json modifiyng

hi, I'm trying to control a WLED instance and am currently encountering a small problem.

I take the actual state of the LED strip and store it. After a different shema (short blinking), it should be returned to the stored one. This works fine so far. But when I use a WLED preset, switching back ignores the state (on/off).

if (msg.topic==="recall") {
    msg.payload = context.get("laststate");
    return msg;
} else {

I think the preset information "ps":1 just needs to be deleted from string and then the power state (on: true/false) is valid again.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.