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

Oddly enough I'm getting a timeout request error on my phone's sunsynk app as well though I can log in on the website and access stuff.

So yea sunsynk doing sunsynk stuff again 🙄

  • Replies 948
  • Views 135.1k
  • 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

55 minutes ago, -cK- said:

Oddly enough I'm getting a timeout request error on my phone's sunsynk app as well though I can log in on the website and access stuff.

So yea sunsynk doing sunsynk stuff again 🙄

To fix the issue, I checked the SSL/TLS option on all HTTP requests.

Add a new config if one doesn't exist, and uncheck 'Verify server certificate' and Update.

Redeploy the node and that should fix the issue.

https://stackoverflow.com/questions/42983635/error-unable-to-verify-the-first-certificate-in-node-red

image.thumb.png.6fd22516bb7e4f9b6ee95550b803758d.png

image.thumb.png.288ae4097a7f1088f9fbdc41357347c1.png

Edited by huzii7

Hello @Gary Waterworth,

I am trying to understand the following error.

13/03/2024, 15:59:42node: Export Data Export To Entity
function : (error)
"Logger In Warning Mode, continuing"

How can I diagnose this? I am not sure if it because I am missing a entity in the templates or something else I have done wrong. This is on both sites I have assisted with.

  • Author
2 hours ago, WazzaCPT said:

Hello @Gary Waterworth,

I am trying to understand the following error.

13/03/2024, 15:59:42node: Export Data Export To Entity
function : (error)
"Logger In Warning Mode, continuing"

How can I diagnose this? I am not sure if it because I am missing a entity in the templates or something else I have done wrong. This is on both sites I have assisted with.

Ignore it. An artifact of teh sunsynk move to the uk. It is ignoring that check atm

Logger state is 1 instead of 0. Leaving it alone for now untill they fix it or I will regard 1 as good 😕

Edited by Gary Waterworth

  • Author
2 hours ago, huzii7 said:

To fix the issue, I checked the SSL/TLS option on all HTTP requests.

Add a new config if one doesn't exist, and uncheck 'Verify server certificate' and Update.

Redeploy the node and that should fix the issue.

https://stackoverflow.com/questions/42983635/error-unable-to-verify-the-first-certificate-in-node-red

image.thumb.png.6fd22516bb7e4f9b6ee95550b803758d.png

image.thumb.png.288ae4097a7f1088f9fbdc41357347c1.png

No need . They fixed their f.... up

  • 2 weeks later...

Receiving solar energy data between 11pm and 1am and relatively large amounts. Also getting random grid sell amount during those times as well.

 

I have included the filtering but am not sure if I should be filtering on the daily totals.

Edited by WazzaCPT

2 minutes ago, Gary Waterworth said:

Daily totals will be a problem as they reset. Reason I don't use them in graphs or put filtering on them

Do you then use the total total data in you energy dash board?

15 hours ago, Gary Waterworth said:

yes 

Hello Gary,

What is strange is that this is only happening at one of the two sites I have setup. So not sure if there is some issue with that site or the added complexity of a solar source other than Sunsynk.

I will look at using the totals for the energy dashboard instead.

Many thanks as always.

  • Author

The problem is not whether there is a data value or not ( available/unavailable ) the problem is when a data value of 0 is returned by Sunsynk. That is why I use teh forever totals and not the today totals in the energy graphs. The today totals never seem to reset at the same time and if I use teh forever totals then it is easy as they can never be 0 and also teh energy graphs will "catch up" when there is an outage

 

There is probably a use case for it in some of teh other values, but will see when I have time. 

Edited by Gary Waterworth

  • Author
2 hours ago, WazzaCPT said:

Hello Gary,

What is strange is that this is only happening at one of the two sites I have setup. So not sure if there is some issue with that site or the added complexity of a solar source other than Sunsynk.

I will look at using the totals for the energy dashboard instead.

Many thanks as always.

The error is a SSL cert that cannot be checked . This is their api website. 

You could change the https to http ( so there are no certs ) , but couldnt be bothered to be honest unless they really mess up on that front . Not sure if their api support plain http

Ive been getting the message “Unable to verify the first certificate” recently. 
 

any ideas what could be causing it? I notice the Sunsynk SSL cert renewed 2 weeks ago but can’t see any reason why that wouldn’t be recognised?

 

for now I’ve changed Node Red to skip verifying the SSL cert (not ideal)

Many thanks to Gary, slipx06 and all the other contributors to this topic of integrating the Sunsynk inverter into Home Assistant.

By following the instructions and by changing various nodes where errors have occurred, according to threads in this forum, I now have the values from my inverter coming through to Node-red that are visible in the Context Data tab and that match the values on my Sunsynk app. However, none of these values appear in Home Assistant sensors as they are all unavailable. I still have some issues to resolve and being very new to Home Assistant and Node-red I'm not sure how to proceed.

1. On Node: Run Through Plant Inv List, I get this error reported in the debug window

"Gateway is bad. Not configured for <= 60s cycle rate. Updates Disabled"

How do I overcome this? Is there a setting in a node or nodes that I can change to reduce the updates to say every five minutes just to get the updates going?

2. On Node: Update Sensor, all of the API calls appear to be unauthorised. I get this list of errors reported in the debug window.

hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_errors, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_load, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_battery, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_output, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_gen, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_flow, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_grid, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_temp, statusCode 401

I'd be very grateful if someone could point me in the right direction with this please. If there are there any logs that would be useful to solve the problem please let me know.

  • Author
2 hours ago, dpn said:

Many thanks to Gary, slipx06 and all the other contributors to this topic of integrating the Sunsynk inverter into Home Assistant.

By following the instructions and by changing various nodes where errors have occurred, according to threads in this forum, I now have the values from my inverter coming through to Node-red that are visible in the Context Data tab and that match the values on my Sunsynk app. However, none of these values appear in Home Assistant sensors as they are all unavailable. I still have some issues to resolve and being very new to Home Assistant and Node-red I'm not sure how to proceed.

1. On Node: Run Through Plant Inv List, I get this error reported in the debug window

"Gateway is bad. Not configured for <= 60s cycle rate. Updates Disabled"

How do I overcome this? Is there a setting in a node or nodes that I can change to reduce the updates to say every five minutes just to get the updates going?

2. On Node: Update Sensor, all of the API calls appear to be unauthorised. I get this list of errors reported in the debug window.

hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_errors, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_load, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_battery, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_output, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_gen, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_flow, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_grid, statusCode 401
hass-post: API call http://localhost:8123/api/states/sensor.sunsynk_usable_temp, statusCode 401

I'd be very grateful if someone could point me in the right direction with this please. If there are there any logs that would be useful to solve the problem please let me know.

1. This is a problem where your gateway is set to 5 min updates. There is a problem with 5 min logger updates and that is why it is not allowed to do dynamic updates when the refresh is that long. Trying to force enable will generate race conditions and result in flip flopping. Rather ask your installer to help you request your logger to be changed to 60s updates

2. You need to put in a long life token into the hass-config node 

https://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk/wiki

The procedure to get long lived access tokens is documented in the HA documentation. 

 

Edited by Gary Waterworth

Hi Gary

Thanks for your quick response.

1. I asked my installer to change the logger to update every 60s and he's done it already!

2. I put a long life token into hass-config node two days ago.  I created a new one and replaced it a few minutes ago and now the data is coming through to Home Assistant!  I assume I must have changed something and lost the previous long life token.

Many thanks for your reply and with your help I now have a working Inverter dashboard.

Hi all - brand new to Home Assistant and want to get my Sunsynk connected, I've got an IT background though so am trying to work things through...

 

I believe I should be using the latest version of the connection 2.4, but the video relates to v1.1, I can see the files for this which means I could follow it, but doesn't feel right...

 

Anyone got a basic video walkthrough of how to install the latest version?

  • Author

FYI : On the cert issue. I have added a config option to "not check" the certs they provide. It is in the development stream for now. Will monitor and make sure I havent broken anything else for now. Also updated some request headers, but that wont "fix" certs

 

  • 2 weeks later...
On 2024/04/08 at 11:18 AM, Gary Waterworth said:

FYI : On the cert issue. I have added a config option to "not check" the certs they provide. It is in the development stream for now. Will monitor and make sure I havent broken anything else for now. Also updated some request headers, but that wont "fix" certs

 

How is this going Gary?

I have a 3 phase 12Kw sunsynk, just wondering what I need to use from Node-Red SunSynk Automation to be able to configure the Energy Dashboard (at the least Solar Panels and Home battery storage).

image.thumb.png.f22f6128979d7055e524ae18d5bb1ef4.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.