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

  • Replies 734
  • Views 208.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

21 minutes ago, IvanD said:

Hi  I have an 8.8 Sunsynk inverter and i do not see a BMS 485 port, only a RS485. Will I then not be able to set this up

You should still be able to setup it up, but the wiring will most likely be different than the BMS485 port. I have seen sources mention that certain pins on the CAN ports carries the RS485 D+/D- signals, so this could also be an option. Maybe someone else have connected theirs already?

If you manage to get the wiring for the 8.8kW model, please let me know or even create a PR on the readme here!

  • Author

Please post a picture of your board.  The board should have a RS485 and CAN port, what most of us did was to use the RS485 port for the inverter monitoring and the CAN port for communication with the BMS

2 hours ago, IvanD said:

Hi  I have an 8.8 Sunsynk inverter and i do not see a BMS 485 port, only a RS485. Will I then not be able to set this up

There are 3 ports on my SunSynk 8k

  1. RS485 port (RJ45) - I use this for Solar-Assistant monitoring
  2. CANBus port (RJ45) - I used this to connect to Battery Management System (BMS) on Hubble Battery
  3. RS232 (DB9) - I use this to connect to SolarMan monitoring dongle

image.thumb.png.b1cb2cc787e8ac4af5d7a7ef1449d4ea.png

Edited by system32
Clarity

As a matter of interest, my understanding is that you can also use the CANBUS port for an RS485 connection if you are using the RS485 for battery communications. I seem to remember reading somewhere that it has an RS485 connection, my best guess would be on Pins 6,7 & 8 but have never tried it out myself as those are the pins they use on the RS485 port.

image.png.24517d889db94c22b41f5f965d58ab88.png

 

Hi All
I have been following this thread for a while now with keen interest.  I am a total novice in the DIY home automation and logging arena and have a lot to learn.

Using the setup described I did pick up that many of you are using conditional logic based on the inverter data collected to switch on and off connected devices like sonoff switches, relays, lights and send various notifications.

Would the same setup be able to use conditional logic to change the inverter settings? specifically time of use and other settings I have in mind.

For example :

  1. Update time of use schedule to start discharging battery 8 hours before sunrise each day 
  2. Use inverter time of use schedule but if battery at 17:00 is not higher than 70% SOC and load shedding is active, grid charge battery to 100% SOC, and then return schedule to normal.
  3. If weather app forecasts a cloudy day, change priority of solar power to charge battery and not load

You get the idea.

Thanks your feedback would be appreciated

Regards
 

image.png.a8031eacda0b4dd6db6f58a4698b0758.png

Hi  my setup is the same as above only difference is my rs485 is not in use. I have change wiring to pinout for RJ45 on RS485 but still no luck

On 2021/11/26 at 7:10 PM, mberry said:

YES, it is very odd. I am presuming it is a bug with my inverter firmware. I have emailed DeyeInverter concerning the issue. I will update once I have their feedback. 

BTW, I want to thank you for SunSynk-NodeRed-master code you posted. I started off with and it allowed me to understand bordered and have it as the base to the current code I am now running. great job you have done. 

 

This issue has been resolved with firmware upgrade by Deye Inverters.

Edited by mberry

Hi Guys, Thanks for the amazing work so far! 

I was wondering how I could get my essential/ups load reading out, and can't quite figure it out.

If I use  the below picture (from one of the above posts) I often get negative values, and it doesn't quite seem to match the load.

image.png.0abd377a249eccc0dcf7fcf1de732f4d.png

I am really new to all the systems used here, so if anyone could point me in the right direction i would be very grateful!

Just now, Robbo said:

Hey guys, just a word of warning, do NOT upgrade your node-red until this problem is sorted out. The nodes used for @Bloubul7 flows to work go missing after the upgrade. So dont end up like me :( getting this message:

image.png.258ab8d8a0791579cc1a24d196f267a3.png

It is a logged issue on github:

https://github.com/BiancoRoyal/node-red-contrib-modbus/issues/291#issuecomment-1039663771

This should fix it..add these lines to the config of node-red

npm_packages:
  - source-map-support
  - line-by-line

 

8 minutes ago, Iiceman said:

This should fix it..add these lines to the config of node-red

Thanks @Iiceman, where does it go exactly? On the Config within addons on homeassistant I get an error. Sorry, I'm still learning all this as I go.

image.thumb.png.6f5c05d6636e0d57ecbcf4cebf60ae78.png

3 minutes ago, McAllstar said:

Can't speak for the one you linked to, but personally, after fiddling and faffing with adapters, connectors, and raspberry pi HATs, evetnually got one of these, and have had no issues for almost a year later:

https://solar-assistant.io/shop/products/sunsynk_rs485

13 minutes ago, McAllstar said:

Make sure any converter includes the GND with the Data lines. There was one reported from micro robotics - here

I'm using the one without the GND, but depending on your wiring you might get mixed results without GND

41 minutes ago, Sc00bs said:

Refresh time on the adapter is every 30 seconds so seems to be about as responsive as connecting via the RS485 adapter.

On RS485 the Pi4 comfortably reads every 1s

8 minutes ago, kellerza said:

On RS485 the Pi4 comfortably reads every 1s

So  @kellerza , as far as I am aware it may be reading one setting every second but it is cycling through 30 readings so each cycle takes about 30 seconds to complete. 

Works out about the same as the direct connection to the dongle. 

Have just installed the plug-in so will do a comparison between the 2 when I get a chance but at the moment it looks like there will not be much difference in responsiveness.

 

  • Author
15 minutes ago, Sc00bs said:

So  @kellerza , as far as I am aware it may be reading one setting every second but it is cycling through 30 readings so each cycle takes about 30 seconds to complete. 

Works out about the same as the direct connection to the dongle. 

Have just installed the plug-in so will do a comparison between the 2 when I get a chance but at the moment it looks like there will not be much difference in responsiveness.

 

My RS485 polls the modbus every 0.2 seconds.  Values are updated every 2 seconds

12 minutes ago, Sc00bs said:

So  @kellerza , as far as I am aware it may be reading one setting every second but it is cycling through 30 readings so each cycle takes about 30 seconds to complete. 

Works out about the same as the direct connection to the dongle. 

Have just installed the plug-in so will do a comparison between the 2 when I get a chance but at the moment it looks like there will not be much difference in responsiveness.

 

Correct.

As an alternative, you can cycle through high resolution parameters quickly with node-red and then only update other parameters when needed on a slower cycle.

You can also do block reads of the parameter data to limit cycle times. With a bit of optimizing I'm currently running at 5s update intervals for priority parameters and 30s for others.

Not sure if the real world benefit of having it running 5 second cycles vs 30 second cycles outweighs your database growing at 6 times the rate.   

If you want to go with high resolution sampling then you are probably going to want implement some down sampling and data retention policies otherwise you are going to end up with a very large database relatively quickly.

Not sure what the minimum update frequency is on the plug in, it defaults to 30s but may be able to go faster, I will play around with it today and report back 🙂 

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.