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

Power-saver seems to be 2-hour off. #70

Open lillson opened 2 years ago

lillson commented 2 years ago

Why is the power-saver always staring at the lowest price an rising, and not when its on is way down. Or do i maybe have an timezone issue.
image

ottopaulsen commented 2 years ago

The Best Save node turns off when it sees lower prices in the future, and then turn on when the lower price is there. If the price is rising, and there is no lower price in the near future, there is nothing to save by turning off. "Near future" is within the max number of hours you have configured it to be turned off.

If the red curve is the price, you should not smooth it out as you have done. The price is not smooth. It is changing exactly every hour. It would be easier to read the graph then. For example, the second time power-saver turns on, it is probably for just one hour, and that hour the price is lower than it was before.

The first time it is on, there is no lower price in the future, within the max hours it can be off. The same goes for the third and fourth time.

You can copy the output from output 3 on the Best Save node and paste it into the Best Save Viewer. Then you can see how it works.

marhoy commented 1 year ago

@lillson I also thought there was something wrong with "Best Save", but this is the way it's supposed to work. You might want to select the n number of hours with lowest price instead, that's what I wanted.