Provide connected BMS IDs to shunt (#158)

The `bms_ids` variable allows to provide an array of BMS IDs that are connected to this shunt.

If one or more BMS from this array are offline, the shunt is not used anymore (Combine = Disabled). This avoids returning a wrong SOC when not all batteries are online/available anymore.

If the BMS goes online again, the shunt is then used again.

This variable is optional. If not provided, the shunt work independently from the BMS online status.

Examples:
```
bms_ids: '{1}'
bms_ids: '{1, 2}'
bms_ids: '{4, 5, 6}'
```
This commit is contained in:
Sebastian authored and GitHub committed 2026-01-26 21:31:46 +01:00
1 parent 60aaabc85b
commit a9c8443a66
12 files changed
+150 -22

No files matched your search

@@ -1,5 +1,5 @@
# Updated : 2025.08.14
# Version : 1.1.3
# Updated : 2026.01.24
# Version : 1.1.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -36,6 +36,10 @@ packages:
vars:
shunt_id: '1' # must be a number
shunt_name: 'Shunt 1'
# Optional: BMS IDs connected to this shunt
# If provided, the shunt will only be used when all listed BMS are online
# If not provided, the shunt will be used independently of the BMS online status
bms_ids: '{1, 2, 3}'
bms1: !include
file: packages/bms/bms_combine_modbus_client.yaml