Update bms_options_charging_logic.yaml

This commit is contained in:
Sleeper85 committed 2026-02-07 13:53:23 +01:00
1 parent 98b815e3ee
commit 29a0fe1dee
1 file changed
+24 -4
+24 -4
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.05
# Version : 1.1.7
# Updated : 2026.02.07
# Version : 1.1.8
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,6 +17,26 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
# +--------------------------------------------------------------------------------+
# | Import this package into your main YAML once for each BMS to enable this logic
# +--------------------------------------------------------------------------------+
#
# - path: packages/bms/bms_options_charging_logic.yaml
# vars:
# bms_id: '1' # must be a number
# - path: packages/bms/bms_options_charging_logic.yaml
# vars:
# bms_id: '2' # must be a number
# - path: packages/bms/bms_options_charging_logic.yaml
# vars:
# bms_id: '3' # must be a number
#
# +--------------------------------------------------------------------------------+
substitutions:
bms_cutoff_timer: '50s' # time during which the end of charge conditions must be respected (cut-off + cells not equalizing)
@@ -25,7 +45,7 @@ script:
then:
- delay: ${bms_cutoff_timer}
- switch.turn_off: bms${bms_id}_charge_switch
- logger.log: "BMS ${bms_id} charge_switch Turn OFF"
- lambda: ESP_LOGD("yambms_debug", "BMS ${bms_id} charge_switch Turn OFF");
interval:
- interval: ${yambms_update_interval}
@@ -37,7 +57,7 @@ interval:
if (!id(bms${bms_id}_charge_switch).state && (id(${yambms_id}_var_charge_status) == "EOC" || id(${yambms_id}_var_charge_status) == "Float"))
{
id(bms${bms_id}_charge_switch).turn_on();
ESP_LOGD("main", "BMS ${bms_id} charge_switch Turn ON");
ESP_LOGD("yambms_debug", "BMS ${bms_id} charge_switch Turn ON");
}
// Charge switch `Turn OFF` conditions
else if (id(${yambms_id}_var_charge_status) == "Cut-Off")