ai-republic / bms-to-inverter

Use, monitor and control any battery brand with any inverter! Application to read and monitor data from BMSes and write data to an inverter using any protocol (e.g. UART, RS485, ModBus or CAN)
https://github.com/ai-republic/bms-to-inverter
Other
90 stars 14 forks source link

Support for Growatt MOD series(RS485) #39

Open Star442 opened 3 months ago

Star442 commented 3 months ago

Hi,

Is there any plan of supporting growatt MOD series? It's RS485 based

ai-republic commented 3 months ago

Hi,If you could provide the RS485 communication specification then I can surely support it :} On 11/7/24, 21:09 Selver @.***> wrote:

Hi, Is there any plan of supporting growatt MOD series? It's RS485 based —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Star442 commented 3 months ago

MOD TL3-XH: 03 register range:0~124,3000~3124;04 registerrange:3000~3124,3125~3249

https://github.com/wills106/homeassistant-solax-modbus/files/14230118/Growatt-Inverter-Modbus-RTU-Protocol_II-V1_24-English.pdf

This should be it

ai-republic commented 3 months ago

Great thanks for the inverter protocol specification! Which BMS will you be using? I will try to start implementing it next weekend as I'm quite busy at the moment.

Star442 commented 3 months ago

I have not decided yet, but most likely pylontech or trying to use my nissan leaf via chademo! Thanks no worries, is it possible to support your work somehow?

ai-republic commented 3 months ago

Ok, I would recommend using the Pylontech protocol as its a very widespread commonly used protocol by many BMSes and inverters. If you like to support this project I'd be very happy! Just click on the Sponsor link on the project page! :)

Star442 commented 3 months ago

Ok, I would recommend using the Pylontech protocol as its a very widespread commonly used protocol by many BMSes and inverters. If you like to support this project I'd be very happy! Just click on the Sponsor link on the project page! :)

Perfect thanks!

Did you have any luck with the RS484 integreation for Growatt?

ai-republic commented 3 months ago

I will try to finish it this weekend :)

Star442 commented 3 months ago

@ai-republic still no luck?

ai-republic commented 3 months ago

Hi, I got around to start the implementation but I was very busy last week (also my sons birthday and an upgrade of my solar system). I think I can finish it this weekend though :)

ai-republic commented 3 months ago

@Star442 the Pylon RS485 binding is now implemented. Please get the new Configurator , choose _PYLONRS485 in the inverter tab and do a Clean install. Please also configure the debug log-level so that I can check if there are any prolems. Happy testing ;)

Star442 commented 2 months ago

@Star442 the Pylon RS485 binding is now implemented. Please get the new Configurator , choose _PYLONRS485 in the inverter tab and do a Clean install. Please also configure the debug log-level so that I can check if there are any prolems. Happy testing ;)

Thanks @ai-republic ! I'm just trying it out, is there any function to use a fake battery? Just to see if the communication with the inverter is working?

ai-republic commented 2 months ago

No, there is only a dummy inverter, but no dummy battery. But that's a good idea - I will implement that in the next few days :)

Star442 commented 2 months ago

@ai-republic Perfect, thanks!

Star442 commented 1 month ago

@ai-republic did you have any time to implement the dummy battery?

ai-republic commented 1 month ago

I've created a plugin architecture and a plugin that has some preset (dummy) battery data but currently only for 48V systems that is currently only configured for the SMA. I'd like to create an extra tab on the Configurator app where available plugins can be configured. Need to see when I get around to implementing that. Hopefully next weekend 😃

ai-republic commented 1 month ago

@Star442 I did add the dummy (NONE) BMS now. Also I added plugin support. So if you like to used the dummy BMS you can do so by configuring that on the BMS tab of the latest Configurator application. Then also choose the inverter plugin SimulatedBatteryPackPlugin. Please be careful when using this, as it will not report any errors to the inverter and the inverter will try to start charging/discharging without any battery attached !!!! So you MUST (!!!!!!!!!!) disconnect any load and PV DC input to prevent possible damage!!!

ai-republic commented 4 weeks ago

@Star442 were you able to test the dummy (NONE) battery with the SimulatedBatteryPackPlugin inverter plugin?

romanbetwo commented 4 weeks ago

I am curretnly testing on growatt MOD 10ktl. Since I am on windows machine, I am not sure if its okay, So I see 2 BMS's both showing 0 values, I did preconfig the fake battery values, all my DC on inverter is off :) but on "Server" side of growatt I dont see any info about the battery.

using one RS485 usb converter with pylon_RS485 inverter preset, invertor try to communicate (i can see the RX Led activity) I also see TX led active when program send modbus data.

ai-republic commented 4 weeks ago

Windows should be fine if you don't use CAN. And then you choose _PYLONRS485 inverter binding and the SimulatedBatteryPackPlugin?

romanbetwo commented 4 weeks ago

Hi ,yep settings were correct, but inverter did not show any data about the battery.

Today I am going to try with SPH10000.

I will run it on Pi Connect all together and I will post full info with simulated batt pack.

ai-republic commented 3 weeks ago

@Star442 I implemented the _GROWATTMODBUS inverter binding now. Could you give it a try and attach the log file here please?

romanbetwo commented 3 weeks ago

Hi, so SPH10000 has CAN battery. Ill finish my coffee and send you log.

romanbetwo commented 3 weeks ago

Okay, IMG_20241006_094037 I am unable to run remote desktop for some reason here is screenshot 😑

ai-republic commented 3 weeks ago

Hmm, I'll have to look into that as it really doesn't send a valid frame

romanbetwo commented 3 weeks ago

Torsten, just reminder my current setup is with SPH10000. I am using growatt_can Waveshare canusb Pi4

ai-republic commented 2 weeks ago

ok, could you please download the latest Configurator application and test this again. The SimulatedBatteryPackPlugin should work now. FYI: I separated the log files now for BMS-to-Inverter, webserver and MQTT. Please let me know how it goes and also attach the bmstoinverter.log, Thanks 😄

ai-republic commented 2 days ago

@romanbetwo did you get a chance to test the fix? Any updates?

romanbetwo commented 2 days ago

Hi Torsten, not yet. Next week I will access the MOD. I will update the status for sure.

But the good news is that SPH seems to communicate.