• Have you tried out dark mode?! Scroll to the bottom of any page to find a sun or moon icon to turn dark mode on or off!

diy solar

diy solar

SRNE HESP no CT power reported

What's odd to me: it's a lot more likely on a hybrid inverter like this with the additional features to need firmware updates. If AC coupling, for example, was added later, I'd personally want to turn that on. Because tinkering is fun. This is something that I do find irritating with SRNE. Just make the go**amn firmware available on the website and let people decide what they want to do. It's 2025.

I know many of us are disposed to leave it alone if it's working, and I see both sides of that coin. Being in IT / software engineering / database engineering, there's always an argument for stability. All software systems need maintenance though. New releases have new features that may not have been ready at initial release and were rightly not 'on' because testing showed it wasn't ready. There are also always security patches in any software and they should be applied to connected systems.

Emailing support to get firmware files is just dumb. When I commissioned the ASPs, I wanted to have the latest firmware -- because then I didn't intend to touch it without a really good reason. They actually sent me *older* versions of the file.
yes mine doesn't have the micro inverter option on the generator input.

what programming language are you using? I have a script for modbus that read all the data from srne protocol (v1.96) right now I use it to get all the data in home assistant but I might check to create a website like solar assistant but maybe better.
right now I have this 1738252227889.png

I can also update all settings from the inverter. the only part I haven't implemented is the firmware update.... (also I still have a bug in the grid stats as you can see...). I did some automation, when our grid provider send notification on peak hours, home assistant will change the inverter to limit load on home and use the battery / solar to power the house and change back when it is over.

I want this project to be open source and get help from the community too.
 
yes mine doesn't have the micro inverter option on the generator input.

what programming language are you using? I have a script for modbus that read all the data from srne protocol (v1.96) right now I use it to get all the data in home assistant but I might check to create a website like solar assistant but maybe better.
right now I have this View attachment 274373

I can also update all settings from the inverter. the only part I haven't implemented is the firmware update.... (also I still have a bug in the grid stats as you can see...). I did some automation, when our grid provider send notification on peak hours, home assistant will change the inverter to limit load on home and use the battery / solar to power the house and change back when it is over.

I want this project to be open source and get help from the community too.
I use Python most of the time for my projects. Work uses Typescript and Node.js, which I personally do not enjoy using. I've done those professionally, along with C#, Java, C++ (that's going back a bit). With the exception of maybe Lisp and F#, I can read and understand most (imperative anyway) languages.

My day to day right now is centered around databases. I do a fair bit with tuning, teaching, helping with more complicated things.
 
I'm interested in your script and contributing to the project.
I use Python most of the time for my projects. Work uses Typescript and Node.js, which I personally do not enjoy using. I've done those professionally, along with C#, Java, C++ (that's going back a bit). With the exception of maybe Lisp and F#, I can read and understand most (imperative anyway) languages.

My day to day right now is centered around databases. I do a fair bit with tuning, teaching, helping with more complicated things.
we could create a discord for this project

The main script that pull / update data is in Python and it use existing mqtt broker. I was losing a bit of interest because the basic work for me right now. but if it generate more interest, I would be happy to reach a larger audience for it and code more features.
 
we could create a discord for this project

The main script that pull / update data is in Python and it use existing mqtt broker. I was losing a bit of interest because the basic work for me right now. but if it generate more interest, I would be happy to reach a larger audience for it and code more features.
I'd be interested in helping out if/when/where I could.

The same thing could be extended to other SRNE inverters, I'd like to pull some of that data as well. I have access to some of it in Solar Assistant, but not the level of detail I'd like in Home Assistant. I know the HESPs work with SA, but I think more tools for them would be good.

There's also a couple of mostly abandon projects that have enough of a framework where, at least for the ASPs, if you have the datalogger set up, you could write an app that listens on (<insert TCP port number I forgot here>) and receives the same telemetry that gets sent to SolarMan. Be pretty cool to have a datalogger sending data to something you control and block the other. The endpoint is settable in the datalogger configuration.

Just a function of time. :)
 
I'd be interested in helping out if/when/where I could.

The same thing could be extended to other SRNE inverters, I'd like to pull some of that data as well. I have access to some of it in Solar Assistant, but not the level of detail I'd like in Home Assistant. I know the HESPs work with SA, but I think more tools for them would be good.

There's also a couple of mostly abandon projects that have enough of a framework where, at least for the ASPs, if you have the datalogger set up, you could write an app that listens on (<insert TCP port number I forgot here>) and receives the same telemetry that gets sent to SolarMan. Be pretty cool to have a datalogger sending data to something you control and block the other. The endpoint is settable in the datalogger configuration.

Just a function of time. :)
yeah right now it is more like script -> mqtt broker -> home assistant -> influxDB

but if we do our own stuff, we would need a good live data system ( web socket or any other) some system do granular for few hours and then aggregate/reduce the data. but this is getting more technical and could be discussed in a discord on how we could see this system working / design

I'm curious to know if using my script you could pull statistics data from ASP there is a region where you can get data history. something that solar assistant doesn't do, it could have wrong kwh data if it doesn't come from the inverter directly and from my tests, they don't query stats compiled from the inverter but they compile their own data.
I don't see why the script wouldn't work for ASP the only question is if all the data is available from modbus, worst case the address doesn't exists when trying to pull the data
 
I updated my signature, I created a discord to have more discussion on this. Everybody is welcome, devs and users to talk about ideas and anything. For now, we might just focus on SRNE unless someone want to jump in to support other inverters. ( I can only work on what I currently have installed at my home ).
 
yes mine doesn't have the micro inverter option on the generator input.

what programming language are you using? I have a script for modbus that read all the data from srne protocol (v1.96) right now I use it to get all the data in home assistant but I might check to create a website like solar assistant but maybe better.
right now I have this View attachment 274373

I can also update all settings from the inverter. the only part I haven't implemented is the firmware update.... (also I still have a bug in the grid stats as you can see...). I did some automation, when our grid provider send notification on peak hours, home assistant will change the inverter to limit load on home and use the battery / solar to power the house and change back when it is over.

I want this project to be open source and get help from the community too.
I just started using your MQTT code as the current Solar Assistant support is disappointing. I like your HA dashboard in this post, could you put the config on your GitHub maybe? I know you originally mentioned adding JK support to the script, but guessing you ended up using one of the many existing solutions instead which seems reasonable.

I think my preferred way to monitor this (other than Solar Assistant, which I would perfer to use since I already bought it...) might be to hang an ESP32 with an RS485 transceiver off the existing wifi datalogger port which will feed it both power and comms, nice and self-contained . Can then use that with ESPHome to feed data to HA or MQTT to wherever. Should be pretty straightforward with existing modbus_controller platform, will probably try setting that up when I get a chance.

1738261008377.png
 
I just started using your MQTT code as the current Solar Assistant support is disappointing. I like your HA dashboard in this post, could you put the config on your GitHub maybe? I know you originally mentioned adding JK support to the script, but guessing you ended up using one of the many existing solutions instead which seems reasonable.

I think my preferred way to monitor this (other than Solar Assistant, which I would perfer to use since I already bought it...) might be to hang an ESP32 with an RS485 transceiver off the existing wifi datalogger port which will feed it both power and comms, nice and self-contained . Can then use that with ESPHome to feed data to HA or MQTT to wherever. Should be pretty straightforward with existing modbus_controller platform, will probably try setting that up when I get a chance.

View attachment 274409
I did tried that solution at first with an ESP8266 and ESPHome but it wasn't as stable. The HESP have a usb port that provide RS485 protocol so you don't need any adaptor, in your case, you might need one.

For jkbms, I'm using the ESP32 bluetooth connection but sometime it get disconnected even if the esp is right beside the battery. For now, it is only a temporary setup until I find the documentation to have it working like the windows app

the script still need to be able to run as a service, also if you restart home assistant it doesn't reconnect automatically to mqtt
for the Sunsynk Power Flow Card I can give you my config
 
Yeah, ESP8266 tends to have lots of stability problems compared to ESP32 in my experience. I'm aware no RS485 adapter is needed if you use the USB port, but not sure how possible it is to use it with an ESP32, seems like the newer versions might have USB host support, but no idea if that is supported in ESPHome. Also don't know if you can pull power from it.

For the JK-BMS, you could run https://github.com/fl4p/batmon-ha/blob/master/doc/Standalone.md on the same device as you are running the SRNE script, though it doesn't seem to have all the config options that the ESPHome JK integrations do, probably straightforward enough to add assuming someone hasn't done it already though.

As far as running as a service:
Code:
sudo vim /etc/systemd/system/srne-modbus.service

Paste in
Code:
[Unit]
Description=SRNE Modbus
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
Restart=always
RestartSec=5s
User=<user>
WorkingDirectory=/home/<user>/srne-modbus
ExecStart=/home/<user>/srne-modbus/venv/bin/python3 main.py

[Install]
WantedBy=multi-user.target

Then run
Code:
sudo systemctl enable srne-modbus.service
sudo systemctl start srne-modbus.service

This assume the script was installed to a venv in /home/<user>/srne-modbus/venv/ just running
Code:
python3 -m venv ./venv
./venv/bin/pip3 install -r requirements.txt
instead of
Code:
pip install -r requirements.txt
when you first setup the script
 
yeah but I'm not sure I like using bluetooth to read the bms to pull the information. the connection isn't stable and you cannot use the mobile app at the same time to change any settings
 
yeah but I'm not sure I like using bluetooth to read the bms to pull the information. the connection isn't stable and you cannot use the mobile app at the same time to change any settings
Yeah, I don't know if there is a pre-existing script that uses RS-485 though, have only seen the ESP solutions. And there are some downsides to using RS-485 too if you have parallel batteries, depending on which port and battery addressing you use in some cases can have read only access. I've had decent luck using a Bluetooth ESP integration that exposes all the config options, I just use it in place of the app. If I need to use the app for some reason I just power down the ESP temporarily.
 
I have a weird issue with the HESP and the mppt. It look like the inverter reset the mppt each 30min. I tried to isolate it, deactivate the battery charging but still happening. each 30min the solar generation cut and I see a spike on the battery at the same time because the inverter still generate what the solar was providing. so if the mppt was generating 1500watt and it stop, the battery will now provide 1500watt until the inverter adjust and stop. I sent an email to SRNE support because I feel like, since it is always each 30min it would be more a bug than hardware ( I think... )

1740261986190.png

anybody have something similar, I think I also have an old firmware, but srne doesn't have one from the last time I asked, even if from factory I saw people having a more recent version
 
I see a blip every now and then on the ASP's. My guess is the MPPT's are switching as production changes thru the day to find the peak power point. My graphs though don't show a dip like yours though.
 
They definitely aren't as bad on the ASP's that I have seen.

@OffGridForGood are you seeing and major MPPT drops with the HESPs
 

Attachments

  • Screenshot_2025-02-23-09-39-08-14_cbf47468f7ecfbd8ebcc46bf9cc626da.jpg
    Screenshot_2025-02-23-09-39-08-14_cbf47468f7ecfbd8ebcc46bf9cc626da.jpg
    73.6 KB · Views: 2
  • IMG_20250222_182517.jpg
    IMG_20250222_182517.jpg
    58.3 KB · Views: 2
They definitely aren't as bad on the ASP's that I have seen.

@OffGridForGood are you seeing and major MPPT drops with the HESPs
yeah those dip could be clouds, same from my graph, starting of the day and the end of the they was cloudy.
At first, I was thinking maybe I have a bug in my code that pull the data, but I could also see from the inverter screen doing the same thing. mppt completely stop and restart.
 
yeah those dip could be clouds, same from my graph, starting of the day and the end of the they was cloudy.
At first, I was thinking maybe I have a bug in my code that pull the data, but I could also see from the inverter screen doing the same thing. mppt completely stop and restart.
I really don't think it's clouds in your case.
I'd keep pushing support.
 
yeah, will do.
even looking a multiple days. I could try to factory reset the inverter, but I don't want to reconfigure everything.
EDIT: never mind, I did the factory reset, we will see if that does anything, but it is cloudy today so I will probably have to wait to know if it change anything
EDIT2: issue is still there
1740327210872.png
 
Last edited:
yeah those dip could be clouds, same from my graph, starting of the day and the end of the they was cloudy.
At first, I was thinking maybe I have a bug in my code that pull the data, but I could also see from the inverter screen doing the same thing. mppt completely stop and restart.
I have tall trees along the East property line, so my Solar is hit and miss until 10:00 AM each day, due to the branches/trunks causing scattered shading amoung the panels. After 10 AM - all good and no "dips" until the late day sun drops below the tree tops in the S-West where this time of year those tree tops are high enough to cause some late day shade spots. No issues between those times of day though.
 
Last edited:
I have a weird issue with the HESP and the mppt. It look like the inverter reset the mppt each 30min. I tried to isolate it, deactivate the battery charging but still happening. each 30min the solar generation cut and I see a spike on the battery at the same time because the inverter still generate what the solar was providing. so if the mppt was generating 1500watt and it stop, the battery will now provide 1500watt until the inverter adjust and stop. I sent an email to SRNE support because I feel like, since it is always each 30min it would be more a bug than hardware ( I think... )

View attachment 280205

anybody have something similar, I think I also have an old firmware, but srne doesn't have one from the last time I asked, even if from factory I saw people having a more recent version
Yeah, I see the same thing on my HESP, consistenly every 30m there is a sharp drop then recovery. I know there was another thread I read noting this behavior on SRNE equipment, theory was this was just how they implemented the algorithm to rescan the maximum power point.

Mind depending on the polling rate of whatever tool is reading the PV data it is entirely possible the behavior could be missed/average out since the blips only seem to last 10s or so.

Screenshot_20250303_101739_Home Assistant.jpg
 
Yeah, I see the same thing on my HESP, consistenly every 30m there is a sharp drop then recovery. I know there was another thread I read noting this behavior on SRNE equipment, theory was this was just how they implemented the algorithm to rescan the maximum power point.

Mind depending on the polling rate of whatever tool is reading the PV data it is entirely possible the behavior could be missed/average out since the blips only seem to last 10s or so.
It look a lot like me, what is your firmware version?
SRNE support want to see logs from wifi module but I don't have one... So it might take some time before we really understand what is going on. Like me yes it only take few seconds and go back to normal but still it would be interesting to get at least the reason it is doing that if it is normal. At least I'm not alone
 

diy solar

diy solar
Back
Top