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.
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%.
* Tab5 LVGL: remove invalid ticks(count:0) from current/power meters
The current_meter and power_meter scales set:
ticks:
count: 0
ESPHome's LVGL meter-scale schema requires ticks.count to be >= 2, so
this fails config validation with:
value must be at least 2. count: 0
Both gauges are intentionally tick-less (needle + colored arcs only), so
the ticks block serves no purpose. Removing it lets the Tab5 layout
compile while leaving the gauges visually unchanged.
* Tab5: move rotation display->lvgl for ESPHome 2026.6 compat
ESPHome 2026.6 rejects 'rotation' under display: when LVGL is used:
use of 'rotation' in the display config is not compatible with LVGL,
please set rotation in the LVGL config instead
Moved rotation: 90 into the lvgl: block. mipi_dsi has no hardware
rotation, so LVGL uses software rotation and now auto-transforms touch
coordinates (LvglComponent::rotate_coordinates). The gt911's manual
transform (swap_xy + mirror_y) would therefore double-rotate touch, so
it is removed and the calibration is swapped to panel-native orientation
(x 0..720, y 0..1280). Net touch mapping is unchanged.
* Tab5: replace deprecated meter 'r_mod' with LVGL 9.x equivalents
LVGL 9.4 removed lv_meter; ESPHome emulates it with lv_scale, which
dropped the 'r_mod' (radius modifier) indicator property:
WARNING Property 'r_mod' is deprecated, use 'length' instead
WARNING The 'r_mod' indicator property is not supported in LVGL 9.x
and will be ignored
- Needle (line indicator): r_mod: 25 -> length: -25. ESPHome internally
converts r_mod to length=-abs(r_mod) (meter.py), so a negative length
reproduces the exact same needle; a positive 25 would not.
- Arcs: r_mod has no lv_scale equivalent and was already being ignored,
so it is simply removed. No visual change.
Net rendering is unchanged; only the deprecation warnings are cleared.
* Tab5 (esphome sensors): use IndicatorLine::set_value, lv_meter removed
LVGL 9.4 removed the lv_meter widget and its C API, so the interval
lambda's lv_meter_set_indicator_value() no longer compiles:
error: 'lv_meter_set_indicator_value' was not declared in this scope
ESPHome now emulates meter needles with the IndicatorLine compound, so
set the value via id(<needle>)->set_value(int). This matches the codegen
of the lvgl.indicator.update action already used by the _ha_sensors
variant; the _esphome variant just hadn't been migrated.