33 Commits
Author SHA1 Message Date
Sleeper85 bd7c20cd7e Auto Float - Keep the Bulk CVL when Float starts (#353)
Outside Float, the Auto Float interval cleared var_auto_float to 0. When
Float started, the CVL dropped to the final Float voltage for up to 60s,
then rose back to Bulk on the next interval tick before the step-down.

The delta is now kept armed at Bulk - Float outside Float. The core only
adds it while the instruction is Float, so Bulk and Stop are unchanged,
and the first Float CVL is the Bulk voltage.

Issue #353
2026-11-17 20:28:11 +01:00
Sleeper85 dfbe4805ad Auto SoC Limit - Follow the Max Charge Current while the CCL limit is held
In the CCL and Float + CCL modes, the offset -(Max Charge Current - Auto
SoC Limit CCL) was computed once, when the target SoC was reached, and
then kept until the SoC dropped below the hysteresis. If the Max Charge
Current increased in the meantime (a pack rejoining the bank, a BMS
raising its limit), the cached offset applied to the larger maximum
released the limit: e.g. 141A requested instead of 1A.

While the target is reached in a CCL mode, the offset is now recomputed
on every pass, before the 60s throttle. A NaN Max Charge Current leaves
the previous offset in place.

Reported in #352
2026-11-14 20:24:19 +01:00
Sleeper85 21c0251309 YamBMS - Apply the Auto Float adjustment to the Float voltage only
The 1.8.0 CVL rework added the Auto Float delta to the requested charge
voltage for every charging instruction. Auto Float clears that delta on
its own 60s interval once the instruction is no longer Float, so after a
Float => Bulk transition (Force Bulk, rebulk rules, Force Charge) the CVL
was the Bulk voltage plus the delta for up to 60s. The delta can reach
Bulk - Float when Float has just been entered.

The delta is now added in the Float branch only, as in 1.7.0. Auto CVL
and the custom CVL still apply to every instruction.

Reported in #352
2026-11-14 20:24:12 +01:00
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
Sleeper85 cab5a63e0e Docs: Rewrite the inverter brand and protocol section
Lead with the three setup steps: select the inverter brand, leave
Protocol on Automatic, then configure the inverter from the dashboard.
Forcing a protocol moves to its own subsection, as the exception it is.

The screenshot now shows the brand and protocol selects and the active
protocol card, and replaces YamBMS_CANBUS_Protocol.png.
2026-11-08 23:08:34 +01:00
Sleeper85 cb9638653d Docs: The CCL/DCL divider counts declared links
Document that every declared CAN or RS485 inverter link divides the requested
CCL/DCL, including a link whose protocol is `Disabled` or left on `Automatic`
with no brand, and that only links actually wired to an inverter should be
declared.

Design_decisions.md records why the divider must not be restricted to active
links: a disabled link usually still has an inverter drawing from the bank, an
unconfigured link is the state every link starts in after 1.8.0, and a lost
link must never raise the current sent to the remaining inverters.

YamBMS_functions.md: fix the RS485 package name (`yambms_rs485.yaml`).
2026-11-08 23:08:34 +01:00
Sebastian a4844fc947 YamBMS: Auto EOC 24h charging window (#338)
Auto EOC assumed daylight charging: the target was always today and the
target hour was limited to 12-23, so a night window could not be planned.

- New Auto EOC Start Hour/Minute define the charging window from the
  start time to the next target time. It may cross midnight
  (e.g. 22:00 -> 06:00 for grid charging); start = target is 24h.
- Target hour can be set from 0 to 23.
- Outside the window the status is "Wait: Starts at hh:mm" instead of
  "Stop: Target time passed". The 1h grace period is unchanged and has
  priority over a window starting within it.
- Times are local and DST safe.
- Default start 00:00 keeps the previous daylight behaviour.
- Dashboards, docs and changelog updated.
2026-11-08 23:08:34 +01:00
Sleeper85 ee12380087 YamBMS: Inverter brand registry and RS485 entry point
Rename the inverter registry to yambms_brand_registry.yaml and add the new brands.
yambms_rs485.yaml becomes the file to include, with a rs485_protocol var that
selects PYLON or Voltronic LIB.
2026-11-08 23:08:34 +01:00
Sleeper85 281d39ac18 New inverter brand select drives the CAN and RS485 protocol
BREAKING CHANGE: both inverter link selects are renamed, so their stored value is
reset. The link stays inactive until an inverter brand is selected. See
documents/README/changelog/Changelog_Inverter_brand_and_protocol.md

New `Inverter brand` select (16 brands) and reworked `Protocol` select, now
defaulting to `Automatic`. Selecting the brand is enough, the protocol follows;
an explicit protocol still takes priority over the brand.

The protocol is resolved once, at boot and on every select change, into
`canbus${canbus_id}_active_protocol` / `rs485${rs485_id}_active_protocol`.
Everything else reads that integer instead of dispatching on `active_index()`,
where `== 5` meant LuxPower purely by convention of the option order.

New shared `yambms_inverter_registry.yaml`: protocol dictionary (`YB_PROTO_*`),
brand to protocol mapping, and the battery mode and note of each couple.

Removed the `YamBMS name` select: the manufacturer name sent on CAN frame 0x35E
now derives from the protocol in use, which is what `Automatic` already did.

Removed the `canbus_extended_ack` substitution: both the 11-bit and the 29-bit
ACK triggers are registered, so the Schneider XW Pro needs no configuration.

Renamed CAN `PYLON 1.2` to `PYLON V1` and RS485 `Pylontech` to `PYLON`.

New per-link diagnostics `Inverter link protocol`, `Inverter battery mode` and
`Note`, with a markdown card in the dashboards, alongside a system fault card.

Telemetry: `comm_bus` / `comm_protocol` replaced by `inverter_brand`,
`inverter_bus`, `inverter_protocol` and `inverter_protocol_source`, one slot per
declared link instead of a single value overwritten by the last one.

RS485 packages split: `yambms_rs485.yaml` is the entry point carrying the selects,
`yambms_rs485_pylon.yaml` the protocol implementation. The baud rate is applied
with `set_baud_rate()` + `load_settings()` instead of extending the uart
component, so boards using a UART expander no longer need their own include.

Fixes:
- the CAN bus kept re-emitting the last frame every 100 ms when the protocol was
  set to `Disabled` at runtime
- the RS485 link kept answering the inverter with stale data on `Disabled`, the
  proxy sensors it reads are now invalidated
- a `Disabled` link no longer lights the fault LED, it is unregistered from the
  fault registry instead of being reported as failing
- the reported bus and protocol were overwritten when a node declares several
  inverter links
- changing the protocol restarts the CAN frames immediately instead of waiting up
  to 30 s for the next retry tick
2026-11-08 23:08:33 +01:00
Sleeper85 7fc55192c8 Updated Auto CVL changelog 1.8.0 2026-11-08 23:08:33 +01:00
Sleeper85 b7bb2e93ea Moved Auto CCL Current Taper section 2026-11-08 23:08:33 +01:00
Sleeper85 9f90436849 Multi-inverter support, division of CCL/DCL by the number of inverters/chargers 2026-11-08 23:08:33 +01:00
Sleeper85 4d4d11e832 Auto CVL - Float / Stop (suspended) 2026-11-08 23:08:32 +01:00
Sleeper85 20dd8bcd23 Updated README 2026-11-08 23:08:32 +01:00
haysdb a927f7c9b3 Auto CCL Current Taper (#303)
This YAML file implements the Auto CCL Current Taper feature for the YamBMS project, defining various parameters and logic for charge current tapering during battery charging.
2026-11-08 23:08:32 +01:00
Sebastian 59f844d650 Add grace period to Auto EOC (#290)
* Add grace period to Auto EOC
* Smooth remaining capacity for Auto EOC
2026-11-08 23:08:32 +01:00
Sleeper85 978c634eb9 Improved YamBMS 1.7.1 Cut-Off charging logic 2026-11-08 23:08:32 +01:00
Sleeper85 ace919a175 Improved README after adding max currend c-rate based limit 2026-11-08 23:08:31 +01:00
Sebastian 62791addde Add support for Rebulk Days (#259)
This adds `Rebulk Days` which specify the number of days since last full charge to enter `Bulk` again. It works like `Rebulk SoC` or `Rebulk V.` and can be disabled by setting it to 0 days.
2026-03-16 17:38:28 +01:00
Sebastian c5d9fdd66a Auto EOC: Factor in Auto SoC Limit for battery capacity calculation (#258) 2026-03-15 11:26:38 +01:00
Sebastian 11464f4ad2 Improve Auto SoC Limit function (#256)
- Disable when `Force Bulk` is active
- Disable when charging status is not `Bulk` or `Float`
- Add additional status messages to make clear what happens
2026-03-15 11:25:36 +01:00
Sebastian 78aff46702 Add support for Auto SoC Limit (#255) 2026-03-11 23:17:22 +01:00
MrPabloUK 8490f9c4ad CCL, DCL and Auto Temp Current Control (#147)
* CCL, DCL and Auto Temp Current Control

* Added following:
- Update temperature based current derating, now uses calibrate_linear
- Revised CCL and DCL to correctly apply derating when multiple functions are enabled
- Added diagnostic sensor showing derating reason
* Changed referenced sensor for Auto DCP temperature derating
* Updated Auto Temp logic
* Add documentation, rename package
2026-01-06 18:01:45 +01:00
Sleeper85 1a7f83f9ec Documentation of the new calculation of the maximum current 2025-12-28 20:03:29 +01:00
Sebastian 60e96b1cd8 Add Auto EOC function
This function allows to set a target time when `Bulk` charging.
It limits the `Requested Charge Current (CCL)` so the battery should
reach full charge at the specified time.
2025-08-13 20:44:27 +02:00
Sleeper85 2d0a602e70 Improved Auto functions readme 2025-07-30 12:08:28 +02:00
Sleeper85 a6e4f24df5 Update YamBMS_functions.md 2025-06-23 13:11:09 +02:00
Sleeper85 345181c185 YamBMS 1.5.7 - Auto Float function 2025-06-19 22:11:27 +02:00
Sleeper85 da658defd8 Update README 2025-02-20 16:43:04 +01:00
Sleeper85 f193e27e83 Auto CCL-DCL based on OVP-UVP 2024-12-21 15:49:21 +01:00
Sleeper85 aab1985f67 Update README files 2024-11-16 19:35:18 +01:00
Sleeper85 f9287cb391 Update YamBMS_functions.md 2024-11-04 10:18:15 +01:00
Sleeper85 da7d3a43f5 YamBMS 1.4.5 2024-10-07 18:25:33 +02:00