timed_charge_current updates at odd times/spikes to max
Describe the bug I'm using:
timed_charge_current:
- input_number.solis_battery_charge_rate_predbat
The input_number.solis_battery_charge_rate_predbat is updating only during a charge. I have charge_control_immediate: False and switch.predbat_set_charge_low_power: true set so expect the next charging session to be set with appropriate current.
Additionally, the charge appears to be updating to a large value before the charge ends, which is causing the battery SOC to suddenly increase much higher than predbat planned for.
Expected behavior I expect the set current to update when the plan updates, to either the required current for the in-progress charge, or the predicted required current for the next upcoming charge if there isn't a charge in progress.
Predbat version
8.3.7
Environment details
See #1375
Screenshots
This shows the massive increase at the end of a charge:
It is then stuck at that level even though the next planned charge only needs to increase 40% (which by my calculations should be about 15A):
The calibration chart shows a jump to that level wasn't as expected:
The night before it behaved, as the current decided to drop down to 0 before the end.
Log file Nothing relevant in the log.
More context.
Tonight the plan was to charge to a SOC which was lower than it was currently at:
When I looked at about 00:40, the charge current was still set to 72A where it had been since this afternoon's free charge, and it was charging at 72A despite needing a reduction in charge.
Extreme example of it spiking up to max. Seems to do it before reducing to 0:
As this ticket is old I'm going to close it, please re-open if the issue is there on latest.