Files
esphome-yambms/documents/README
Sleeper85 c9502bd196 Fix Requested Force Charge turning on while no BMS is combined (#346)
The binary sensor lambda was evaluated on every loop, including while no
BMS was combined (boot, BMS dropout). The SoC was NaN then, and
`int soc = NaN` is undefined: the request could turn on, and with a real
SoC between Start and Stop it stayed on until Stop SoC once the packs came
back.

The rule now runs in STEP 3, inside the "At least one BMS combined" block,
and publishes the sensor. While no BMS is combined it is not evaluated, so
the request keeps its last state. The SoC is read as a float: a NaN fails
both comparisons and keeps the current state too. The "Request force
charge" switch clears the request at once with an on_turn_off, even while
no BMS is combined.

Reported in #346, first fix proposed in #347.
2026-11-10 22:02:11 +01:00
..
2026-11-08 23:08:32 +01:00
2025-12-29 13:49:30 +01:00
2026-02-02 14:25:04 +01:00
2026-01-15 18:54:26 +01:00
2026-01-15 18:54:26 +01:00
2026-06-29 01:17:05 +02:00
2026-11-08 23:08:34 +01:00
2026-11-08 23:08:34 +01:00