What this guide works from. One rig: a Deye SUN-8K-SG01LP1-EU, two JK BMS packs and one Seplos pack, each 16S and 280 Ah, wired in parallel for 840 Ah and 43.0 kWh, a LilyGo T-Connect ESP32-S3 board with PSRAM, YamBMS 1.8.1 on ESPHome 2026.11.0, and a CAN link to the Deye. Pack volts at rest were 52.6 V, 52.9 V and 53.1 V. Pack charge levels were 58%, 61% and 64%.
The short answer. Yes. One small board can read three packs and show them as one battery. YamBMS is free code that runs on the board. It reads each BMS, works out one set of limits, and sends that set to the inverter over CAN. On our rig the Deye saw no battery at all before the build. After the build it showed one battery of 840 Ah, a charge level of 61%, and a charge limit of 150 A.
The rig that would not link
Three packs stood in a row, and none of them could talk to the inverter on its own. Two were home-built 16S packs with JK BMS boards. One was a Seplos pack. 16S means 16 cells in a row. Each cell is 3.2 V, so each pack is 51.2 V in name. 51.2 V times 840 Ah gives 43,008 Wh, or 43.0 kWh for the whole bank. The packs were wired in parallel. Parallel means the volts stay the same and the amp-hours add up.
The Deye has one BMS port, and one port can hear one battery. Three BMS boards cannot all shout into one port at once. So the Deye ran open-loop. Open-loop means no data cable, so the inverter charges by volts only and the BMS still guards each pack. The Deye screen showed volts but no charge level or limits. Each pack kept its own numbers in its own app: 58%, 61% and 64%.
A bridge is a small board that sits between the packs and the inverter. It reads all three BMS boards and speaks to the inverter as if it were one big battery. That is what YamBMS does. The open-loop fallback, for nights when no bridge is in place, is in the Open-Loop and Bridges hub.
What YamBMS is and what it merges
YamBMS stands for Yet Another Multi-BMS Merging Solution. It is a set of setup files for ESPHome, made by GitHub user Sleeper85 and first put out in August 2024 under the GPL-3.0 free licence. ESPHome is a tool. It turns a plain text setup file into firmware for a small board. You write the file, ESPHome builds the code, and you flash it to the board.
A BMS is the battery management system, the board that guards a pack. It watches cell volts, current, heat, and charge level. It can cut the pack off if a cell goes too high or too low. YamBMS reads each BMS on its own link, then joins the numbers into one virtual battery. It is one set of numbers that stands in for all the packs at once.
The merge works only for packs wired in parallel. Packs wired in series, one after the other to raise the volts, do not work with YamBMS. The project README states this in bold at the top. It also states that the BMS volt readings must be set right.
Seven BMS types are built in: JK, JBD, Seplos, PACE, BASEN, DEYE and Ecoworthy. Our rig used two JK packs and one Seplos pack over RS485, with no shunt. One board caps at three BLE packs, three UART packs, and several RS485 packs. For a closer look at reading one JK BMS with ESPHome, see Home Assistant and ESPHome JK BMS charge limits.
The parts you need
Buy the board first, then the two small link boards. A board with PSRAM is the pick the project asks for. PSRAM is extra memory on the chip. Merging three packs needs it. The LilyGo T-Connect has three RS485 ports, one CAN port, and 8 MB of PSRAM. The Waveshare S3 board has one RS485 port and one CAN port. Either one fits a three-pack rig. A plain ESP32 DevKit can run the free DEMO firmware, which acts like three packs and one shunt.
| Part | What it does | Notes for our rig |
|---|---|---|
| ESP32-S3 board | Runs YamBMS and merges the packs | LilyGo T-Connect, 8 MB PSRAM |
| CAN link board | Carries CAN frames to the inverter | SN65HVD230 (3.3 V) or TJA1051 |
| RS485 link board | Carries RS485 frames from each BMS | One per RS485 leg, 120 ohm end |
| DC-DC block | Powers the board from the pack | 48 V to 5 V, URB4805YMD-10WR3 |
| Short Cat5e cable | CAN link from board to inverter | Under 2 metres, away from DC cables |
| USB-C cable | First flash of the board | Any data cable, not charge-only |
No prices are listed here. The repo lists none. The DC-DC part number comes from the README. You can search it as written. Some inverters only take a CAN bus at 3.3 V. In that case use the SN65HVD230 chip. The older JK CAN project notes this too. That project is now replaced by YamBMS. For a simpler one-pack bridge, see Solar Assistant bridge for a BMS and inverter that do not match.
How the wires run
Three links leave the board: two RS485 legs to the packs, one CAN leg to the inverter. A CAN link needs a 120 ohm resistor at each end. Two of them side by side read about 60 ohm. Our rig read 61 ohm after the build.
The Deye BMS port takes CAN on pin 4 and pin 5 of an RJ45 plug. Pin 4 is CAN-H on the blue wire. Pin 5 is CAN-L on the white-blue wire. Wire H to H and L to L, never H to L. The CAN link board joins to the ESP32 on two pins. On the DEMO board those pins are GPIO 23 for send and GPIO 22 for receive, with a 4.7K resistor on the receive line except for the SN65HVD230. Read the board file for your exact board first.
| Link | From | To | Pins and notes |
|---|---|---|---|
| RS485 leg 1 | ESP32 RS485 port | JK pack 1 RS485 port | RS485 A and B, 115200 baud |
| RS485 leg 2 | ESP32 RS485 port | JK pack 2 RS485 port | Same bus as leg 1, own address |
| RS485 leg 3 | ESP32 RS485 port | Seplos pack RS485 port | Seplos V1/V2 Modbus |
| CAN leg | ESP32 CAN board | Deye BMS port | Pin 4 CAN-H, pin 5 CAN-L |
| Power | Pack 48 V bus | DC-DC block | 5 V out to the ESP32 board |

The JK RS485 port is not true RS485. It is a 3.3 V serial link on the port marked GPS, so it wires straight to the ESP32. The JK link runs at 115200 baud.
The settings that matter
YamBMS 1.8.1 changed how the inverter link is picked. You now pick your inverter brand in the dashboard, and the protocol follows from the brand. The link stays off until you pick a brand. The maker name sent on CAN frame 0x35E now comes from the protocol in use, not from a name you type in. 0x35E is the frame that carries the battery name.
| Setting | Value on our rig | Why it matters |
|---|---|---|
| ESPHome version | 2026.11.0 or higher. | YamBMS 1.8.1 needs this as a minimum. |
| YamBMS version | 1.8.1. | Brand pick drives the protocol. |
| Inverter brand | Deye. | Sets the CAN protocol for you. |
| Inverter protocol | Automatic (PYLON CAN). | Deye Lithium Mode, CAN protocol 00. |
| CAN speed | 500 kbit/s. | Deye and Victron BMS-Can both use this. |
| BMS ids | 1, 2, 3 in order. | Packs must be numbered from 1, no gaps. |
| Charge volt limit | 55.2 V. | 16 cells times 3.45 V. |
| User charge ceiling | 150 A. | The lowest of three limits wins. |
| Cut-off phase | 30 min max, 60 s min. | Full charge ends on balanced cells. |

Each BMS gets an id, and the ids must run in order from 1. The charge volt limit of 55.2 V is 16 cells times 3.45 V per cell. Check your cell spec sheet first.
Why one virtual battery works
The inverter only ever sees one battery. That is the whole trick. YamBMS reads each pack, then builds one set of numbers: one volt, one current, one charge level, and one set of limits.
The charge limits are worked out, not passed through. Three numbers go to the inverter each cycle: the charge volt limit, the charge current limit, and the discharge current limit. Short names are CVL, CCL and DCL. The charge current is the lowest of three values: a ceiling you set, the sum of all the BMS over-current guards times 0.9, and a heat-based limit from a table. On our rig: user ceiling 150 A. Each pack guard 100 A, so three packs gave 300 A, times 0.9 gave 270 A. Heat limit at 25 C was 1.0C times 840 Ah, or 840 A. The lowest is 150 A, so the inverter got 150 A.
At 0 C the rate drops to 0.05C, or 42 A on 840 Ah. Below 0 C and at 60 C it drops to zero.
Instead of holding one fixed volt, YamBMS steps into a cut-off phase. It leaves that phase when the cells are even, with a timer as a backstop: 30 minutes at most, 60 seconds at least. Auto CVL trims the volt when one cell runs ahead. Auto CCL trims the current from the over-volt guard. Auto DCL does the same near the low-volt guard. Auto Float steps the volt down 0.1 V at a time, because some inverters read a sharp volt drop as an over-volt and push power back to the grid.
Build it in order: nine steps, each with a check
Work the steps in order. If a check fails, stop there.
- Write down each pack and meter it. Do this step, then check it. Check: pack volts 52.6 V, 52.9 V and 53.1 V, charge levels 58%, 61% and 64%, photos in hand.
- Cut the power before you touch a plug. Do this step, then check it. Check: inverter screen dark, battery breaker off, DC isolator off.
- Wire the RS485 legs to the packs. Do this step, then check it. Check: A to A, B to B, no short to the next pin, each pack on its own address.
- Wire the CAN leg to the inverter. Do this step, then check it. Check: pin 4 to CAN-H, pin 5 to CAN-L, about 60 ohm across the bus with power off.
- Flash the board and set the BMS ids. Do this step, then check it. Check: ESPHome 2026.11.0, YamBMS 1.8.1, ids 1, 2 and 3 in order, no gaps.
- Pick the inverter brand in the dashboard. Do this step, then check it. Check: brand Deye, protocol Automatic, CAN link shows On.
- Set the charge limits. Do this step, then check it. Check: charge volt 55.2 V, user ceiling 150 A, cut-off 30 min max and 60 s min.
- Power up in order and wait two minutes. Do this step, then check it. Check: packs on first, then the board, then the inverter, one battery on the screen.
- Check the merged numbers on the inverter. Do this step, then check it. Check: one battery, 840 Ah, charge level 61%, charge limit 150 A, CAN-H 2.8 V and CAN-L 2.2 V.
Merged charge level 61% is plain maths: 58 plus 61 plus 64 is 183, divided by 3 is 61.
What each symptom points to
Match what you see to the row below. Do not change three things at once.
| What you see. | Most likely cause. | Fix. |
|---|---|---|
| Deye shows no battery, volts look fine. | CAN leg wrong, or no brand picked in 1.8.1. | Steps 4 and 6: pins, then brand pick. |
| Charge level stuck at one number. | Only one pack is read, the rest are off the bus. | Step 3: check each RS485 address. |
| Charge limit reads 0 A. | A pack guard is open, or temps are out of range. | Check the pack alarms and the heat table. |
| CAN-H and CAN-L both read 2.5 V. | Bus idle and healthy, but nobody is talking. | Steps 4 and 6: pins, then protocol. |
| One pack missing from the dashboard. | Its BMS id is skipped or doubled. | Step 5: ids 1, 2 and 3 in order. |
| Link drops when the pack is full. | Cut-off phase ended, or Auto Float is off. | Step 7: check the cut-off timer and Auto Float. |

A meter can rule out a dead bus in minutes. It cannot read CAN frames, but it can tell you if the bus is shorted. On a live bus with traffic, a plain meter shows the mean: CAN-H 2.6 to 3.0 V, CAN-L 2.0 to 2.4 V. On our rig, the live bus read 2.8 V on CAN-H and 2.2 V on CAN-L. Before the fix, the same test read 2.5 V on each line. The bus was idle.
Victron or Deye: the two inverter ends
The same board feeds both brands, but the inverter end is set up in a different way. On a Deye, set the battery mode to Lithium and the CAN protocol to 00. The full Deye side is in JK BMS to Deye hybrid inverter protocol.
On a Victron rig, the board talks to a Cerbo GX, not straight to the inverter. The Cerbo GX has two CAN buses. One is marked VE.Can, the other is marked BMS-Can. VE.Can runs at 250 kbit/s by default. BMS-Can runs at 500 kbit/s, and it cannot be set to any other speed. Use the BMS-Can port for the battery link. Never mix VE.Can and BMS-Can on the same bus. Fit the terminator that came in the Cerbo box at the Victron end. Turn on DVCC in the GX menu so the GX follows the board’s limits. The full Victron side is in JK BMS to Victron Cerbo GX VE.Can.
One trap fits both brands. Pick the wrong brand and the inverter will hear frames it does not know. For the same-day Deye multi-pack guide, see Pylontech multiple batteries on Deye master DIP guide. For the GoodWe port pinout, see GoodWe ES EM ET BMS port pinout and shield grounding. For the EG4 comms fault, see EG4 6000XP and 18kPV BMS comm lost Error 19 fix.

What can still go wrong
A pack reads high, so the whole bank stops charging.
YamBMS keys off the lowest and highest cell volts. One cell at 3.60 V will trim the charge volt for all three packs, even if the other 47 cells sit at 3.30 V. That is by design: it guards the worst cell. On our rig the spread was 0.06 V: high 3.34 V in pack 3, cell 12, low 3.28 V in pack 2, cell 7. A spread over 0.15 V at rest means one pack needs a balance charge on its own.
The BMS volt readings are not set right.
The README calls this the top point for the merge to work. If one BMS reads 0.2 V high, YamBMS will trust that wrong read and trim the charge early. Meter each pack at its terminals and match the BMS read to the meter. Fix the BMS volt set point before you trust the merge.
The board runs out of memory with too many packs.
One ESP32 can only reach so far. The README caps one node at three BLE packs, three UART packs, and several RS485 packs. Past that, add a node. Use an ESP32-S3 board for the main node.
A 120 ohm resistor sits in the middle of the bus.
Boards with a built-in RS485 chip often ship with the end resistor fitted. That is right at the end of a bus, and wrong in the middle. The README names the LilyGo T-CAN485, T-Connect and T-Connect Pro. If your link drops at random, check for that resistor first.
The exact JK 4-pin header order is not confirmed for every model.
JK uses one small white 4-pin header for both CAN and RS485, and the pin order can flip between models. One common layout is pin 1 CAN-L, pin 2 CAN-H, pin 3 RS485-A, pin 4 RS485-B. This guide marks the exact order not confirmed for our packs, because our rig used the RS485 port on the GPS plug and never used the JK CAN pins at all. Meter the pair first. The CAN pair reads about 120 ohm. The RS485 pair reads open.
Common questions
Can YamBMS fix a dead cell?
No. YamBMS cannot fix a dead cell, and it cannot raise the charge current past what the BMS allows. It only joins the numbers the packs already send. A pack with a dead cell still needs a new cell, or a new pack. The bridge hides no fault.
Do all the packs need the same BMS brand?
No. You can mix brands, and our rig did: two JK packs and one Seplos pack. The only rules are that the packs are wired in parallel and the ids run in order from 1. The merged numbers do not care which brand sent them.
Can I use YamBMS with one pack?
Yes, but it is more board than one pack needs. With one pack, a plain JK CAN link will do the same job with less setup. YamBMS earns its keep from the second pack on.
What happens if one pack trips off while the sun shines?
The merge drops that pack and keeps going on the rest. The inverter sees a smaller battery, not a dead one. Fix the tripped pack, and it joins the merge again on its own. If all packs trip, the inverter sees 0 A limits and stops charging.
Does YamBMS need Home Assistant to run?
No. Home Assistant gives you the dashboard, but the board runs on its own. The merge and the CAN link keep working with no Wi-Fi. The DEMO firmware proves this: it runs three fake packs and one fake shunt on a plain ESP32.
Do this next
- Meter each pack at rest and write down the volts and the charge level.
- Pick an ESP32-S3 board with PSRAM and one CAN link board.
- Wire the RS485 legs, then the CAN leg, then meter the bus for about 60 ohm.
- Flash ESPHome 2026.11.0 with YamBMS 1.8.1 and set the BMS ids 1, 2 and 3.
- Pick your inverter brand in the dashboard and check the CAN link shows On.
- Set the charge volt and the user ceiling to your safe values.
- Power up packs first, board second, inverter third, and watch for one battery at 61%.
- If the link will not hold, run open-loop for the night. Browse the full Open-Loop and Bridges hub.
Sources
Checked on 22 November 2026. Unconfirmed items are labelled “not confirmed” in the text.
- YamBMS, Yet Another Multi-BMS Merging Solution, GitHub README. Parallel packs only, never series. Seven BMS types: JK, JBD, Seplos, PACE, BASEN, DEYE, Ecoworthy. Sends volts, current, SOC, SOH, charge and discharge limits, min/max cell volts and temps, battery name, alarms. ESPHome 2026.11.0 or higher. ESP32-S3 with PSRAM advised. Caps: 3 BLE, 3 UART, several RS485. DEMO: 3 fake BMS and 1 shunt. Version 1.8.1: brand pick drives protocol.
- How Does YamBMS Merge Multiple ESS BMS Units for One Inverter, WIZnet Makers. Charge current is the lowest of user ceiling, sum of BMS guards times 0.9, and heat limit. Heat table: 0.05C at 0 C, zero below 0 C and at 60 C. Cut-off: 30 min max, 60 s min. Auto Float steps down 0.1 V at a time, Deye SUN-12K named. Supported devices: 28 inverter models from 13 brands, as of 15 August 2026.
- esphome-jk-bms-can, GitHub README. JK RS485 port is 3.3 V UART-TTL. CAN chips TJA1050, TJA1051T, SN65HVD230. Now replaced by YamBMS.
- Does Cerbo GX have 2 CAN-buses, Victron Community. VE.Can 250 kbit/s by default, BMS-Can 500 kbit/s fixed, never mix the two buses, terminators at both ends.
- Closed-Loop Inverter Communication for 51.2 V LiFePO4 Batteries, LJY Energy. Deye and Sunsynk: Battery mode Lithium, CAN protocol 00 (Pylontech CAN). Victron: BMS-Can port, DVCC on. 16 cells times 3.2 V is 51.2 V.
- ISO 11898-2 CAN standard, PCBCool guide. Idle 2.5 V per line. Dominant 3.5 V / 1.5 V. 120 ohm per end, about 60 ohm measured.
- This site: Open-Loop and Bridges hub, Home Assistant ESPHome JK BMS limits, Solar Assistant bridge, JK BMS to Victron Cerbo GX, JK BMS to Deye protocol, Pylontech multiple batteries on Deye, GoodWe ES EM ET pinout, EG4 BMS comm lost Error 19 fix.
Comments (0)