From 77f657415a54fe90f0e2e059c9579de45dbefe55 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 29 Jun 2025 23:08:57 +0200 Subject: [PATCH] Add options to restrict max. charge and discharge current This adds 'yambms_max_inverter_charge_current' and 'yambms_max_inverter_discharge_current' substitutions. They are used to restrict the range of the charge/discharge current for easier control when the battery currents are much higher than the inverter currents. --- YamBMS_LP_BASEN_RS485.yaml | 10 ++++++++-- YamBMS_LP_DEMO.yaml | 10 ++++++++-- YamBMS_LP_DEYE-PCS_CAN.yaml | 10 ++++++++-- YamBMS_LP_JBD.yaml | 10 ++++++++-- YamBMS_LP_JK-PB_RS485_Modbus.yaml | 10 ++++++++-- YamBMS_LP_PVbrain2.yaml | 10 ++++++++-- YamBMS_LP_YBoard_JK-PB_RS485_Modbus.yaml | 10 ++++++++-- YamBMS_Local_Packages_example.yaml | 10 ++++++++-- YamBMS_RP_BASEN_RS485.yaml | 10 ++++++++-- YamBMS_RP_DEMO.yaml | 10 ++++++++-- YamBMS_RP_JBD.yaml | 10 ++++++++-- YamBMS_RP_JK-B_RS485_Modbus.yaml | 10 ++++++++-- YamBMS_RP_JK-B_UART_GPS.yaml | 10 ++++++++-- YamBMS_RP_JK-PB_RS485_Modbus.yaml | 10 ++++++++-- YamBMS_RP_JK_BLE.yaml | 10 ++++++++-- YamBMS_RP_PVbrain2.yaml | 10 ++++++++-- YamBMS_RP_SEPLOS_V1_V2_RS485.yaml | 10 ++++++++-- YamBMS_Remote_Packages_example.yaml | 10 ++++++++-- packages/base/device_base_esphome.yaml | 6 +++--- packages/bms/bms_combine.yaml | 15 ++++++++++++--- packages/yambms/yambms.yaml | 6 +++--- 21 files changed, 162 insertions(+), 45 deletions(-) diff --git a/YamBMS_LP_BASEN_RS485.yaml b/YamBMS_LP_BASEN_RS485.yaml index 4a38d13..ea9073f 100644 --- a/YamBMS_LP_BASEN_RS485.yaml +++ b/YamBMS_LP_BASEN_RS485.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_DEMO.yaml b/YamBMS_LP_DEMO.yaml index f57dbdf..36a7f58 100644 --- a/YamBMS_LP_DEMO.yaml +++ b/YamBMS_LP_DEMO.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_DEYE-PCS_CAN.yaml b/YamBMS_LP_DEYE-PCS_CAN.yaml index b0cc17d..43c10f6 100644 --- a/YamBMS_LP_DEYE-PCS_CAN.yaml +++ b/YamBMS_LP_DEYE-PCS_CAN.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_JBD.yaml b/YamBMS_LP_JBD.yaml index 92dfe63..defb066 100644 --- a/YamBMS_LP_JBD.yaml +++ b/YamBMS_LP_JBD.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_JK-PB_RS485_Modbus.yaml b/YamBMS_LP_JK-PB_RS485_Modbus.yaml index 8a4911b..1f0b77f 100644 --- a/YamBMS_LP_JK-PB_RS485_Modbus.yaml +++ b/YamBMS_LP_JK-PB_RS485_Modbus.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_PVbrain2.yaml b/YamBMS_LP_PVbrain2.yaml index 6dc61e3..8003dd5 100644 --- a/YamBMS_LP_PVbrain2.yaml +++ b/YamBMS_LP_PVbrain2.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_LP_YBoard_JK-PB_RS485_Modbus.yaml b/YamBMS_LP_YBoard_JK-PB_RS485_Modbus.yaml index 6cef5a6..4f2a422 100644 --- a/YamBMS_LP_YBoard_JK-PB_RS485_Modbus.yaml +++ b/YamBMS_LP_YBoard_JK-PB_RS485_Modbus.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '60' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '300' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_Local_Packages_example.yaml b/YamBMS_Local_Packages_example.yaml index a99e299..4e41ed4 100644 --- a/YamBMS_Local_Packages_example.yaml +++ b/YamBMS_Local_Packages_example.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -98,6 +98,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_BASEN_RS485.yaml b/YamBMS_RP_BASEN_RS485.yaml index f9d3f30..f7bf999 100644 --- a/YamBMS_RP_BASEN_RS485.yaml +++ b/YamBMS_RP_BASEN_RS485.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_DEMO.yaml b/YamBMS_RP_DEMO.yaml index c147f70..9bada7b 100644 --- a/YamBMS_RP_DEMO.yaml +++ b/YamBMS_RP_DEMO.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_JBD.yaml b/YamBMS_RP_JBD.yaml index 812bea6..3a26fdd 100644 --- a/YamBMS_RP_JBD.yaml +++ b/YamBMS_RP_JBD.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_JK-B_RS485_Modbus.yaml b/YamBMS_RP_JK-B_RS485_Modbus.yaml index a7bbe07..b88cc62 100644 --- a/YamBMS_RP_JK-B_RS485_Modbus.yaml +++ b/YamBMS_RP_JK-B_RS485_Modbus.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_JK-B_UART_GPS.yaml b/YamBMS_RP_JK-B_UART_GPS.yaml index a490ecb..cfdcc03 100644 --- a/YamBMS_RP_JK-B_UART_GPS.yaml +++ b/YamBMS_RP_JK-B_UART_GPS.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_JK-PB_RS485_Modbus.yaml b/YamBMS_RP_JK-PB_RS485_Modbus.yaml index 49ff92c..d8a7aa2 100644 --- a/YamBMS_RP_JK-PB_RS485_Modbus.yaml +++ b/YamBMS_RP_JK-PB_RS485_Modbus.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_JK_BLE.yaml b/YamBMS_RP_JK_BLE.yaml index b7d805d..44dd971 100644 --- a/YamBMS_RP_JK_BLE.yaml +++ b/YamBMS_RP_JK_BLE.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_PVbrain2.yaml b/YamBMS_RP_PVbrain2.yaml index f1e91e9..a02d16c 100644 --- a/YamBMS_RP_PVbrain2.yaml +++ b/YamBMS_RP_PVbrain2.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_RP_SEPLOS_V1_V2_RS485.yaml b/YamBMS_RP_SEPLOS_V1_V2_RS485.yaml index 6a89579..dd2ef55 100644 --- a/YamBMS_RP_SEPLOS_V1_V2_RS485.yaml +++ b/YamBMS_RP_SEPLOS_V1_V2_RS485.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/YamBMS_Remote_Packages_example.yaml b/YamBMS_Remote_Packages_example.yaml index d7befeb..20229c6 100644 --- a/YamBMS_Remote_Packages_example.yaml +++ b/YamBMS_Remote_Packages_example.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.26 -# Version : 1.5.7 +# Updated : 2025.06.29 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -97,6 +97,12 @@ substitutions: yambms_eoc_timer: '30' # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) yambms_cutoff_timer: '60' + # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_charge_current: '300' # in Ampere + # Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS. + # The current requested will be proportional to the BMS count without ever exceeding this value. + yambms_max_requested_discharge_current: '300' # in Ampere # +--------------------------------------+ # | Shunt Settings | # +--------------------------------------+ diff --git a/packages/base/device_base_esphome.yaml b/packages/base/device_base_esphome.yaml index 74373ac..fac545b 100644 --- a/packages/base/device_base_esphome.yaml +++ b/packages/base/device_base_esphome.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.19 -# Version : 1.5.7 +# Updated : 2025.07.10 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -18,7 +18,7 @@ # along with this program. If not, see . substitutions: - yambms_version: "1.5.7" + yambms_version: "1.5.8" esphome: name: ${hostname} diff --git a/packages/bms/bms_combine.yaml b/packages/bms/bms_combine.yaml index 0938289..cb3536e 100644 --- a/packages/bms/bms_combine.yaml +++ b/packages/bms/bms_combine.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.06.19 -# Version : 1.5.7 +# Updated : 2025.07.10 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # This YAML is free software: you can redistribute it and/or @@ -90,7 +90,11 @@ interval: id(${yambms_id}_var_charging_allowed_counter) += 1; // TOTAL max_charge_current id(${yambms_id}_var_total_max_charge_current) += id(bms${bms_id}_max_charge_current).state; - + // Limit to max. charge current + if(id(${yambms_id}_var_total_max_charge_current) > ${yambms_max_requested_charge_current}) + { + id(${yambms_id}_var_total_max_charge_current) = ${yambms_max_requested_charge_current}; + } } // TOTAL bms_blocking_charge_counter else id(${yambms_id}_var_bms_blocking_charge_counter) += 1; @@ -101,6 +105,11 @@ interval: id(${yambms_id}_var_discharging_allowed_counter) += 1; // TOTAL max_discharge_current id(${yambms_id}_var_total_max_discharge_current) += id(bms${bms_id}_max_discharge_current).state; + // Limit to max. discharge current + if(id(${yambms_id}_var_total_max_discharge_current) > ${yambms_max_requested_discharge_current}) + { + id(${yambms_id}_var_total_max_discharge_current) = ${yambms_max_requested_discharge_current}; + } } // TOTAL bms_blocking_discharge_counter else id(${yambms_id}_var_bms_blocking_discharge_counter) += 1; diff --git a/packages/yambms/yambms.yaml b/packages/yambms/yambms.yaml index c321e6e..1b405ed 100644 --- a/packages/yambms/yambms.yaml +++ b/packages/yambms/yambms.yaml @@ -1,5 +1,5 @@ -# Updated : 2025.07.11 -# Version : 1.5.7 +# Updated : 2025.07.12 +# Version : 1.5.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -18,7 +18,7 @@ # along with this program. If not, see . substitutions: - yambms_version: "1.5.7" + yambms_version: "1.5.8" # Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS. # The current requested will be proportional to the BMS count without ever exceeding this value. yambms_max_requested_charge_current: '300' # in Ampere