springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
129 stars 44 forks source link

Constant hold charge at 100% #858

Closed Philhews closed 14 hours ago

Philhews commented 8 months ago

Describe the bug After charging to 100 the current slot is always set to hold charge 100 even when the grid cost is higher than the export of excess solar (even to the point of the first expensive agile slot)

Expected behavior When grid import cost goes above export price the system should be idle to allow battery use and refill rather than forcing grid use at expensive rates.

Predbat version

7.16.7

Environment details

Screenshots Screenshot_2024-03-17-09-45-48-42_c3a231c25ed346e59462e84656a70e50

Log file appdaemon.log

springfall2008 commented 8 months ago

I think this is due to having "metric_min_improvement(-0.4 p)" meaning you will charge now even if it costs 0.4p extra.

Can you try setting it back to 0?

Philhews commented 8 months ago

Don't think that's helped. Screenshot_2024-03-17-10-33-28-05_c3a231c25ed346e59462e84656a70e50

Philhews commented 8 months ago

Log file from it too appdaemon.log

Philhews commented 8 months ago

Having forced an idle and used some battery it seems it's happy to leave it on idle when below 100 Screenshot_2024-03-17-12-32-20-42_c3a231c25ed346e59462e84656a70e50

springfall2008 commented 8 months ago

Can you try changing 'metric_battery_value_scaling' to 1.0?

springfall2008 commented 8 months ago

Also I have a new release coming that might help with this too..

springfall2008 commented 8 months ago

Please try this one: https://github.com/springfall2008/batpred/releases/tag/v7.16.8

Philhews commented 8 months ago

Battery value scaling at 1, metric min improvement set to 0 and updated to .8 seems to look more sensible as an ahead plan, will leave it and keep an eye on what it does during the day. Screenshot_2024-03-18-09-23-36-93_c3a231c25ed346e59462e84656a70e50

Philhews commented 8 months ago

Having pulled in nord pool rates it went back to hold charge on an expensive slot. (10.10 plan). Changing metric min improvement to -0.2 removed the charges except on the current slot which is over 16p import. Screenshot_2024-03-18-10-14-45-53_c3a231c25ed346e59462e84656a70e50 Screenshot_2024-03-18-10-18-29-28_c3a231c25ed346e59462e84656a70e50 appdaemon.log

Philhews commented 8 months ago

Initially the hold charge went away at 4pm,but at 5 past it calculated and put it back in. This results in anything over solar pulling at 26p which can't be the best plan? Screenshot_2024-03-18-16-08-36-52_c3a231c25ed346e59462e84656a70e50 appdaemon.log

springfall2008 commented 14 hours ago

Closing this old ticket, please open a new one if you have an up to date question