28 Commits
Author SHA1 Message Date
Sleeper85 7d347ae626 Examples - Add bms_fake_equalizing_enabled
Every example including a BMS that ships Fake Equalizing (EG4 LL V2,
Seplos V1/V2, Seplos V3, Demo BMS) now declares
bms_fake_equalizing_enabled on each BMS, with a comment explaining what
enabling it does and warning that a BMS without a balancer can stay in
Cut-Off for a long time before reaching EOC.

The EG4 and Seplos examples set it to 'false', the package default. The
DEMO examples set it to 'true'.
2026-11-19 04:18:57 +01:00
Sleeper85 c428e3470f Examples - EG4 LL V2 RP example: BMS 3 used bms_id 2
The third BMS block of RP_BMS_example_EG4_LLV2_RS485_Modbus.yaml declared
bms_id: '2', a duplicate of BMS 2. It now uses bms_id: '3'.
2026-11-19 02:31:42 +01:00
Sleeper85 bb071e6565 JK RS485 - Load the components 1.2 from @dev and remove protocol_version
The sniffer packages load the JK RS485 components from the dev branch of
Sleeper85/esphome-components (JK RS485 1.2) until it is tested and merged
into main ; they will then go back to @main.

JK RS485 1.2 removes the protocol_version key of jk_rs485_sniffer (the
JK-PB RS485 protocol has only one version) and refuses it, while 1.1
requires it : both changes have to be made together. The sniffer packages
no longer pass it, and the sniffer_protocol var is removed from the JK-B
and JK-PB RS485 YAML and examples. A user YAML that still defines
sniffer_protocol keeps working, the var is simply unused.
2026-11-13 08:02:20 +01:00
Sleeper85 faad9e60ce YamBMS 1.8.1 LP/RP examples
Update the root YAML and the examples for the UART and CAN declarations, the
RS485 block and the Board Options section.
2026-11-08 23:08:34 +01:00
Sleeper85 9dd22fa56b Inferred equalizing for BMS that do not report a balancing flag
Some BMS balance their cells but never expose a balancing flag, so
`bms_equalizing` stays false and the core cannot tell a pack that is still
balancing from one that has finished. This is not cosmetic : while
equalizing is true, yambms_core.yaml stops the Cut-Off timer and lets the
charge run to the EOC timer instead of terminating early.

bms_options_fake_equalizing.yaml infers that flag from the pack itself. No
absolute cell voltage is hardcoded : the anchor is bulk_voltage / cell
count, the same derivation as cell_bulk_v in yambms_core.yaml, so it
follows `yambms_battery_chemistry`, the cell count and the configured bulk
voltage automatically.

  START when BOTH are true
    max cell >= cell_bulk_v                     the pack is at the setpoint
    AND (max - min) >= trigger voltage          its own balancing threshold

  STOP when EITHER is true
    max cell <  cell_bulk_v - hysteresis        the pack dropped off the setpoint
    OR (max - min) <  trigger - delta hyst.     the spread closed back below it

Only two deltas and one offset are configurable, and none of the three
depends on the chemistry - LFP, Li-ion and LTO all want the same few tens
of mV. The absolute anchor they hang off comes from the core, for free.

The delta condition is what keeps this honest : a pack that reaches the
setpoint perfectly balanced has nothing to equalize, so it reports false
and the Cut-Off timer does its job. A plain voltage comparison would report
balancing forever and terminate every charge on the EOC timer.

It extends bms<id>_bms_equalizing, the raw BMS flag, and not the combined
bms<id>_equalizing sensor. bms_base_balancer.yaml is therefore neither
modified nor duplicated, and keeps giving an external balancer priority
whenever one is online : the inference only applies when no balancer
reports for this pack.

This commit only adds the package. Nothing includes it yet, so no existing
configuration changes behaviour. Candidates sharing the same case are
Seplos V3, Seplos V1/V2, EG4 LL V2 and JK RS485 DISPLAY, whose
bms_equalizing is a hardcoded `return false;`.
2026-11-08 23:08:33 +01:00
Sleeper85 0f7bf94111 Added KS BMS support #151 2026-11-08 23:08:33 +01:00
Sleeper85 d178ffa5c8 YamBMS 1.7.0 examples (2026.02.16) 2026-02-16 15:15:21 +01:00
Andrew Rankin 500d7fa8f6 Add Ecoworthy BMS integration for YamBMS (#199) 2026-02-15 22:49:43 +01:00
Sleeper85 e5d903005c Improved LP / RP examples 2026-02-15 22:11:47 +01:00
Sleeper85 5e492d44ef Updated DEMO examples 2026-02-15 13:47:40 +01:00
Sleeper85 5279d40b87 Fixed shunt_status_led_id 2026-02-05 11:51:39 +01:00
MrPabloUK 447a18b832 Component Fault Registry & Advanced LED Control (#194) 2026-02-05 09:26:49 +01:00
Sebastian a9c8443a66 Provide connected BMS IDs to shunt (#158)
The `bms_ids` variable allows to provide an array of BMS IDs that are connected to this shunt.

If one or more BMS from this array are offline, the shunt is not used anymore (Combine = Disabled). This avoids returning a wrong SOC when not all batteries are online/available anymore.

If the BMS goes online again, the shunt is then used again.

This variable is optional. If not provided, the shunt work independently from the BMS online status.

Examples:
```
bms_ids: '{1}'
bms_ids: '{1, 2}'
bms_ids: '{4, 5, 6}'
```
2026-01-26 21:31:46 +01:00
Sleeper85 91f1af4659 Updated FAKE Shunt and BMS vars 2026-01-15 19:56:39 +01:00
Sleeper85 6722216f86 Adjust bms_name to something unique #122 2025-12-23 21:15:21 +01:00
Sleeper85 a3bd991e2f Added bms_prefix for SEPLOS V3 for better sub_device support 2025-12-23 14:47:52 +01:00
Sleeper85 29d4078d1e JK RS485 sniffer_id is no longer required 2025-12-23 12:25:13 +01:00
Sleeper85 c0b4fee44f Removed non-functional BMS_example_SEPLOS_V3_RS485.yaml 2025-12-23 12:25:13 +01:00
Sleeper85 47027b0437 File name without PCS 2025-12-23 12:18:10 +01:00
Sleeper85 942b7c6fbb Added JK RS485 talk_pin examples 2025-12-01 18:34:44 +01:00
Sleeper85 dcbf3e6b8a YamBMS 1.6.0 - 2025.11.23 2025-11-24 14:34:30 +01:00
Sleeper85 a1a2ce9e19 Improved SEPLOS V1 V2 examples 2025-11-15 00:19:38 +01:00
Andrew Rankin d01de31f7a Adding EG4 LLV2 BMS (#85) 2025-09-09 16:10:35 +02:00
Sleeper85 0f862b2d68 Added PACE BMS examples 2025-08-14 16:23:06 +02:00
Sebastian fffd7c6087 Add support for external balancer
This adds support for external balancers, for example NEEY using JK BLE.
2025-08-14 15:01:51 +02:00
Sleeper85 5ddf954d0f Updated YamBMS multi-node modbus YAMLs 2025-08-02 11:02:28 +02:00
Sleeper85 c55a17d306 Updated multi-node YAML examples 2025-07-28 18:02:44 +02:00
Sleeper85 964462ab5f Added new LP and RP example YAMLs 2025-07-28 17:32:50 +02:00