• New: My equipment. Track products mentioned on the forum and build your own system. Go to Equipment > My equipment, search for a product and press "I own this", or press Watch on any product page to get an alert when a new thread tags it. Read more
sungold december paid

Monitoring EG4 Batteries with Modbus, Waveshare, and Home Assistant

I am using the same waveshare device using the serial port to monitor my SolArk inverter. Since the waveshare support multi-host, does that mean i can monitor my EG4 batteries with the same Waveshare, or will i need a second one? Hoping to use the RS422 / RS485 port to connect to the EG4 batteries.
 
I am using the same waveshare device using the serial port to monitor my SolArk inverter. Since the waveshare support multi-host, does that mean i can monitor my EG4 batteries with the same Waveshare, or will i need a second one? Hoping to use the RS422 / RS485 port to connect to the EG4 batteries.
I haven’t used the multi-host feature, but I believe that is for multiple network clients trying to talk to the same 485 or 232 port.

A single Waveshare device should connect to RS-485/422 or RS-232, not both.
I would get another Waveshare for the EG4 batteries RS-485.

Perhaps a small PoE 4-port switch if the Waveshare supports PoE.
I use Unifi Flex switches for that purpose.
 
I haven’t used the multi-host feature, but I believe that is for multiple network clients trying to talk to the same 485 or 232 port.

A single Waveshare device should connect to RS-485/422 or RS-232, not both.
I would get another Waveshare for the EG4 batteries RS-485.

Perhaps a small PoE 4-port switch if the Waveshare supports PoE.
I use Unifi Flex switches for that purpose.
Thats the plan, the second one will be here tomorrow.. I also use Unifi network stack at home.
 
Multi-host is indeed for allowing multiple computers to talk to a single RS-485 port, but after spending the better part of a day tracking down slowdowns and dropped connections and other weirdness I disabled multi-host and all my problems went away.

It would have been nice to allow my bespoke Python code to talk to the batteries and inverters and spin up the HA stuff in parallel, but it doesn't look like that's going to happen.
 
I got the second waveshare in, but for the life of me i can not get it to talk to my batteries. I know my batteries are using a baud rate of 19200 instead of 9600.. I can connect it to my old SolarAssistant and it works fine over the USB cable to eth adapter. Same wires used and everything..

Mine are the EG4 LifePower4 with the latest firmware, which changes the baud rate.. The USB adapter I am using for the batteries to SA is Narada RS485, not sure if that matters. I have also tried pins 1/2 and 7/8 with both 9600 and 19200 baud rates. @marionw

After thinking about it, and reading more.. It appears SA is connecting to my batteries at 9600, since I was using pins 1/2. Still using those on the waveshare arent giving me anything, even setting the baud rate to 9600.. not sure what is going on.. Only thing i can think of is something to do with Modbus vs Narada like the SA docs talk about. (mine are LP4 v1s)
1784003992604.png


1783999592782.png
1783999635147.png
 
Last edited:
Great thread. I am considering a couple EG4 LL batteries and have been researching how to connect them to HA.

Looks like I can use the waveshare linked above, plug into ethernet, then configure HA to grab the data.

Seems easy enough 🕺

I assume I need (1) RS232/485/422 TO POE per battery?

It can be powered by 6-36v dc as well

1784988521474.png
 
EG4 EG4 LL batteries · US 5,120 Wh energy · CEC authority listing reported Charged Reviews ↗ DetailsHide
5,120 WhNominal energy
CEC · authority listing reported UL 1973 · authority listing reported
See this product on Charged Reviews, including the documents and certificates on file. Open ↗
All 5 specs
Published claims and calculations, not independent test results.
  • ChemistryLithium Iron Phosphate
  • Nominal energy5.12 kWh
  • Usable energyNot documented
  • Continuous output power5.12 kW
  • DimensionsNot documented
No recalls or legal notices on file; this is not a complete recall or court search.
Product information from Charged Reviews. The Evidence score compares published documents. It is not a test result or a product endorsement.
Last edited:
Great thread. I am considering a couple EG4 LL batteries and have been researching how to connect them to HA.

Looks like I can use the waveshare linked above, plug into ethernet, then configure HA to grab the data.

Seems easy enough 🕺

I assume I need (1) RS232/485/422 TO POE per battery?

It can be powered by 6-36v dc as well

View attachment 406522
You should be able to put them all on the same RS485 bus, if they each have separate modbus addresses. Then you only need one interface.

If you only really need a single port I'd go with:
but if you think you might need more than one in the future, get:
[Modbus is about as addictive as solar in general!]
 
I assume I need (1) RS232/485/422 TO POE per battery?

It can be powered by 6-36v dc as well

View attachment 406522
I prefer PoE powering, but yes, you can use a DC brick with barrel connector too.

I have 3 EG4-LL v1s and put them all on the same RS-485 bus.
I think the dipswitch addresses the Modbus unit number.

I used this and some short cat5 patch cables to parallel them.
Looks like they are no longer available though. Too many people probably tried to use them for ethernet 🤪


Screenshot 2026-07-25 at 10.36.10 AM.png
 
Last edited:
IMG_8757.jpeg IMG_8758.jpeg IMG_8759.jpeg

The green cables are for interbattery comms for Canbus, the black ones are for RS-485, both are simultaneously communicating.
 
That splitter even says "wont work for sharing internet" or something :fp2 maybe they added that after the complaints.

Seems easy enough to change the dip switch on the battery to achieve a different address and use the same RS485 adapter.

Then the unknown is how to connect all the RJ45s without the nifty splitter. Is it as easy as connecting 3 sets of wire to the same RS485 pins, then because each battery has a different address, each battery presents independently?
 
I prefer PoE powering, but yes, you can use a DC brick with barrel connector too.

I have 3 EG4-LL v1s and put them all on the same RS-485 bus.
I think the dipswitch addresses the Modbus unit number.

I used this and some short cat5 patch cables to parallel them.
Looks like they are no longer available though. Too many people probably tried to use them for ethernet 🤪


View attachment 406526
Should work.
 
Then the unknown is how to connect all the RJ45s without the nifty splitter. Is it as easy as connecting 3 sets of wire to the same RS485 pins, then because each battery has a different address, each battery presents independently?
Yes, parallel wiring.
The one @wpns should work great.
Don't forget some short patch cables, and maybe a fermale-female RJ-45 keystone coupler.
 
I usually build my patch cables & such. Then again, cheap amazon cables will save me time.
 
@ricardocello

I tried to use your same registers to pull all the cell voltage data, but they are empty on the EG4-LLS-V2's :cry:

I polled ALL the registers and only found the cell delta.

Did you use a tool to scan the modbus, or just used the info you found online? I want to give it another pass before I put a pin in it.
 
@ricardocello

I tried to use your same registers to pull all the cell voltage data, but they are empty on the EG4-LLS-V2's :cry:

I polled ALL the registers and only found the cell delta.

Did you use a tool to scan the modbus, or just used the info you found online? I want to give it another pass before I put a pin in it.
Pretty sure I used this doc.

Sorry for the horrible scribd link, other people have it on github somewhere.

This is better:

You probably should be testing with a pack id that isn’t 1, sometimes that is aggregated and undocumented.
Make sure you using function code 3 (not 4) for register reading.

Also see my Python code for reference here, I wrote it directly based on that protocol document (no HA involved).

I thought the LL v1s, v2s, and S were all similar.
 
EG4 EG4 LL batteries · US 5,120 Wh energy · CEC authority listing reported Charged Reviews ↗ DetailsHide
5,120 WhNominal energy
CEC · authority listing reported UL 1973 · authority listing reported
See this product on Charged Reviews, including the documents and certificates on file. Open ↗
All 5 specs
Published claims and calculations, not independent test results.
  • ChemistryLithium Iron Phosphate
  • Nominal energy5.12 kWh
  • Usable energyNot documented
  • Continuous output power5.12 kW
  • DimensionsNot documented
No recalls or legal notices on file; this is not a complete recall or court search.
Product information from Charged Reviews. The Evidence score compares published documents. It is not a test result or a product endorsement.
Last edited:
I will switch them to 2&3 and test again!
You have to power the bms down so the new id takes effect

Also, see this:

And this:
 
Last edited:
I can confirm on the eg4 280ah wallmount it’s ID #2 to start. It’s also documented on solar assistant about that

EG4 uses a heavily modified pace bms but it’s still pace at its core

Good luck
 
I can confirm on the eg4 280ah wallmount it’s ID #2 to start. It’s also documented on solar assistant about that
EG4 uses a heavily modified pace bms but it’s still pace at its core
I think their newer batteries like the wall mount are based on Pace, and the older Rackmount ones were someone else's whose name I forget.
I know the original lifepower used BMS_Test windows software, and the LL v1,2,S use BMS_Tools windows sw.
What software does the Wallmount use? Neither of those?
 
Last edited:
I think their newer batteries like the wall mount are based on Pace, and the older Rackmount ones were someone else's whose name I forget.
I know the original lifepowker used BMS_Test windows software, and the LL v1,2,S use BMS_Tools windows sw.
What software does the Wallmount use? Neither of those?
Wallmount works with bms tools
 
sungold december paid
Back
Top