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

1 hour ago, JuanH said:

I'm having the exact same issue as @jacauc. I wonder if the current batch of converters from https://www.robotics.org.za/ is faulty?

The majority of the error messages are caused by the attempt to reconnect after timeout. By disabling "Reconnect on timeout", I no longer get the "Error: Client Not Ready To Read At State"  messages, and only get the below every few seconds. It seems if I can find the cause of the timeout, the issue will be resolved entirely:

image.png.733f2c237c77de97e0bb44bab4bac930.png

 


These are my current settings:

 

image.thumb.png.69a831b959f9b6ea0fc7ececaf9a10db.png

  • Replies 734
  • Views 206.5k
  • 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

@Bloubul7hoping you can provide some clarity on the below:

This is a photo of my SS8's Panel for reference

25528602-3090-4af0-9604-664f5832d87a.thumb.jpg.abbd67eff7dcf6abc191ca1f0d2d7205.jpg

From what my installer explained to me, the house icon next to the grid icon in the bottom right (showing 32watts) is my non-essential usage. From your flows, I understand this to be "Grid Load". And the UPS icon is my essential usage, from your flows understood to be "Grid Inverter Load". 

In your Node Red flows, however, you sum "Grid CT" and "Grid Load" to give "Grid Total Load". Isn't that taking "Grid Load" into account twice, as that load is already included in Grid CT?

I noticed this earlier today, when I spotted "Grid Total Load" was giving a value in excess of 11000 W.

Not sure if I am misunderstanding something, or if my system is configured incorrectly.

Thought I'd share my current flows for anyone interested.

  • Removed all Solar Readings (nodes) as I do not have PV (yet)
  • Split the data output into a separate flow to simplify changes
  • Set msg values for each of the nodes so they can be reused later
  • Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better.
  • Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/

Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now.

 

inverter monitoring.json publish externally.json

Edited by jacauc

2 hours ago, jacauc said:

Thought I'd share my current flows for anyone interested.

  • Removed all Solar Readings (nodes) as I do not have PV (yet)
  • Split the data output into a separate flow to simplify changes
  • Set msg values for each of the nodes so they can be reused later
  • Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better.
  • Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/

Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now.

 

inverter monitoring.json 4.4 kB · 1 download publish externally.json 34.44 kB · 1 download

Doh! Noticed my file names vs flow names are swapped. 

4 hours ago, jacauc said:

Thought I'd share my current flows for anyone interested.

  • Removed all Solar Readings (nodes) as I do not have PV (yet)
  • Split the data output into a separate flow to simplify changes
  • Set msg values for each of the nodes so they can be reused later
  • Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better.
  • Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/

Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now.

 

inverter monitoring.json 4.4 kB · 2 downloads publish externally.json 34.44 kB · 1 download

Thanks for sharing!

What is the pallete name for "cycle"? Getting an error importing the flow.

Be aware that it will change some of the names of the tables in your influxdb, so dashboards may be affected. Let me know if you need help transferring data from the old tables to the lowercase tables. 

[{"id":"be3ebae7.6ed828","type":"function","z":"28c7d530.54db9a","name":"Assemble Config","func":"//var fulltopic\nmsg.topic = \"homeassistant/sensor/SunSynk\" + \"/\" + \"/\" + msg.shorttopic + \"/\" + \"config\";\nmsg.topic = msg.topic.replace(\"//\", \"/\");\nmsg.payload = {\n  \"unit_of_measurement\": msg.unit,\n  \"state_topic\": \"homeassistant/sensor/SunSynk\" + \"/\" + msg.shorttopic + \"/\" + \"value\",\n  \"name\": \"SunSynk_\" + msg.shorttopic,\n  \"unique_id\": msg.shorttopic,\n  \"device\": {\n    \"identifiers\": [\n      \"SunSynk\"\n    ],\n    \"name\": \"SunSynk\",\n    \"model\": \"SynSynk\",\n    \"manufacturer\": \"SunSynk\"\n  }  \n}\n  if (msg.deviceclass != \"\") {\n     msg.payload.device_class = msg.deviceclass\n  }\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":280,"wires":[["cf57d2c1.c918f","d329b5a1.56bb08"]]}]

Updated code of the Assemble Config Node to allow all entities to be grouped under the same device in HA. Also fixed the frequency values which did not show up in HA.

 

Files uploaded. Due to continuous tweaks, I think I'll put it on my github page going forward.

Inverter Monitor.json Publish to MQTT and DB.json

Edited by jacauc

On 2021/05/20 at 6:33 PM, JuanH said:

@Bloubul7hoping you can provide some clarity on the below:

This is a photo of my SS8's Panel for reference

25528602-3090-4af0-9604-664f5832d87a.thumb.jpg.abbd67eff7dcf6abc191ca1f0d2d7205.jpg

From what my installer explained to me, the house icon next to the grid icon in the bottom right (showing 32watts) is my non-essential usage. From your flows, I understand this to be "Grid Load". And the UPS icon is my essential usage, from your flows understood to be "Grid Inverter Load". 

In your Node Red flows, however, you sum "Grid CT" and "Grid Load" to give "Grid Total Load". Isn't that taking "Grid Load" into account twice, as that load is already included in Grid CT?

I noticed this earlier today, when I spotted "Grid Total Load" was giving a value in excess of 11000 W.

Not sure if I am misunderstanding something, or if my system is configured incorrectly.

Coming back to this, there is definitely a discrepency with my setup and @Bloubul7's flows. I'm not saying his flows are set up wrong. It's more than likely that it's my Inverter that is configured incorrectly. Based on my setup, this is how my inverter readings compare to the flows. Can anyone else confirm if it is correct on their side:Untitled.thumb.png.5642d567a01fa4612b98248694d22f51.png

With the above, Grid_Total_Load_Calc is calculating my non-essential load (3026 W) twice.

BTW, thank you @Bloubul7 for all the hard work and sharing it with us!

On 2021/05/21 at 7:17 PM, JuanH said:

Coming back to this, there is definitely a discrepency with my setup and @Bloubul7's flows. I'm not saying his flows are set up wrong. It's more than likely that it's my Inverter that is configured incorrectly. Based on my setup, this is how my inverter readings compare to the flows. Can anyone else confirm if it is correct on their side:Untitled.thumb.png.5642d567a01fa4612b98248694d22f51.png

With the above, Grid_Total_Load_Calc is calculating my non-essential load (3026 W) twice.

BTW, thank you @Bloubul7 for all the hard work and sharing it with us!

Having the issue this side. Doesn’t seem like the LD reading on the inverter is available as a register, will have to calculate. This is only an issue if you use non-essential loads. 

Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github?

1 minute ago, Sc00bs said:

Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github?

No problems here... it's already publicly available on this forum anyways

On 2021/05/21 at 4:06 PM, jacauc said:

Be aware that it will change some of the names of the tables in your influxdb, so dashboards may be affected. Let me know if you need help transferring data from the old tables to the lowercase tables. 

What is the best way to convert my data from the old tables?  

2 hours ago, Sc00bs said:

Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github?

I've used @jacauc's examples, and added solar nodes to it, as well as changed/removed the calculated nodes for those who have both essential and non-essential loads on their inverters. For anyone who is interested: https://github.com/juanhaywood/sunsynk-modbus-nodered-flows

7 hours ago, Sc00bs said:

jacauc Just saw you have a Github page already!

https://github.com/jacauc/SunSynk-NodeRed

Published here - will need to work on Readme and others to give proper credit to @Bloubul7

6 hours ago, Sc00bs said:

jacauc Interested to see what your Grafana Dashboard looks like, can you upload that as well? 

 

My current dashboard attached at the bottom of this post. Still a work in progress

6 hours ago, Sc00bs said:

What is the best way to convert my data from the old tables?  

Open the "influx" shell and then do

--list all tables
SHOW MEASUREMENTS

--copy values from old table to new table
SELECT * INTO newtablename FROM oldtablename

--delete old measurements
DROP MEASUREMENT oldtablename

 

grafana.json

21 hours ago, JuanH said:

I've used @jacauc's examples, and added solar nodes to it, as well as changed/removed the calculated nodes for those who have both essential and non-essential loads on their inverters. For anyone who is interested: https://github.com/juanhaywood/sunsynk-modbus-nodered-flows

I have updated the flows to include the PV2 Panels and generate a total power figure if you want to check it out and perhaps upload it to your github as well as my Solar Dashboard (always under construction). Perhaps we could start a project with everybody involved, would be cool to enable Bloubuls original flows with the reading/writing of the load shedding options 

flows (4).json Solar Dashboard-1621923466176.json

34 minutes ago, Sc00bs said:

I have updated the flows to include the PV2 Panels and generate a total power figure if you want to check it out and perhaps upload it to your github as well as my Solar Dashboard (always under construction). Perhaps we could start a project with everybody involved, would be cool to enable Bloubuls original flows with the reading/writing of the load shedding options 

flows (4).json 48.84 kB · 0 downloads Solar Dashboard-1621923466176.json 61.55 kB · 1 download

Thank you! I've uploaded it to the Github page.

Just now, JuanH said:

I've replaced this converter with an alternative RS485 device, and no longer having a time-out issue.

Good to know. What device did you use? 

4 minutes ago, jacauc said:

Good to know. What device did you use? 

https://www.robotics.org.za/W14882

I also took the opportunity to switch from using my Pi 4 (which is overkill as a RS485 - MQTT intermediary, unless you are running your whol HA system on it as well) to using a Pi Zero W. Much smaller footprint, and looks much neater.

 

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.