Jump to content

SunSynk Logger Integration into Home Assistant


Gary Waterworth

Recommended Posts

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 🙄

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Posted (edited)
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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Posted (edited)

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Posted (edited)
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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • 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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...