Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

software for sunsynk + pylontech combo

Featured Replies

Ok I am going to say it, this is VERY impressive. Hat off to your technical abilities Boubul.

Now if one of you can package this in a consumer friendly way which us non-geeks can understand and use it will be great. Willing to compensate.

  • Replies 155
  • Views 50.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Web interface sorted.  I can now remotely alter my inverter settings. Next I want to integrate the settings into my automation flows.  This would essentially allow me to run two seperate sets of

  • As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inve

  • Ok I am going to say it, this is VERY impressive. Hat off to your technical abilities Boubul. Now if one of you can package this in a consumer friendly way which us non-geeks can understand and u

Posted Images

10 minutes ago, lancelot said:

Ok I am going to say it, this is VERY impressive. Hat off to your technical abilities Boubul.

Now if one of you can package this in a consumer friendly way which us non-geeks can understand and use it will be great. Willing to compensate.

Hahaha, I would look at packaging this in the near future. 

First need to ensure that it runs the way it should and then ensure it is "fool proof".

 

5 hours ago, Bloubul7 said:

Web interface sorted.  I can now remotely alter my inverter settings.

Next I want to integrate the settings into my automation flows.  This would essentially allow me to run two seperate sets of settings, Loadshedding vs No loadshedding.  The load shedding settings can be triggered by a webhook and will ensure that the battery charging is prioritized when loadshedding is active.

image.thumb.png.a530070e4ba48ad5ffd45891ab5e4265.png

 

1 hour ago, lancelot said:

Ok I am going to say it, this is VERY impressive. Hat off to your technical abilities Boubul.

Now if one of you can package this in a consumer friendly way which us non-geeks can understand and use it will be great. Willing to compensate.

Willing to pay for something like this that is as close to plug and play as possible. 

Monitoring interface sorted. 

Now the real difficult part starts by setting up user interfaces to enable changing the configurations entities through a web page, this should allow it to operate then as a plug and play solution.

image.thumb.png.bc00adad7de12433029a4ed6526e753b.png

On 2020/09/10 at 6:27 PM, ManiLow said:

As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote.

My current setup is the following:

I have a 8kW sunsynk inverter and 10kWh revov batteries.

have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana:

image.thumb.png.6cab4e524b54d2e601e7f2f3fe517752.png

I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages.

My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route.

 

Hi @ManiLow, How did you connect to the wifi dongle? I have tried many solutions based on the XTheOne projects as well as others, but I just can't seem to get any responses from the logger. Would you be inclined to share your source code specifically wrt the comms to the logger?

While I cannot get any data from the wifi, I am also trying to connect using RS485. You don't possibly have the pinouts for the RJ45 connector on the RS485 side? 

 

 

On 2020/09/26 at 10:44 PM, JustinSchoeman said:

Not much to decoding it. Sunsynk sent me the protocol document on request and it is dead simple.  Here is the code I use for reading the inverter:

https://github.com/justinschoeman/SmarterLoad/blob/master/tx/sunsynk.h

@JustinSchoeman, would you have the RS485 RJ45 pinouts on the SunSynk ? It seems that there is no general standard. 

On 2020/09/28 at 10:56 AM, JustinSchoeman said:

It is in the manual (just note that the table is incorrect - the trace labeling in the diagram below is correct):

image.thumb.png.590e362aa53f8bc8383e9bb4793bdd2e.png

Thanks!! 

 

So a minor update on the progress.  The initial prototype was done using a Pi Zero to see if it would be feasible (lowest cost option).  After running it for a week I have noticed that it has slowed down drastically and would not be feasible.  Ordered a couple of Raspberry Pi 4s and will migrate the setup once they have arrived.  Will run the system for another week on the Pi4 and if all goes well then I package a unit for beta testing .

If there is anyone around the Centurion area with a SunSynk inverter that would be willing to run a test once the system is ready, please drop me a PM

Pity I'm in CT. 

Have an 8kw sunsynk with 8.54kwp of panels. 

The display on the inverter does not record more than 50kwh of pv production in a day. I had my first 50kwh day on Sunday and it just stopped recording the last 2kwh on the display and on the Solarman app. 

Would be interested to know if this would still pick up the pv generation over 50kwh.

Edited by Achmat

20 minutes ago, Achmat said:

Pity I'm in CT. 

Have an 8kw sunsynk with 8.54kwp of panels. 

The display on the inverter does not record more than 50kwh of pv production in a day. I had my first 50kwh day on Sunday and it just stopped recording the last 2kwh on the display and on the Solarman app. 

Would be interested to know if this would still pick up the pv generation over 50kwh.

Thanks for the feedback, I'm currently reading the daily PV production value from the Inverter's values but can change this to a calculated field based on the solar load figures.  Will run a test to see how they would compare.

On 2020/10/13 at 12:21 PM, Bloubul7 said:

Thanks for the feedback, I'm currently reading the daily PV production value from the Inverter's values but can change this to a calculated field based on the solar load figures.  Will run a test to see how they would compare.

Seems they updated my display values and it's now showing the full production announce 50kwh.

Screenshot_20201016-183953_Gallery.jpg

  • 3 weeks later...
On 2020/10/06 at 4:43 PM, Bloubul7 said:

Hahaha, I would look at packaging this in the near future. 

First need to ensure that it runs the way it should and then ensure it is "fool proof".

 

Hi Bluobul

A fellow Sunsynk owner managed to log into the Sunsynk supplied WIFI logger.  I pasted his feedback posted on the Sunsynk forum below.  Would this assist in anyway for your custom monitoring project?  Does it indicate that one may be able to do away with having to use a Raspberry Pi to manage the data/transfer?

 

"Hi folks, somewhat related, I noticed the data logger listens on port 80/http, and has a web UI, and allows doing config for the data logger. First, it has default password of admin:admin.

Hehe, um, this is exactly why I have proper wifi setup with my IoT stuff on a seperate VLAN and wifi SSID. IoT things aren't that secure. Anyhow, noticed you can at least change the admin console HTTP password for it to something a little less guessable than admin:admin. 

There does seem to be a feature to cater for 2 servers, so if we get to know what protocol to use, we could possibly setup our own data logging receiver server.

file.pnga27d24_2c2985065d414d27896bb14e255745dd~mv2.webp

@Bloubul7 Instead of using a Raspberry PI zero to read from the inverter, are you now considering connecting a Raspberry PI 4 via a USB to RS485 converter like the ones below?  I assume the PI 4 then also runs home assistant where you show metrics/charts.

If this is not your current plan.  Do you see any issues with going this route?

https://www.robotics.org.za/W17286?search=usb to rs485

https://www.robotics.org.za/RS485-MINI?search=usb to rs485
 

1 hour ago, pierre. said:

@Bloubul7 Instead of using a Raspberry PI zero to read from the inverter, are you now considering connecting a Raspberry PI 4 via a USB to RS485 converter like the ones below?  I assume the PI 4 then also runs home assistant where you show metrics/charts.

If this is not your current plan.  Do you see any issues with going this route?

https://www.robotics.org.za/W17286?search=usb to rs485

https://www.robotics.org.za/RS485-MINI?search=usb to rs485
 

Hi Pierre,

Does works as well.  I have discarded my Pi Zero due to being too slow.  Back on a Pi 4 with the RS485 expansion hat.

The other option which you can try as well is a RS485 to Wifi unit.  Like the one below:

https://www.robotics.org.za/USR-W610?search=rs485

I tried this route as well with success.  Much easier to integrate into home assistant

For those that are already using the RS485 port for battery connection, has anyone tried the RS232/Wifi port?

image.png.1142aa732405af0df38dce1f34120038.png

The protocol document does seem to mention it, also the solarman wifi data logger connects via this port.

image.png.c4345c872096888c2aa15e01119d3599.png

 

On 2020/10/05 at 4:45 PM, Bloubul7 said:

Hi and welcome to the forum,

On the inverter side I have made use of a Raspberry Pi Zero with RS485 expansion HAT.   The inverter connects to the Pi through the RS485 port using the pinouts posted earlier

The Pi Zero has been configured as a Modbus Gateway and essentially converts to the Modbus RTU to Modbus TCP.  See link for library used - https://medium.com/@boonsanti/raspberry-pi-3-model-b-modbus-rs-485-to-modbus-tcp-ip-gateway-9ed14ce2c08e

I then have another Raspberry Pi which I use as my main Home automation server (Pi 4, 8gb ram with 256gb NVME drive).  On the server Pi I utilize Node Red to communicate with the Mod Bus relay and retrieve the specific register addresses which I want to monitor.  From there Node Red then formats the values and MQTT then values to my Home Assistant for display as well as log the values in an Influx DB for Grafana integration

image.thumb.png.1b639c50a3932948560375055d716a6f.png

 

image.thumb.png.a5cc2d82fb8aff446789885dde5a96fb.png

 

Hi this is very interesting. Awesome work! @Bloubul7 can you possibly share your Node Red flows? Thanks a lot

  • 2 weeks later...
On 2020/11/06 at 3:30 PM, Bloubul7 said:

 

Does works as well.  I have discarded my Pi Zero due to being too slow.  Back on a Pi 4 with the RS485 expansion hat.

The other option which you can try as well is a RS485 to Wifi unit.  Like the one below:

https://www.robotics.org.za/USR-W610?search=rs485

I tried this route as well with success.  Much easier to integrate into home assistant

Hi @Bloubul7

 

I managed to procure one of the units, are you able to share some of the Connection details, on device settings, and perhaps a flow?

 

Kind regards.

On 2020/09/28 at 10:56 AM, JustinSchoeman said:

It is in the manual (just note that the table is incorrect - the trace labeling in the diagram below is correct):

image.thumb.png.590e362aa53f8bc8383e9bb4793bdd2e.png

Pinouts as per above, you need to use the pins as per the bottom picture

3 minutes ago, Bloubul7 said:

Are you planning on using it with Home Assistant?

Yea, , So ill just pull it via Node => Mqtt , or i guess i could node => HA.api as well

 

2 minutes ago, Bloubul7 said:

Home Assistant has the Modbus  protocol integrated.  The unit which you bought converts Modbus RTU to Modbus TCP.  You can use the Modbus function directly in HA cutting out the need for NodeRed.

Inverter (Modbus RTU) -> Modbus TCP -> Home Assistant

 

Thanks,

Was thinking to do it in node red, but that makes a lot of sense

Have you made a yaml layout for it yet?

Unfortunately I didn't save my yaml layout when I tried out this method.

I have played around with various methods to integrate the real time data.  Currently playing around with a standalone Pi which uses NodeRed to InfluxDB to Grafana in an attempt to make a standalone package to help out members who doesn't like to tinker.  Everything is working great, however making the user interfaces fool proof to suite everybody's needs does take time (which I'm constraint with currently with yearends approaching)

Edited by Bloubul7

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.