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 135.5k
  • 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/15 at 10:57 AM, Gary Waterworth said:

Look In the sensor above

Git updated and has a sample apex card

 

image.png.c22c0c0c3af597a324fb342b1fa95224.png

... how what cards are these, any chance you can share the code ?

 

G

... busy working my way through the thread... This is for a mate of mine that runs a Sunsync.

 

I have a Victron, but loving what i'm seeing here... as such a bit of a selfish... request, would be great if the variables and tagging was a bit more generic, allowing for the usage against a Victron or a Synsync.

 

G

On 2023/03/20 at 8:00 PM, randomfool said:

Got it, thanks!

 

Attached is a JSON for Grafana if anyone wants to use it.

Dependencies are InfluxDB (currently running 4.5.0)
Follow the standard install guide and I recommend limiting the view to sensors

Maybe with some development it could be nicely integrated into a HA dashboard. 

Sunsynk PV & Battery-1679335020803.json 27.5 kB · 9 downloads

Random...

 

how do you push the value's to influx, ... my logic would be to do it in NodeRed, as the values are pulled there, push it to Influx at the same time, allowing for the Grafana visualisation.

 

G

@Gary Waterworth, Hi and thank you so much for all your great work on this.

I'm struggling to see the data from my two paralleled 8kW ECCO Sunsynk inverters (wired in parallel, both inverters are configured as one plant).  In HA I am seeing both inverters as being reported (can see two correct serial numbers), I've added the correct ModbusID's in configuration.yaml, but when I look at the sensors in HA I can't see any data for the second inverter.

As  temporary workaround I've just doubled the relevant numbers in the sensor definitions in configuration.yaml as the arrays on both inverters are virtually identical, but I'd ideally like to get it done "right".  A few of the other parameters don't come through, like for example I can't see Inverter Current and Voltages, likewise can't see Current and voltage for the MPPT's.

Inverter status is reporting as "2", which borks the binary input to the flow card etc.

My installation is region 2 if that makes a difference?

Anything you can suggest or any debugging data I could supply?

Thanks so much!

Tom 

On 2023/08/06 at 6:27 PM, georgelza said:

Random...

 

how do you push the value's to influx, ... my logic would be to do it in NodeRed, as the values are pulled there, push it to Influx at the same time, allowing for the Grafana visualisation.

 

G

it's been a while since I did this and no longer use it but from memory I followed this guide:-

InfluxDB - Home Assistant (home-assistant.io)

there is a section for how the configuration.yaml should be setup; the rest can be done in the InfluxDB Addon

11 hours ago, Gary Waterworth said:

I am waiting for Sunsynk to finish the region migrations before I make any chnages. I am on region 1 atm so I cant check region 2 yet 

Got you, makes sense.  Let me know if you need any data or logs to help when the time comes.  I’m not much of a programmer but I can understand code and troubleshoot.

Cheers,

tom

 

  • 2 weeks later...
On 2023/05/21 at 10:54 AM, Gary Waterworth said:

It is possible. But you would need to create node red flows.

But if the app doesn't give you access to setting then it probably won't work. This is to do with permissions. What the node red flows do is the same as what the app does

 

Hi Gary. Have this been tried by anyone in Node Red.

p.s. thanks for all the effort.

  • 2 weeks later...

Has anyone managed to get their template working for the 2nd inverter?

I'm on region 2 but i don't know enough to add 2 sensors values together to make a single variable.

I have PV1 on inverter1 this all i can see

My PV2 is on inverter 2

I need PV1+PV2=PV

Load1 +load2 =Load

I can see the sensors but only says success not a numerical output.

On the cards it says undefined. For pv2 and isn't additive for grid, load or input. 

Anyone have a working template or flow they could upload and share please?

Ideally I'd like to see both inverters on the flow card. 

  • Author
On 2023/08/25 at 8:15 AM, davidp13 said:

Hi Gary. Have this been tried by anyone in Node Red.

p.s. thanks for all the effort.

There is an example in teh current automation flow on git 

Just make sure to disable it after you import

Edited by Gary Waterworth

Wow, what a rabbit hole... Amazing content. I have joined the Home Assistant community yesterday and exploring various features and functionality. I managed to get my Sunsynk Inverter linked via NodeRed to HA and am able to see the various entities and values. However, I can't seem to figure out how I would write settings back to the Sunsynk inverter. Especially regarding SoC and also Grid charging during the various time brackets. Any advice/guidance?

And then secondly, each minute various logbook entries are made for "entities" I actually don't need (for example AC Temps etc). How can I disable these that they don't refresh every minute?

Thanks guys.

I have been playing with some of the flows to get all the data from both inverters in parallel on the SS 12kW 3 phase.

Still trying to figure out if there is information for the flow on inverter 2.

image.thumb.png.bf991d2527017853e3f08ebdbec813fd.png 

 

Edited by WazzaCPT
Misread

@Gary Waterworth, something else I have noticed on my current setup is that the master inverter is actually reflecting as inverter 2. I think this is possibly because your solution, like the Sunsynk API sorts the inverters by their serial number and not the parallel master-slave sequence.

It would be interesting to find out if there is a way to programmatically generate the inverter flows for each inverter present in the plant.

Not sure if there is a field somewhere the data for which unit is master and which is slave.

I am happy to share the login details at some point and you can have a look at the system from your side.

I have emailed Sunsynk support to ask about the unique micro inverter setup we have and some other issue.

Thank you for all the work already done.

Hi, I am trying to work through this and although a little off topic I note other scripts and additions for home assistant some reading Api ect.

I have this version of data logger the e-linter one.

I also have a time sync issue with the inverter and hope it will be resolved by Sunsynk but the progress is slow even though anew product and I am well was going to provision the products.

It is clear many of you have far better grasp of programing the abilities for Home assistant and node Red than me and which to ask the following before I waste my time going in the wrong direction.

The question.

Is it possible through home assistant and node red to create an independent script to reference my local time clock on my network and write the correct time to the e linter and inverter on a schedule.

This would resolve my issues with the time advancing on the inverter as if it was a time machine :)

Ideas appreciated please as at present I cannot use scheduling as I am basically getting an extra 4 seconds for every 10 and the unit refuses to use any time NTP server or maintain manually its time.

As a note if I reset the elinter on the network it will get the correct network NTP time and then goes of to explore the future.

Please see my n other posts if interested it remains unresolved and I am now looking at how I can fix this.

Thanks in advance to anyone who replies.

 

1st prize would be to figure out how to write inverter settings directly to the Sunsynk Dongle/Inverter and to not to have to go via the cloud at all. 

With the roll out of the latest integration from KellerZA which allows you to write settings from Home Assistant using the Solarman dongle, the Solarman dongle really seems to be the one to go for. 

I am not sure that there is actually any advantage to having the Sunsynk dongle over the Solarman one as Solarman have now also allows for more frequent data updates to the cloud. 

Edited by Sc00bs

 

1st prize would be to figure out how to write inverter settings directly to the Sunsynk Dongle/Inverter and to not to have to go via the cloud at all. 

With the roll out of the latest integration from KellerZA which allows you to write settings from Home Assistant using the Solarman dongle, the Solarman dongle really seems to be the one to go for. 

I am not sure that there is actually any advantage to having the Sunsynk dongle over the Solarman one as Solarman have now also allows for more frequent data updates to the cloud. 

@Sc00bs Yeah just problem is I have dual inverters and the installer chose the more expensive sunsynk dongle. Will be costly to go back and replace, also don't want to go the route of hacking up my own DIY dongle in a neat installation with a strapped in pi or diy esp. But I'm watching patiently and eagerly to see what happens with more people adopting the sunsynk dongles and getting them as part of their kit by default. Also refreshing this forum daily to see if Gary has been migrated yet lol. 

I've managed to get the basics working for one inverter and can see 'success' for the 2nd just no values but should be easy like Gary says once things get going on Sunsynk side... their last update on the migration was March!!

 

@Sc00bs Yeah just problem is I have dual inverters and the installer chose the more expensive sunsynk dongle. Will be costly to go back and replace, also don't want to go the route of hacking up my own DIY dongle in a neat installation with a strapped in pi or diy esp. But I'm watching patiently and eagerly to see what happens with more people adopting the sunsynk dongles and getting them as part of their kit by default. Also refreshing this forum daily to see if Gary has been migrated yet lol. 

I've managed to get the basics working for one inverter and can see 'success' for the 2nd just no values but should be easy like Gary says once things get going on Sunsynk side... their last update on the migration was March!!

Hello Steve,

You can do some modifications to the Node-Red flows and the template sensors yaml file to get all the data you need from both inverters and you can do sumation where needed if you want the totals across both inverters. To be honest though, only the templates for your sensors is what needs to be modified.

It is quite simple if you read through the file and see the flow of how inverter 1 and 2 are identified. Just be careful as @Gary Waterworth has used invertor or inverter in some places. I have fixed this in my use of his Node-Red flows and template sensors.

I am contemplating creating a fork on GitHub with my teaks to the flows and templates once I have cleaned it up a little more.

  • Author
 

1st prize would be to figure out how to write inverter settings directly to the Sunsynk Dongle/Inverter and to not to have to go via the cloud at all. 

With the roll out of the latest integration from KellerZA which allows you to write settings from Home Assistant using the Solarman dongle, the Solarman dongle really seems to be the one to go for. 

I am not sure that there is actually any advantage to having the Sunsynk dongle over the Solarman one as Solarman have now also allows for more frequent data updates to the cloud. 

Good luck with that. I spent a lot of time decoding tcp traffic to and from the dongle. 0 Documentation available 

I still have a solarman lying around, but I can do what I need to do on mine currently with HA.

I dont need millisecond updating. For what i use the 1 to 3 minutes is fine

 

 

  • Author
 

Hello Steve,

You can do some modifications to the Node-Red flows and the template sensors yaml file to get all the data you need from both inverters and you can do sumation where needed if you want the totals across both inverters. To be honest though, only the templates for your sensors is what needs to be modified.

It is quite simple if you read through the file and see the flow of how inverter 1 and 2 are identified. Just be careful as @Gary Waterworth has used invertor or inverter in some places. I have fixed this in my use of his Node-Red flows and template sensors.

I am contemplating creating a fork on GitHub with my teaks to the flows and templates once I have cleaned it up a little more.

I will fix some of the spelling errors once Sunsynk sort out their crap and finish migrations. 

I dont want to lose history I have due to unbinding and rebinding. 

Actually been annoying me a lot as I dont have time spare to keep updating 2 sets of flows and I have had angry users allready when the flows were out of sync. 

ATM they have not changed too much in their API with the move from when I was looking at it. From the https decode it was just the auth methods.

Been working on automation of mine to help a lot more with load shedding and maximising ROI. 

Been spending my time on other Automation round the house.

Recently moved my camera system onto a Intel i5 Nuc. Bought a commercial package to run teh camera's 

Home assistant is now running on a beefy fanless Nuc type device.

The Nuc I have is effectively a Intel i5 with 500gb nvme and 16GB Ram. So quite a beefy machine. Uses about 30W idle upto about 65W

Home assistant is running on a Assus box that is similar and a very big overkill. Gave up on raspberry pies a long time ago :)

image.png.43bd24e5f0033ea98b3ab9a8d8f35b4d.png

 

 

Edited by Gary Waterworth

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.