-
-
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 not working #65
Comments
Is it always like this, that it turn off after 1 hour? |
What would help in understanding what's happening is if you could add a screenshot of state history like this, with at least 23h (your search length) after the faulty behavior of binary sensor. Should maybe clarify that setting the duration to 5h as in your example does not guarantee that you get 5h consecutive ON. It's just the number of consecutive hours to average when searching for the lowest average cost. So let's as example say you have a 5h time-span during every night where the electricity price is much cheaper than the rest of the hours (and have a 23h search length), you would then find that spot during the whole day and wait for it to happen, but halfway or so into that period the next nights cheap span will start appearing in the horizon of your search and if this average turn out to be cheaper than your current 5h average (from current hour and 5h forward) it will turn off and wait for the next night. So if you really want to achieve a 5h consecutive ON-period you likely need to add some automation to the binary switch to ensure that. (I'll think of if it might be something to add to the integration, but a bit tricky to keep history data in internal logic, similar as I'm struggling with the "static" planner #54 ) |
I don't think I have changed the expected design in that concern, but are some pretty large reworks in between v1 and v2. So either I have missed something in v2 (and if so I would like to know of it and fix), or it was actually a bug in v1 that worked in your favor but now is fixed. If you can pin-point a specific time where you believe it should have stayed on, please share that history so that I can look in to the logic. (You should be able to add two integrations with different configurations)
Yes agree, I have some todo on that part, most of it is mentioned in #54, but are some concerns that I don't know howe to tackle. Have you tried tweaking the "accept_rate" config? If you have a price profile as in last picture your average price should be in the area of 0.30, setting an accept-rate of 0,5 should then turn on for every price below 0,15. |
accept_rate is an good point i will try this. |
Hi,
after upgrade to 2.0.4 and migrate my old config, the duration (i.e. 3 hours) is not working correctly.
i have configured a 3 hours duration for a device, the starttime is looks good, but after one hour the planner switches off,,,
does anybody has similar issues?
The text was updated successfully, but these errors were encountered: