diff --git a/packages/bms/bms_options_charging_logic.yaml b/packages/bms/bms_options_charging_logic.yaml index 4b58a7f..9665405 100644 --- a/packages/bms/bms_options_charging_logic.yaml +++ b/packages/bms/bms_options_charging_logic.yaml @@ -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 . + + +# +--------------------------------------------------------------------------------+ +# | 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")