Commit Graph
439 Commits
Author SHA1 Message Date
Sleeper85 e4b8aacc0a Fixed 6h reboot on networks that filter the ESP32 outbound traffic
http_request runs on the loop task, which has a 4s budget before the
5s task WDT panics. A dropped connect() blocks for 4.5s (the ESPHome
default timeout) and a filtered port 53 blocks for a fixed 7s, which
timeout does not cover.

- timeout 3s and watchdog_timeout 60s cover the two blocking paths
- a failure counter stops the service after 3 network-level failures,
  instead of freezing the loop 14s every 6h forever
- the POST is now skipped when the GET failed

Reproduced and measured on OPNsense.
See Design_decisions.md.
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 96ddd2a075 Fixed Combiner stall detector false positive and dashboards
The detector compared var_to_combine_bms/shunt_number with its value on
the previous round, but samples it before the STEP 2 reset - so in a
healthy setup the sampled value is identical every round and was read as
a stall ("Shunt id 2 of 1 declared").

Replaced by an exact completeness test: a chain is complete once its
number is past the number of declared devices. Threshold raised to 5
rounds to absorb interval phase offsets at boot.
2026-11-08 23:08:33 +01:00
Sleeper85 23384f4677 Rollback : don't reset Auto functions vars in core 2026-11-08 23:08:33 +01:00
Sleeper85 803c84d7da Sensors published to NAN when no BMS is combined 2026-11-08 23:08:33 +01:00
Sleeper85 807c9ed841 refactor: convert pylontech_rs485 to list format 2026-11-08 23:08:33 +01:00
Sleeper85 4d4d11e832 Auto CVL - Float / Stop (suspended) 2026-11-08 23:08:32 +01:00
Andrew Rankin 40daa229b5 Update EG4 LL-V2 component to v1.1.0 (fixes zero-value BMS readings) (#315)
* Update EG4 LL-V2 component to v1.1.0

Fixes RAR/esphome-eg4-bms#7: some EG4 LL-V2 units intermittently answer
with a CRC-valid function-03 response whose register data area is
entirely zero. The component published those zeroes as a real reading,
collapsing SoC, pack voltage and capacity for one poll cycle.

v1.1.0 rejects implausible blocks and no longer lets them refresh the
online tracker, so a unit stuck returning zeroes now goes offline
instead of reporting a flat-zero battery.

No YamBMS-side changes are required: neither EG4 package uses the
removed designed_capacity sensor, and both already use the
cell_average_voltage key.
2026-11-08 23:08:32 +01:00
Sleeper85 fa9f101d1b Move vars bms_model & bms_protocol 2026-11-08 23:08:32 +01:00
Sleeper85 3394976529 New vars Communication Bus & Protocol 2026-11-08 23:08:32 +01:00
Sleeper85 6e23ffe202 Added Combiner stall detector 2026-11-08 23:08:32 +01:00
Sleeper85 2cdc61e8b4 Fixed Auto CVL Float lockup at Rebulk threshold
Rewrote Auto CVL from template sensor lambdas to interval
lambdas, splitting each into a value sensor and a delta sensor.

Fixed a bug confirmed in production: Auto CVL's Float floor coincided
exactly with the Rebulk V. threshold, letting it trigger its own rebulk.
The floor is now capped relative to the live target instead of a fixed
chemistry constant, the Float/Stop integral term can no longer get stuck
once clamped, and PI state now resets when crossing the Bulk <-> Float/Stop
boundary.
2026-11-08 23:08:32 +01:00
Sleeper85 5226455f76 Auto Float adapted and reorganized to an interval lambda
Rewrote Auto Float from template sensor lambdas to interval
lambdas, splitting each into a value sensor and a delta sensor.
2026-11-08 23:08:32 +01:00
Sleeper85 fd4ee6e903 Current Taper - Compliance with YamBMS core 1.8.0
See Changelog_Auto_CCL_Current_Taper_1.1.2.md
2026-11-08 23:08:32 +01:00
Sleeper85 ab3633b0d9 Auto CVL - Compliance with YamBMS core 1.8.0
Updated to support `Float` and `Stop` CVL.
See Changelog_YamBMS_1.8.0_Auto_CVL.md
2026-11-08 23:08:32 +01:00
Sleeper85 b050aa95a3 Auto Float - Compliance with YamBMS core 1.8.0
Returns `0` if `charging_instruction` is different from `Float`.
2026-11-08 23:08:32 +01:00
Sleeper85 31314847d9 YamBMS core 1.8.0 - CVL, CCL and DCL code improvements 2026-11-08 23:08:32 +01:00
Sleeper85 5b424a529b Auto max_index 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
Sleeper85 e758b96c95 Allow a negative charger_offset_v 2026-11-08 23:08:32 +01:00
Sleeper85 9b2787ecca Improved PACE BMS modbus (esphome >= 2026.7.0) 2026-11-08 23:08:32 +01:00
Sleeper85 f078e3635c Fixed charger_offset_v 2026-11-08 23:08:32 +01:00
Sleeper85 c633227c97 Set esphome min_version to esphome 2026.7.0 2026-11-08 23:08:32 +01:00
Sleeper85 2474c1d89f Fixed warning: format '%d' expects argument of type 'int', but argument 5 has type 'uint32_t' 2026-11-08 23:08:32 +01:00
Sleeper85 bcda702fea Fixed warning: suggest braces around empty body 2026-11-08 23:08:32 +01:00
Sleeper85 c82af08d3c Updated multi-node modbus default settings + documentation #310 2026-11-08 23:08:32 +01:00
Sleeper85 9ddd618da7 Added loop_task_stack_size option + documentation #306 2026-11-08 23:08:32 +01:00
Sebastian c1579fed98 Check if Auto SoC Limit has reached its target (#308) 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 489e41c38c Added device_class to number 2026-11-08 23:08:31 +01:00
Sleeper85 fd43abd718 Added substitutions for Custom CCL/DCL Derating Reason 2026-11-08 23:08:31 +01:00
Sleeper85 1005b38779 Added max current c-rate based limit 2026-11-08 23:08:31 +01:00
Sleeper85 f57771e263 Inverter to Charger Offset V. 2026-11-08 23:08:31 +01:00
Sleeper85 f49a0520cf Set YamBMS version to 1.7.1 2026-11-08 23:08:31 +01:00
Sleeper85 11a6c6d4cf CCL/DCL auto_limit reorganization allowing custom codes 2026-11-08 23:08:31 +01:00
Sleeper85 d8b1431ab2 Float slider min/max values extended 2026-11-08 23:08:31 +01:00
Sleeper85 cd385bc462 Removal of max_dishcarge_current limit (processed in yambms_core) 2026-11-08 23:08:31 +01:00
Sleeper85 e183d206bc PSRAM options 1.1.4 for ESP-IDF 5.5+ 2026-08-17 09:02:31 +02:00
Sleeper85 277cfd49bc Compliance with esphome PR_11969 (modbus_server send_wait_time) 2026-07-11 00:29:11 +02:00
Sleeper85 7d76d7c991 Compliance with esphome 2026.6.0 (modbus_server) 2026-07-11 00:16:36 +02:00
Sleeper85 69ac0294e1 Compliance with esphome PR_11781 (modbus_controller) 2026-07-11 00:05:53 +02:00
Sleeper85 8439fd6ffc Compliance with esphome PR_11969 (modbus send_wait_time) 2026-07-11 00:05:53 +02:00
Sleeper85 456d8a9a7f Added T-Connect-Pro-Lite board 2026-07-11 00:05:53 +02:00
Sleeper85 ffddcc01be T-Connect boards doc updated 2026-07-11 00:05:53 +02:00
Sleeper85 f186f53da3 Uncomment cell balancing trigger voltage name 2026-07-02 11:37:46 +02:00
Sebastian 8073810b04 Adjust Rebulk SoC if higher than target SoC
With Automatic SoC Limit Mode set to Float and Rebulk SoC >= Automatic SoC Limit it won't work as expected because Rebulk SoC takes priority and switches to Bulk. This was reported in the forum: https://diysolarforum.com/threads/yambms-jk-bms-can-with-new-cut-off-charging-logic-open-source.79325/page-294#post-1848293

When Rebulk SoC >= Automatic SoC Limit and Automatic SoC Limit is enabled, set Rebulk SoC to Automatic SoC Limit - Auto SoC Limit Hysteresis - 5%. For example: Rebulk SoC = 85%, Automatic SoC Limit = 80%, Auto SoC Limit Hysteresis = 5% would result in Rebulk SoC = 70%.
2026-06-29 20:55:03 +02:00
Sleeper85 fbeb69208f New Blue Navy Overview design 1.1.2 2026-06-29 17:39:36 +02:00
Sleeper85 b88102bf85 Added invert_colors: true 2026-06-29 17:09:08 +02:00
Sleeper85 ef06261150 Fixed ${yambms_id} 2026-06-29 16:07:07 +02:00