So I was looking for a way to get data from my SRNE Solar charge inverter. And after looking into some bluetooth adapters and different modbus configurations I decided to give it a shot. I have never looked into modbus before but after reading this thread I ordered a waveshare RS485 to ethernet adapter from amazon.
The hardest part was to understand the dataflow and after that it was pretty much downhill.
I got the modbus address translations in a pdf from the company who responds very fast! Then just insert the adresses in a hex to decimal converter and paste it in a modbus sensor.
For my inverter the rs485 port was an exact copy of an rj45 port and it needed the pin 7 and 8 from a regular network cable. EDIT. 7 (brown) is B- and 8 is A- (brown/white). So just cut a cable and get those into the waveshare unit.
after that follow the guide from the thread above where the gatewaysettings are described then if you happen to use a 3kWh SRNE device find the code below!
That is not a waveshare gateway is it? As long as you follow the settings I’ve used it should work. Check out this thread Modbus TCP Gateway Recommendation
Also there are plenty of programs to poll different addresses and try it out, I think one of them is called modpoll.
It is not a waveshare gateway. I use Elfin ew11 as my gateway. I have been using it for my old epever charge controller and it works fine.
I have also connected to this SRNE inverter via USB and I can pull data but it frequently gives an erro5 input/output error which requires me to restart HA several times a day. This is why I want to switch to ethernet.
When i had this issue on my previous inverter I switch rx and tx wires and it was okay but that is not working now. I am not sure what else to check.
Nicely done, my next project will be to send commands to the inverter. I need to control when it charges the batterybank. The plan is to control setting 6 which is charging mode if I remember correct.
How is your experience with your gateway? I’m getting failed readings for every sensor pretty often. Every few seconds each sensor gives the state “unavailable” and I wonder if its my gateway that causes this, or is it the inverter?
Also when the inverter starts getting solar power it feels like the readings are getting ridiculously slow. Almost as if the inverter CPU cant manage or so. When I try to write a register at night it writes it instantly but when I try it when the sun is out and when the inverter is inverting power I can almost not get it to write at all. Im having to spam the setting and sometimes the registry is written a few minutes later or so
What scan interval are you using? I read data every minute. I also grouped addresses together so that I have less number of query to the inverter. It seems you have several or all of your requests going to the inverter same time.
I observed that the Chinese wifi module sold along with this inverter (on Aliexpress) reads every 5 minutes so I figured they don’t want to overload the inverter. One-minute interval, however, seems to work for me for at least one week before requiring a restart of HA.
Thanks for the info, I was polling every 2 seconds! I noticed warnings in the log that said lower than 5 seconds could cause instability issues which is what I experienced in ha, it could randomly restart. I changed to 5 secs yesterday and it feels much better already.
Haven’t checked out grouping att all, maybe it’s worth looking into?
Ah that is way smarter indeed, I think I will copy that
What do you think of the current measurement from the PV panels? Do you trust it? I have a 4 panels wired in 2s2p, but I feel that I dont get the amps out from the array, the first series string is 2 x 7.75A and the second is 2 x 12.6A so it should be a bit above 20A totally when paralleled… but I never got more than 8A as measurement via modbus. But today I noticed that the physical display on the inverter showed a higher amp number than the modbus reported. I wonder why that is…? I have the same address as you for the PV amps (264)
Seems that you live in a sunnier place than me at least (sweden)
Yes I live in a very sunny part of the world but I also think my panels are producing less than should be. My technician tells me otherwise.
My panel voltage and power reading are quite accurate. I cannot tell about the battery reading since they don’t show on the inverter itself. I do have a Chinese wifi plug made for SRNE hybrid inverter and their reading is similar to mine on HA.
Okay, We will see when the summer comes, I installed a bigger battery system and noticed that the solar gave more power than usual, maybe I didn’t have enough power consumers before so my bigger bank has room for all solar now. I can get voltage, current and calculate the power. Even the kwh in the energy dashboard is working now.