hamsando / node-red-contrib-stoptimer-varidelay

Apache License 2.0
7 stars 2 forks source link

stop in payload is not stopping timer #15

Closed Jai-Gogineni closed 1 year ago

Jai-Gogineni commented 2 years ago

Hi

msg.payload = {
        On :1,
        stop:1

    }
    msg.stop = true
return msg;

is not stopping timer it still executes am I missing anything ?

Thanks

hamsando commented 2 years ago

It only stops if msg.payload == "stop" You have other things in the payload, and the timer does not consider that as an instruction for itself.