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 Logger Integration into Home Assistant

Featured Replies

  • Replies 948
  • Views 135k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • randomfool
    randomfool

    I am making good progress on converting slip06x excellent dashboard to work with Gary's brilliant work on gathering the data from the latest Sunsynk inverters remotely. Will publish the dashboard

  • @Gary Waterworth   Did a quick YouTube video on how to install your software and to get the data into HASS, no cards or anything so very basic.  Please let me know what you guys think of my first

  • randomfool
    randomfool

    Ok here goes; caveats to begin with - I am no HA expert, in fact I only discovered HA a few weeks ago through Gary's post and his subsequent links to slip06x dashboard, so my ability to provide "suppo

Posted Images

On 2023/03/11 at 7:30 PM, Craig1970 said:

Hi @Gary Waterworth, so excited to find your solution. I am relatively new to HA, but loving it and especially the collaboration. I too am ultimately wanting to edit Sunsynk settings if SOC is low and load-shedding is coming soon. Again, thank-you for your work to date.

I have followed the steps best I can, and the entities are appearing, but sensors show "unavailable".

When looking at Developer Tools, States most of the sensor.sunsynk....... are unavailable, except the plant list, which returns correct info. The sensor.sunsynk_flow is returning data in the attributes. Is this to be expected, and one must create new sensors using templates? Possibly the issue described below is stopping data-flow. 

On the Node-Red Debug notes the script seems to generally be running, but getting stuck on Inverter Serial Number.

image.thumb.png.42b8ff579fbe18db1a548c35b9c08045.png

Hi @Gary Waterworth just to let you know the updated git files worked fine, and I am now pulling the data into HA 100%. Lots of work to do to get all the sensors/templates and dashboards going, but will get through that. Haven't braved the automation yet, but very keen to get into that. Thanks again for all your effort and sharing thereof. Big Kudos. 

Hi @Gary Waterworth I've had a look and I don't see the DC and AC Temps anywhere so I'm guessing those aren't included in the sensors that or I'm blind, which is also possible.

 

image.png.15250290b4bdcf7950a60e2615cbf745.png

If you are planning on any updates in the future could I make a suggestion for those to be included if at all possible.  Would be nice if one could to be able to keep an eye on it via HA as I want to try and integrate a fan or cooling solution on my inverter based on the Temps as my garage do get a bit toasty in the summer.  According to the installer I need not worry but hitting 80 C on the DC temp just feels a tad bit high.

If not there is the old school solution of just slapping a fan with temp probe on there 😅

Edited by -cK-

  • Author

This was actually on the back of my mind a few days ago.

I have yet to find a place where it gives it as a number 😕 as a point in time.

I have found the web query where it asks for the data for that graph, so worst case I can allways get the last figure from there. This is just not the type of query you want to run every few seconds.

It is a really fugly way to get the data though

image.png.1f0dc928ab51325c8743f08f31d89e60.png

Definately Doable tho :

image.png.7409b27bde3f6b6aa13c1de0aa49c43f.png

 

Will work on this tomorrow

Edited by Gary Waterworth

  • Author

AC/DC Temp Data.

Added a sensor : sensor.sunsynk_temp_data

in it there are 2 attributes added : actemp and dctemp

Will update every 3 minutes.

Kept all the graph data in there as well. Going to see what I can do with apex graphs

Much obliged @Gary Waterworth

The apex card is working.

image.png.93daf2415a5503cf9a18993532169b21.png

Did a quick test with a simple Warning Message Automation and it does the job just as required.  Now I should be able to do fan mod on the inverter with a smart switch and a fan hooked up to it to kick in with something like this 👍

image.thumb.png.9d0e571e04ba29138bd13e3a6f335d36.png

Started messing around with Grafana, and reading sensors into InfluxDB; first draft.
Nothing special yet, but will blend in nice once complete.

 

image.thumb.png.ba4a915335fac9656cab710f3fc16bf6.png

Edited by randomfool

Nice

Still need to delft into Grafana and InfuxDB myself (got it installed but that is where that ended for now)

Just made a few custom cards at this point to give me what I want at a glance and got my geyser of so many automation it ain't funny just to try and not use any Eskom power 😅.  There is probably and more elegant way of doing all of those automations I have but heck if it works it works is my motto...

image.png.ccb672390df72eed0b6f5b9696127cde.png

image.thumb.png.53971aa818ad9ce77372dde35706c738.png

 

Edited by -cK-

3 hours ago, Gary Waterworth said:

Sure, please post the json when you are ready. Will be useful to someone, even as a reference

This is the route I went using apexcharts and mushroom

 

image.thumb.png.0657aeb4d45f3d8a3207f3a030992ba0.png

 

Fantastic. Can you export this? It is basically everything I am looking to achieve, only auto mode for me will be use timer or grid charge now.

I only began using HA after finding this thread. The last 2 weeks learning it have been slow but fun.

  • Author
1 hour ago, randomfool said:

Fantastic. Can you export this? It is basically everything I am looking to achieve, only auto mode for me will be use timer or grid charge now.

I only began using HA after finding this thread. The last 2 weeks learning it have been slow but fun.

Sure , I will start updating the git with various cards. 

The automation side is far harder as there are sensors provided by other addons and even then it is very customised to my needs . Still on my bucket list to document properly 

1 hour ago, Gary Waterworth said:

Sure , I will start updating the git with various cards. 

The automation side is far harder as there are sensors provided by other addons and even then it is very customised to my needs . Still on my bucket list to document properly 

Awesome love the flow layout one and the timer slot card one would love to add those in to my current set. 👍

A bit off the topic but do you perhaps know if one can match the top readout of the value to match the colour of the thresholds you have set when using

experimental:
  color_threshold: true

E.G. in my charging/discharging card it would be nice if I coud have that top value match the current graph colour so if charging the reading is lime or green and when discharging it is = to whatever the current mix of yellow orange red I have set is.

image.png.9fe1316b062f5c6e93f201aa2da2c646.png

Hope that makes scense currently it is set to a fix colour as per from the source of another graph I used to make this.  Should probably go check in that repository where I saw this graph style but thought I'd ask if not no prob.

  • Author
3 hours ago, slipx said:

@-cK- you can find the latest power flow card here https://github.com/slipx06/Sunsynk-Home-Assistant-Power-Flow-Card

I've added some animations and other improvements. 

If you want some Dashboard ideas https://github.com/slipx06/Sunsynk-Home-Assistant-Dash

 

Thanks. I was looking for your origional post to link :)

I took yours and removed the excess stuff ( for what I use ) and added some of my own 

On 2023/03/18 at 5:55 AM, Gary Waterworth said:

Sure, please post the json when you are ready. Will be useful to someone, even as a reference

This is the route I went using apexcharts and mushroom

 

image.thumb.png.0657aeb4d45f3d8a3207f3a030992ba0.png

 

could you share the modified power flow card yaml for the power flow card based on your sensor names? thanks

  • Author
8 hours ago, randomfool said:

could you share the modified power flow card yaml for the power flow card based on your sensor names? thanks

Sure , but credits go to slipx for all his good work.

https://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk/blob/main/Gather Files/Sample Card for Power flow based on work by slipx on powerforum.co.za.txt

 

Edited by Gary Waterworth

On 2023/03/18 at 6:34 PM, Gary Waterworth said:

Thanks. I was looking for your origional post to link :)

I took yours and removed the excess stuff ( for what I use ) and added some of my own 

I've been working on a "lite" version if you don''t need Aux or Non-Essential

image.png.898da79f288bf4f09204c3e8650e815c.png

Uploaded to GitHub if you want to give it a try

Edited by slipx

  • Author
16 minutes ago, slipx said:

I've been working on a "light" version if you don''t need Aux or Non-Essential

image.png.898da79f288bf4f09204c3e8650e815c.png

Thanks. Will definately make use of that 

Two thing I added in on mine

1. Temperature of Battery Stack

2. Predicted time battery will last till 20% soc on current usage with no other power available. 

I used a function node, so the code is based on javascript

 

if ( soc < socmin )
{ ttime = "Battery Below " + socmin +"%" } else
{
 var secondstemp = 0;
 var soctemp = 0;
 secondstemp = ((((soc - socmin) / 100 * totalw) / (load + 60)) * 60 * 60);
 
// (load + 60) -- The +60 is for power used internally by the sunsynk invertor 
// socmin is the 20% minimum 
 
 var thours = parseInt((secondstemp / (60*60)));
 var tminutes = (secondstemp / 60) - (thours*60);
 var ttime ="";
  if ((tminutes <= 1) && ( thours === 0))
 {
   ttime = " Less than 1 Minute "
 } else if ( thours === 0 )
 {
   ttime = tminutes.toFixed(0) + " Minutes Left" ;
 } else
 {
   ttime = thours + " Hour(s) " + tminutes.toFixed(0) + " Minutes Left";
 }
}
 

 

Edited by Gary Waterworth

  • Author
33 minutes ago, Gary Waterworth said:

We may have some issues in the future . WIll create a new plant login and do some testings/https decoding to see if they have changed any auth things

image.png.5b851beda0ef5626008b1739cf6f9490.png

Aaarggg ok I can see some changes that are annoying

Requesting Bearer has additional fields 😕 . At least they havent done what I was worried about

{"username":xxx,xxxx,"grant_type":"password","client_id":"csp-web","source":"sunsynk","areaCode":"sunsynk"}

Looked at a few other queries and it is seems there are other cosmetic changes in the query syntax.

Wonder if sunsynk is going to officially offer a 3rd party api or not like elinter did.

 

When the time comes i am going to have to make 2 sections in the git now

1 for sunsynk , 1 for e-linter

Looks to me like Sunsynk has bought the api from e-linter.

 

Edited by Gary Waterworth

7 hours ago, Gary Waterworth said:

Aaarggg ok I can see some changes that are annoying

Requesting Bearer has additional fields 😕 . At least they havent done what I was worried about

{"username":xxx,xxxx,"grant_type":"password","client_id":"csp-web","source":"sunsynk","areaCode":"sunsynk"}

Looked at a few other queries and it is seems there are other cosmetic changes in the query syntax.

Wonder if sunsynk is going to officially offer a 3rd party api or not like elinter did.

 

When the time comes i am going to have to make 2 sections in the git now

1 for sunsynk , 1 for e-linter

Looks to me like Sunsynk has bought the api from e-linter.

 

Thanks for the digging into this. Hopefully not too difficult for you to workaround.

I imported some of your cards; looking really nice now.  I do not have the entity sensor.sunsynk_battery_temp so commented out lines 30 and 31 for the card to work.
Home-Assistant---E-Linter-Logger---Sunsynk/Sample Card Code AC_DC Temperatures ( Apex Charts ).txt at main · gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk · GitHub

Also, regarding the function node for the remaining battery SOC, is this compiled into the exiting gather json or a seperate flow you created?
 

 

Edited by randomfool

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.