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

Invalid Context key. #57

Closed Siroguh closed 2 years ago

Siroguh commented 2 years ago

I've been using this module for two weeks. Today it stopped working with a message of invalid context key. I've reset my settings for context but Lowest Price is still just reporting "invalid context key". I've also tried uninstalling Power Saver.

Strangely, if I go to my context files, i can see the module is actually writing in them, just not outputting the result in node red.

A debug node in price receiver reports as usual. A debug node in best save reports nothing.

Here's an example of my context file

4b9101fb966310bd.txt

Screenshot_20220531_011841 .

Siroguh commented 2 years ago

Well, I just realized that my js script doesn't handle change of month, so my priceData.start values were wrong, 01-05 instead of the correct 01-06 (June)