ottopaulsen / node-red-contrib-power-saver

A Node-RED node to saver money by turning off when the power is most expensive
Other
71 stars 17 forks source link

Issue: Not able to reset Schedule in Schedule Merger node #192

Open Vantive1 opened 10 months ago

Vantive1 commented 10 months ago

Hi

I'm not able to reset a schedule that has been created with Schedule Merger node. I inject the following with an inject node JSON payload (msg.payload=):

{
    "commands": {
        "reset": true
    }
}

I then use the following with another inject node which as outputs the previously generated schedule. The schedule is not removed as expected. I expect the Schedule Merger node NOT to output a schedule after "reset": true

{
    "commands": {
        "sendSchedule": true
    }
}

The Schedule Merger node is in "OR" mode, could it be some invisible context variable that is not reset?

The reset command works perfectly with strategy node Best save as expected with the above commands. Am I missing something or is there a code issue? Thanks!

ottopaulsen commented 10 months ago

Looks like a bug. I will check when I get the time.

ottopaulsen commented 10 months ago

@europer Your comments have nothing to do with @Vantive1's issue. Please create a new issue for your questions.