dalathegreat / Battery-Emulator

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.
GNU General Public License v3.0
831 stars 112 forks source link

Solax X3 Ultra compatibility? #232

Open freddanastrom opened 3 months ago

freddanastrom commented 3 months ago

First of all, I've been following this project for a while. Great job with this!

I'm planning to replace my current non hybrid inverter with the new Solax X3 Ultra 25K. X3 Ultra is specified to only be compatible with Solax batteries T-BAT H 5.8, T-BAT-SYS-HV-S 2.5 and 3.6

Would there be any chance that the current Solax code is emulating any of this batteries, so that the Ultra can use the same emulation?

If not. Would it be possible to emulate any of the compatible batteries, or are there something obvious that makes it impossible? What can I do to support this development once I have the inverter in place?

StarkJohan commented 3 months ago

We just don't know until someone has tested the Ultra and/or dumped some logs with compatible battery systems.

freddanastrom commented 3 months ago

I understand. Just thought that it might have been known if the current code for example already was emulating a T-BAT H, which would make it more likely to be accepted by the Ultra. Hopefully, I will be able to contribute with something regarding this when the new inverter is in place.

ilia92 commented 2 months ago

@freddanastrom have you bought the Inverter ? Did you start it ?

freddanastrom commented 2 months ago

@freddanastrom have you bought the Inverter ? Did you start it ?

Yes, have the inverter since a few weeks. But I'm still waiting for my electrician to install it, which will probably be a few more weeks until it can be done. I also bought a small stack of batteries (T-BAT-SYS-HV-S36) for testing.

CAN communication is however new to me, never worked with it before. So any guidance to how I can start logging the communication between the inverter and battery would be appreciated.

StarkJohan commented 2 months ago

Do you happen to live in the southern parts of Sweden?

The easiest way to get help with any parts of this project is joining the discord server. It's not free, but to me it's been essential in getting my system up and running. The time I've saved alone is worth the fee.

freddanastrom commented 1 month ago

No, I live near Nyköping. so a bit of a distance to the southern parts.. I wasn't familiar with the memberships and Discord server,but will check it out and maybe give it a go.

josiahhiggs commented 3 weeks ago

No, I live near Nyköping. so a bit of a distance to the southern parts.. I wasn't familiar with the memberships and Discord server,but will check it out and maybe give it a go.

I would highly recommend joining the Discord server! And the Emulator should work on the Ultra, Solax Triple Power LFP CAN.

DeadmaroZ-TLOTL commented 2 days ago

With ultra inverter one problem, in main screen not show battery percentage, always show 0%

IMG_20240704_164221 IMG_20240704_164215 IMG_20240704_164124 IMG_20240704_164050 IMG_20240704_163931 IMG_20240704_163927 IMG_20240704_163922 IMG_20240704_163857 IMG_20240704_163850 IMG_20240704_163827

StarkJohan commented 2 days ago

As far as I can understand, the system fully works except for the SOC not showing up at the main view? This is a dual lilygo setup? Are you able to charge/discharge at set levels over modbus? Please supply CAN dumps and we should be able to figure out where the missing data should go.

DeadmaroZ-TLOTL commented 2 days ago

Yes, basically the only problem at the moment is the SOC (State of Charge) on the main screen!

Yes, I am using the dual Lilygo variant!

I didn't quite understand about the modbus?

Which CAN dump do you need?

There are also Solax Triplex 5.8kW batteries available, and if needed, I can sniff the CAN dump for those as well!

StarkJohan commented 2 days ago

Sounds very promising.

I wonder if you are able to control the settings over modbus from e.g. Home Assistant? The existing integration should work but I'm just curious if it does. That way you can also force charge/discharge to check the battery function fully.

A CAN dump between the original battery and the inverter should give us all we need to get that last SOC sorted. The SOC likely just needs to go in an additional register for the Ultra compared to the inverters currently in use with the emulator.

The multipliers for the battery seems a bit off as well.