-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duration parameter is buggy. #13
Comments
Thanks for sharing, I have not been able to test this very much since it requires you to debug during specific hours of the day unless running it in a simulated environment which I have not found time to create. For the but I could imagine it could miss to check current_hour, hence duration=1 would give only one possible slot. Could also be related to #12 where it's off-by-one. Cannot make any promises to investigate this now as I'm busy with the renovation but will keep in mind as soon as done. |
Please check if release 0.2.3 fixes the issue with duration = 1 |
This appears to still be an issue even today... |
From the last plot above I would say the following: |
With release of version 2 #45 I'm closing this as the code is completely rewritten. But feel free to reopen or create new issue if similar problem is still seen. |
In documentation: "duration can be in the range of 1 to 5 and specifies how large window of consecutive hours to slide forward in search for a minimum average price."
in my case I don't need hours to be consecutive, it can be 02:00, 04:00, 05:00... etc.
so "duration = 1" would be good for me, but when is set to one, the sensor is always ON.
in case:
and duration set to 2 sensor starts at 02:00, but the good price is also at 00:00 so one hour remains unused.
can "duration = 1" bug be fixed or I'm doing something wrong, because it always on for me.
edit: after midnight strategy changed and with "duration=2" all consecutive hours from 00:00 to 07:00 were used, so this time it worked ok. but another problem happened in post bellow.
The text was updated successfully, but these errors were encountered: