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.

SunSynk - Inverter Monitoring

Featured Replies

40 minutes ago, Sc00bs said:

There are two main ways that Ethernet cables are wired. T-568-A  & T-568-B 

B is the most common way and the way that was used for the diagrams that were provided. 

image.png.65f334a5e5d45428e82c787990b1d011.png

 

best is to wire it using one of the pairs 

Orange/White & Orange 

or 

Brown/White & Brown 

It will work using both pairs but only necessary to have one. 

 

 

 

 

 

thanks, I've tried all combinations mentioned and no luck. I wonder if it has something to do with home assistant and the USB port. 

does anyone have it working running home-assistant with the node-red add-on installed? 

I have a 30m network cable connected directly to the RS485 port of the inverter, then that cable connects directly to the USB/RS485 converter and the converter is then plugged directly into the USB port of the raspberry PI where I'm running HA, Node-red, InfluxDB, MQTT all on one RPI. 

  • Replies 734
  • Views 208.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Thanks to @Bloubul7and all the other contributors. This is my HA dashboard. It has all I need to view at a glance. (PS: really impressed with the Sunsynk)  

  • Thanks for sharing. Did not know about the horseshoe or plotly cards. Added to Dashboard  

  • Think I figured it out. Copied the Raw Config file. EDIT: Open the file at the bottom with notepad or Text Editor. Copy and paste in Dashboard "Raw configuration editor" You need to install

Posted Images

11 minutes ago, McAllstar said:

thanks, I've tried all combinations mentioned and no luck. I wonder if it has something to do with home assistant and the USB port. 

does anyone have it working running home-assistant with the node-red add-on installed? 

I have a 30m network cable connected directly to the RS485 port of the inverter, then that cable connects directly to the USB/RS485 converter and the converter is then plugged directly into the USB port of the raspberry PI where I'm running HA, Node-red, InfluxDB, MQTT all on one RPI. 

If you have Home Assistant OS, why not try using the sunsynk addon? install here

Only one addon can have access to the RS-485 USB port at a time (except maybe through the mbusd TCP-RTU gateway)

  • Author
4 hours ago, McAllstar said:

this is how I have cabled my connection. Maybe someone can take a look and see if it is correct. 

 
 

On a different note.  Your CT Coil appears to be in the incorrect place.  It should be in your Main DB on the incoming supply line.  Secondly I see that you are not using the ATS ports in which case I would assume you don't have a relay for N-E bonding.  Please check it out, a floating neutral during islanding mode can be dangerous. 

1 hour ago, McAllstar said:

thanks, I've tried all combinations mentioned and no luck. I wonder if it has something to do with home assistant and the USB port. 

does anyone have it working running home-assistant with the node-red add-on installed? 

I have a 30m network cable connected directly to the RS485 port of the inverter, then that cable connects directly to the USB/RS485 converter and the converter is then plugged directly into the USB port of the raspberry PI where I'm running HA, Node-red, InfluxDB, MQTT all on one RPI. 

You just need the orange, brown and green wire. If this doesn't work, it is not the cable.

  • Author
42 minutes ago, McAllstar said:

I tried the normal one and the BETA on and i battled to get it working. So i gave up on that

I'm assuming that you are running HA OS.  Can you see your device when it is plugged in?  Check under configuration - Addons/ backups/ supervisor - Host - Hardware

image.png.ae807760aed79911753fe77620598137.png

I don't know if this is welcome here but if someone does not use HA and/or has problems get things running with node-red you might wanna try a PI with iobroker and the software modbus adapter.

I am running a 8 kW Sunsynk with a Waveshare RS485 to ETH Adapter to extract the relevant data from the inverter into my smarthome based (PI400 with Debian + iobroker - a very good system, with many software adapters!). As I prefer Blockly over node-red (easier to use imho) it is the perfect setup to work with.

At the same time I installed an MQTT Software Adapter and receive the data from my solarmd battery logger as well.

9 minutes ago, Joerg said:

You just need the orange, brown and green wire. If this doesn't work, it is not the cable.

Safer to use the twisted pairs, especially over a 30mtr cable. 

1 hour ago, McAllstar said:

thanks, I've tried all combinations mentioned and no luck. I wonder if it has something to do with home assistant and the USB port. 

does anyone have it working running home-assistant with the node-red add-on installed? 

I have a 30m network cable connected directly to the RS485 port of the inverter, then that cable connects directly to the USB/RS485 converter and the converter is then plugged directly into the USB port of the raspberry PI where I'm running HA, Node-red, InfluxDB, MQTT all on one RPI. 

Are the lights flashing on the RS485 adapter? 

Also, a 30mtr cable, I would start of with a shorter one and make sure it works with that one first if possible.

 

2 minutes ago, Sc00bs said:

Safer to use the twisted pairs, especially over a 30mtr cable. 

You are right. If I want to check a cabling problem I wouldn't start with a 30 m cable to be honest. I would use a 2 m cable and check if it runs (even without twisted pairs as it could mean another source of error). Once that works move on to twisted pairs and longer cables.

32 minutes ago, Sc00bs said:

Are the lights flashing on the RS485 adapter? 

Also, a 30mtr cable, I would start of with a shorter one and make sure it works with that one first if possible.

 

We had the same idea 😉

14 hours ago, Bloubul7 said:

On a different note.  Your CT Coil appears to be in the incorrect place.  It should be in your Main DB on the incoming supply line.  Secondly I see that you are not using the ATS ports in which case I would assume you don't have a relay for N-E bonding.  Please check it out, a floating neutral during islanding mode can be dangerous. 

Thanks a lot for the feedback. I'll move the CT coil ASAP. I was actually trying to get someone in the JHB Edenvale area to come out and give my system a once over to confirm that everything is setup correctly. Unfortunately no-one on the forum responded. I'll see if I can find someone to come and assist who is local. I'll also look into the ATS ports and N-E bonding you mentioned. I really appreciate the feedback and assistance. 

thanks to all above for the ideas and comments too. I tested the cable before I connected it and it was working fine. I did also try a shorter cable closer to the inverter and still had issues. I'm busty loading a second RPI with RPI-OS and will setup NR etc and see if i get a different result. Will let you know. 

  • Author
18 minutes ago, McAllstar said:

thanks to all above for the ideas and comments too. I tested the cable before I connected it and it was working fine. I did also try a shorter cable closer to the inverter and still had issues. I'm busty loading a second RPI with RPI-OS and will setup NR etc and see if i get a different result. Will let you know. 

Have you checked that the OS is seeing your RS485 converter as per the below post?  Then cross check the port on which it is assigned against your Node Red assignment?

 

14 hours ago, Bloubul7 said:

I'm assuming that you are running HA OS.  Can you see your device when it is plugged in?  Check under configuration - Addons/ backups/ supervisor - Host - Hardware

image.png.ae807760aed79911753fe77620598137.png

 

17 minutes ago, Bloubul7 said:

Have you checked that the OS is seeing your RS485 converter as per the below post?  Then cross check the port on which it is assigned against your Node Red assignment?

 

 

 I did check it and i can see the RS485 converter is there. I also set it in Node Red.

40 minutes ago, McAllstar said:

thanks to all above for the ideas and comments too. I tested the cable before I connected it and it was working fine. I did also try a shorter cable closer to the inverter and still had issues. I'm busty loading a second RPI with RPI-OS and will setup NR etc and see if i get a different result. Will let you know. 

I doubt very much is it a hardware problem with the raspberry pi. 

If you want you can bring your Pi and your cable through to me in Midrand next week and we can have a look at it together to get it working. 

Ok so i setup a separate RPI with Raspberry PI OS and just installed Node Red and used the same RS485 adapter. 

I pointed the MQTT and Influx to my HA installation and on the ModbusRead flow is is rapidly switching between active and then queuing. So I'm not getting the same issue as I was on the before which is good news and also no errors in the debug log. One thing I did notice though is that on the working PI when i click on the inverter settings and the search magnifying glass next to serial port I have the ability to select either /dev/ttyAMA0, /dev/ttyS0 or /dev/tty/USB0 as per below. However when i do it on the Node-Red instance on the HA PI nothing happens. Maybe something wrong with HA or Node-Red on the HA installation. 

image.thumb.png.d4d684226534c33c22f982a30dc7dd1b.png

 

image.thumb.png.8af3f2d850dc3bef35b529783a259e58.png

  • Author
1 hour ago, McAllstar said:

Ok so i setup a separate RPI with Raspberry PI OS and just installed Node Red and used the same RS485 adapter. 

I pointed the MQTT and Influx to my HA installation and on the ModbusRead flow is is rapidly switching between active and then queuing. So I'm not getting the same issue as I was on the before which is good news and also no errors in the debug log. One thing I did notice though is that on the working PI when i click on the inverter settings and the search magnifying glass next to serial port I have the ability to select either /dev/ttyAMA0, /dev/ttyS0 or /dev/tty/USB0 as per below. However when i do it on the Node-Red instance on the HA PI nothing happens. Maybe something wrong with HA or Node-Red on the HA installation. 

image.thumb.png.d4d684226534c33c22f982a30dc7dd1b.png

 

image.thumb.png.8af3f2d850dc3bef35b529783a259e58.png

Based on the above the flow is definitely communicating with the inverter.  Check your MQTT settings on HA. 

so i managed to get it to work. I completely uninstalled Node-red and deleted the node red folder under the config directory and then rebooted. I then re-installed NR and then re-configured each component 1 by 1 and the inverter now shows as connected. now i just need to figure out how to add the dashboards to influx and energy section etc etc.  

thanks again for all the patience and assistance i really really appreciate it. 

 

image.thumb.png.1f79ea6ba963388cc1cf2a7ec268b3fb.png

 

@kellerza Thanks for putting addon together. 

I've got this strange issue with the essential/non-essential load calcs.

Let's say I have 28 W on my non-essential (stove light), I then switch my kettle on, which is on my essential circuit. The essential calc comes to 2712 W, and then non-essential falls through the floor, to like -42 W etc. This only seems to happen when I put a higher load on the essentials side, when the kettle goes off the calc add up again. If I take a look at the inverter screen at the same time, I've got 2712 W on essentials, and 28W on non-essentials. It seems something breaks or is missing from the calc.

 

Edited by _terminal

4 hours ago, _terminal said:

 

@kellerza Thanks for putting addon together. 

I've got this strange issue with the essential/non-essential load calcs.

Let's say I have 28 W on my non-essential (stove light), I then switch my kettle on, which is on my essential circuit. The essential calc comes to 2712 W, and then non-essential falls through the floor, to like -42 W etc. This only seems to happen when I put a higher load on the essentials side, when the kettle goes off the calc add up again. If I take a look at the inverter screen at the same time, I've got 2712 W on essentials, and 28W on non-essentials. It seems something breaks or is missing from the calc.

 

Hi @_terminal I assume you are using the sensors essential_power and non_essential_power. They at least try to read all the relevant registers at the same time, before applying any filters to individual registers. 

You can try adding :now to sensors to see if this is not a side-effect of the filters, so you end up with the following sensors

Quote

SENSORS:
  - essential_power:now
  - non_essential_power:now
(these 2 are calculated from the ones below)
  - grid_ct_power:now
  - grid_ld_power:now
  - inverter_power:now
  - aux_power:now

 

@kellerza Thanks. I gave that a try, with 0 W non-essential load, and this is what the result was:

image.thumb.png.b0097e9c46917cdd8a0a02d330b64ff8.pngThe actual non-essential load in this case was supposed to be 0 W. 

Here is another, in this case non-essential should be 28 W.

image.thumb.png.10a14a0a4f3d9b6ecf868235573e2428.png

I'm not sure what can be done. Your result seems correct according to the current formula: non-essentials=CT-LD

It's based on the image below (source powerforum):

image.png.57fb5a863185a9bc5a96590c960f8e06.png

Taking a comparison, between the sunsynk values and a SMA energy meter, see the attached graphs (both are filtered, using different filters, but despite that there is a delta

You can clearly see I have a light that switch on on the non-essential circuit below on the SMA, but the sunynk values are all over the place. Potentially the sunsynk does some other calculation (dependent on voltage?) for the values it displays on the inverter

If you have any idea we can talk about it, but I'm not actively trying to reverse engineer this...

image.thumb.png.cadb79632d634bfc2b04582f2e1589d4.png

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.