dala318 / nordpool_planner

nordpool_planner custom component for Home Assistant
MIT License
18 stars 4 forks source link

Plan electricity in a time-slot #7

Closed dala318 closed 1 year ago

dala318 commented 1 year ago

For some usages a search time-span always moving ahead on now is not the best option, e.g. charging a car over night. In that case it would more optimal to give an end-time and a total amount of hours needed, maybe also a boolean if the hours given must be consecutive or can be split in sections. One thing to consider that may interfere with current logic is that the fact that it currently has no persistent state data, meaning several hours ahead of end-time the best hours could be selected, but as moving closer to that time there is less to choose from and if it's not remembering how many hours already used it will eventually end up choosing all remaining.

flippz commented 1 year ago

Could it not do the calculations of lowes price at time 00:00 and then find it within the next 24H and stick to what hours it finds?

dala318 commented 1 year ago

Still need a persistent storage of the found hours, but yes, should not be to complicated to solve. Right now I'm busy with other things so might be some while before revisiting this project. But feel free to contribute if you have some thoughts or knowledge.