ottopaulsen / node-red-contrib-power-saver

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

Question: ps-lowest-price with tibber to charge battery in cheap hours #189

Open lfarndt opened 7 months ago

lfarndt commented 7 months ago

Hi, i want to control the charging of my battery with the lowest price node. image

Before noon i get only 24 price slots from tibber with the query, because the next day prices come later at that day. I want to charge 4 hours (cheapest time) on one day an consume that in the 4 expensiest hours. The expensiest hours i want to find as descriced in FAQ "highest prices".

I think before noon the output is correct, but there is a warning "no schedule"

After noon, when the next day prices are online, the tibber query has 48 prices. Now the 4 cheapest hours are chosen from the 48 prices. Am i right here?

How are the options to read?

image

Which day is ment, when i have 48prices?

Can you give me a hint on how to do it

thx Wolfgang

ottopaulsen commented 7 months ago

No, it is not choosing from all 48 hours. When you set up from time 00:00 and to time 00:00, it looks for the 4 cheapest hours during 24 hours starting at midnight. The reason you get No schedule before noon is probably because the cheapest hours has already passed. When you get prices for the next day, it will find the 4 cheapest hours for the next day.

You should be able to see the calculated result in your debug 9 node. Please include that output here if you have more questions.