January 14, 20242 yr 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.)
January 14, 20242 yr 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
January 14, 20242 yr 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 January 14, 20242 yr by Gary Waterworth
January 15, 20242 yr 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
January 15, 20242 yr 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. Edited January 15, 20242 yr by randomfool
January 16, 20242 yr 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
January 16, 20242 yr 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. Will have a look at what is required
January 16, 20242 yr 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,
January 16, 20242 yr 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, Check your secrets file. You probably have teh plantid and serial nr swopped
January 16, 20242 yr 5 minutes ago, Gary Waterworth said: Check your secrets file. You probably have teh plantid and serial nr swopped Checking, spot on @Gary Waterworth! All sorted thank you. Edited January 16, 20242 yr by Ronnie1102
January 16, 20242 yr 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.
January 17, 20242 yr 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. Was done a few days ago. Going to look into automating it for single setups or where there is a master slave setup
January 17, 20242 yr 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}}
January 17, 20242 yr 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 January 17, 20242 yr by Gary Waterworth
January 18, 20242 yr 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 @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.
January 18, 20242 yr 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
January 18, 20242 yr 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.
January 18, 20242 yr 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
January 18, 20242 yr 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.
January 18, 20242 yr 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 January 18, 20242 yr by -cK-
January 18, 20242 yr 1 minute ago, -cK- said: Thanks this won't affect the installers access to monitor amend things right. Nope, just allows you to have more control of your system as well.
January 18, 20242 yr @Gary Waterworth, what is possibly causing the random large spikes in the energy dashboard? Slipx dash is fine, but the energy dashboard has too big spikes.
January 18, 20242 yr 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. Your energy dashboard is kinda fine compared to what I just saw mine looked like for today 😅.
January 19, 20242 yr Author Definitely from sunsynk. I have to massage my statistical data now and again. I suspect sunsynk is still importing historical data into region 2
January 19, 20242 yr 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.