Files
esphome-yambms/packages
Sleeper85 249541420e Restore Float or EOC when charging is allowed again after Wait (#343)
When charging was not allowed, the status went to Wait, also from Float or
EOC. When charging was allowed again, the Init / Wait -> Bulk rule came
first in the rebulk chain, so a full battery got the Bulk voltage again
after any short block, without any rebulk rule being checked.

The status is now kept in var_charge_status_before_wait on entering Wait.
When charging is allowed again, Float or EOC is restored before the Force
Bulk and rebulk rules, which then decide whether a new Bulk is needed.
Any other status goes to Bulk as before.

A dedicated variable is used rather than var_eoc: Auto SoC Limit sets
Float without a full charge and leaves var_eoc false on purpose, and that
Float must be restored too.

Charging_logic documents when the status goes to Wait and what happens
when charging is allowed again.

Fixes #343
2026-11-11 00:41:13 +01:00
..