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

Hi all,

This might be a stupid question, but what's the best way to apply new changes to flow in node-red. At the moment i'm basically resorting to creating a completely new flow with the latest version and deleting the old one, but feel like there should be a better way!

(I'm using node-red 17.0.2 on HA OS on a raspberry pi 4.)

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

  • Author
5 minutes ago, cp2023 said:

Hi all,

This might be a stupid question, but what's the best way to apply new changes to flow in node-red. At the moment i'm basically resorting to creating a completely new flow with the latest version and deleting the old one, but feel like there should be a better way!

(I'm using node-red 17.0.2 on HA OS on a raspberry pi 4.)

no other way I know of. I removed all config out of the flows to make it easier 

  • Author

Ok maybe I need to add a Caveat to my previous comment

It certainly isnt for new people or people who do not know unix

Basically what I have been changing to on my test environment is using a git clone within the docker node red instance

I did look at enabling nodered projects, but that is also finicky

Basically :

  • Enable SSH remote login into your HA
  • Console into Node Red Docker Instance

 docker exec -it $(docker ps -f name=nodered -q) bash

  • Create SSH key pair
  • Add public key into your profile on github
  • Clone the repository into /config/lib/flows/
  • Once the clone is setup, then it is easy to do git pulls commits etc

To use it you import -> local after removing the old tabs

 

So there are ways to make life "easier" but none that i would like to explain to new users/ users that are not extremely tech savvy

Also some of it MAY not survive a node red upgrade, so there is that to consider

 

Edited by Gary Waterworth

  • Author

One thing that needs to be checked is your gateway update interval

All new installs seem to be 300 ( 5 minutes )

You will get outdated data errors and I definately would not turn on entity updates with it like that.

I will make a change on the flows to only complain of outdated data after 6 minutes

Going to have to build in some more error checking in the update flow to disable on this

Means I have to go gather gateway information as well

You can see this in teh app under equipment -> gateway

image.thumb.png.ec85ce9f549550df60a5f312d7a6c9a4.png

Gary can you add the ability to set "sysWorkMode" please.

(0 is export, 2 is Zero-Export + Limit to Load Only).

I think with this I can get away with just performing some basic weather checks and other pieces then either simplify my JavaScript or potentially remove it entirely and just create a yaml automation.

image.thumb.png.6390c52d06e9bdd0ab64069b95b44d48.png

 

Edited by randomfool

  • Author

Some small but important updates

Gathering Dongle information as well into SS_Consolid under Gateways

Changed error checking to cater for 5 minute dongle updates. But updates will be disabled for these inverters. Talk to your installer to get Sunsynk to change it to 60 seconds

 

image.thumb.png.111fab2fafb7620fef36121479454f4d.png

  • Author
7 hours ago, randomfool said:

Gary can you add the ability to set "sysWorkMode" please.

(0 is export, 2 is Zero-Export + Limit to Load Only).

I think with this I can get away with just performing some basic weather checks and other pieces then either simplify my JavaScript or potentially remove it entirely and just create a yaml automation.

image.thumb.png.6390c52d06e9bdd0ab64069b95b44d48.png

 

Will have a look at what is required

  • Author
18 minutes ago, Ronnie1102 said:

Any idea what this error could be? Have not been around for a while so updated the flows and stuck here with no data showing under states,

 

 

error.png

Check your secrets file. You probably have teh plantid and serial nr swopped

2 hours ago, Gary Waterworth said:

Check your secrets file. You probably have teh plantid and serial nr swopped

@Gary Waterworth, can you maybe change the order of the description/comments of the plantId and the serial number to match what they are at the top, I think that's what got me. Just a thought.

image.png.4e7e3f49db7b56c2e831c9aa072c2db7.png 

  • Author
9 hours ago, HowserMD said:

@Gary Waterworth, can you maybe change the order of the description/comments of the plantId and the serial number to match what they are at the top, I think that's what got me. Just a thought.

image.png.4e7e3f49db7b56c2e831c9aa072c2db7.png 

Was done a few days ago. Going to look into automating it for single setups or where there is a master slave setup

 

image.thumb.png.79da81a9f0dd4c574919c66fd47d3484.png

Hey @Gary Waterworth,

I was wondering why you don't create any sensors to track what you're exporting to the grid? Is this not something you look at?

Using v1 i added some which get the data from "sensor.sunsynk_grid.etotalTo" and "sensor.sunsynk_grid.etodayTo", but now switched to v2, so have updated to this, which i think are the correct values:
 

- sensor:
    - name: "Sunsynk Grid Export Total"
      state_class: total_increasing
      device_class: energy
      unit_of_measurement: kWh
      state: >
          {{state_attr('sensor.sunsynk_usable_grid', 'totalusedout')|float}}
- sensor:
    - name: "Sunsynk Grid Export Today"
      state_class: total_increasing
      device_class: energy
      unit_of_measurement: kWh
      state: >
          {{state_attr('sensor.sunsynk_usable_grid', 'dailyusedout')|float}}

 

  • Author
2 hours ago, cp2023 said:

Hey @Gary Waterworth,

I was wondering why you don't create any sensors to track what you're exporting to the grid? Is this not something you look at?

Using v1 i added some which get the data from "sensor.sunsynk_grid.etotalTo" and "sensor.sunsynk_grid.etodayTo", but now switched to v2, so have updated to this, which i think are the correct values:
 

- sensor:
    - name: "Sunsynk Grid Export Total"
      state_class: total_increasing
      device_class: energy
      unit_of_measurement: kWh
      state: >
          {{state_attr('sensor.sunsynk_usable_grid', 'totalusedout')|float}}
- sensor:
    - name: "Sunsynk Grid Export Today"
      state_class: total_increasing
      device_class: energy
      unit_of_measurement: kWh
      state: >
          {{state_attr('sensor.sunsynk_usable_grid', 'dailyusedout')|float}}

 

Have added it into teh configuration.yaml file. Will get published when I do a main publish after some changes I am busy on 

I dont export, so was overlooked

Thanks

Edited by Gary Waterworth

On 2024/01/16 at 5:03 AM, Gary Waterworth said:

Some small but important updates

Gathering Dongle information as well into SS_Consolid under Gateways

Changed error checking to cater for 5 minute dongle updates. But updates will be disabled for these inverters. Talk to your installer to get Sunsynk to change it to 60 seconds

 

image.thumb.png.111fab2fafb7620fef36121479454f4d.png

@Gary Waterworth I've previously requested my installer to set my intervals to 60s but it seems they don't have that admin right on the gateways either.  Actually had them show me and they have the gateways listed but the option to set the refresh interval ain't there.  I've requested them to ask Sunsynk to give them permission to change this or try and get mine changed but if I can't get this changed how will this effect me.  Is this just an error checking being disabled or will this effect my ability to push commands to the inverter, besides having a 5min long delay.

  • Author
4 hours ago, -cK- said:

@Gary Waterworth I've previously requested my installer to set my intervals to 60s but it seems they don't have that admin right on the gateways either.  Actually had them show me and they have the gateways listed but the option to set the refresh interval ain't there.  I've requested them to ask Sunsynk to give them permission to change this or try and get mine changed but if I can't get this changed how will this effect me.  Is this just an error checking being disabled or will this effect my ability to push commands to the inverter, besides having a 5min long delay.

ATM it will affect commands being pushed to the inverter as currently it can result in "flipflopping" 

I will work on this , for in the case of a long update delay, to put in a six minute post update delay 

Thanks I've held back on updating my flows with this update when I read that and trying to get my interval set to 60s but not holding my breath at this stage it will happen anytime soon.  It is a pain in the a$$ to work around this 5min delay sometimes as it requires adding logic to your automation to take this into consideration to avoid "flipflopping" like you said. 

  • Author
39 minutes ago, -cK- said:

Thanks I've held back on updating my flows with this update when I read that and trying to get my interval set to 60s but not holding my breath at this stage it will happen anytime soon.  It is a pain in the a$$ to work around this 5min delay sometimes as it requires adding logic to your automation to take this into consideration to avoid "flipflopping" like you said. 

Yeah , very 😕 

Got some basic code done for it. Just trying to prove it 

6 hours ago, -cK- said:

@Gary Waterworth I've previously requested my installer to set my intervals to 60s but it seems they don't have that admin right on the gateways either.  Actually had them show me and they have the gateways listed but the option to set the refresh interval ain't there.  I've requested them to ask Sunsynk to give them permission to change this or try and get mine changed but if I can't get this changed how will this effect me.  Is this just an error checking being disabled or will this effect my ability to push commands to the inverter, besides having a 5min long delay.

You can request sunsynk to upgrade your user level to advanced, did not need to ask installer to do anything.

You have to request a user level elevation to Advanced User and then you should be able to drop it down to 60 seconds (down from the default of 300 seconds).

Visit here and scroll down to User Level Access Change, they will reply once it has been done then you need to login to the sunsynk.net website on a pc as the app doesn't allow you to change it yet.

2 hours ago, Ronnie1102 said:

You can request sunsynk to upgrade your user level to advanced, did not need to ask installer to do anything.

You have to request a user level elevation to Advanced User and then you should be able to drop it down to 60 seconds (down from the default of 300 seconds).

Visit here and scroll down to User Level Access Change, they will reply once it has been done then you need to login to the sunsynk.net website on a pc as the app doesn't allow you to change it yet.

Thanks this won't affect the installers access to monitor and amend things right.

Edited by -cK-

No idea but saw some random readings before noon today when my phone went nuts with notifications for a minute or 2 no solar then no battery then solar was giving double reading 🤷‍♂️.  Suspect something on the app side might have caused it.  Not seeing it on the sunsynk side so might be HA related.

image.thumb.png.897bf42d57964b37969d89c8946ac50d.png

Your energy dashboard is kinda fine compared to what I just saw mine looked like for today 😅.

image.png.c9bf95c820a6e505758b10dbab4199ee.png

43 minutes ago, Gary Waterworth said:

Definitely from sunsynk. I have to massage my statistical data now and again. I suspect sunsynk is still importing historical data into region 2

Yep I had to replace some with 0's the other day again as well.

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.