September 2, 2025Sep 2 Author Will mull over this. I dont actually have a sunsynk system anymore so will need to setup a vm again WIll need to see if some of teh key functions you use are available or not in node red
September 2, 2025Sep 2 2 minutes ago, Gary Waterworth said:Will mull over this.I dont actually have a sunsynk system anymore so will need to setup a vm againWIll need to see if some of teh key functions you use are available or not in node redI can give you remote access to a system if you would like.
September 2, 2025Sep 2 Author I have access to my sunsynk account. Will be enough to check logins etc.Just a matter of finding time to find a way to do the same in node red.Main problem is trying to fnd equiv functions in node-red
September 2, 2025Sep 2 Not sure for everyone, but mine just started working again. Thank you Gary for carrying on with this even though you don't have a system anymore.I guess this integration will need someone to take over support and development. I wish I could but I'm just not up to speed on how the whole thing fits together, nor on Node-Red.
September 2, 2025Sep 2 BjornCPT: I am new to the forum, so waiting for my login to be approved. I managed to build the relevnat nodes and got the flow up and running again. I can share the extra nodes and code here, but can update the original in summary:1. Updated Global Vars with new url2. Added a function to generate Nonce and Sign3. HTTP node to pull Public Key from Sunsynk4. Function to encrypt the password5. Then link to the existing "Create Request for Login" node with some code changes.
September 2, 2025Sep 2 Hi everyone,Just a quick update: I've managed to update the Node-RED flow to handle the new encrypted password requirement for the Sunsynk API (using RSA encryption with a dynamic public key, based on the PHP example shared earlier). It's working perfectly now, pulling stats without issues.@Gary Waterworth (GitHub: gdwaterworth ==> https://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk), thanks for the original repo! Since it's marked as no longer maintained, would you prefer I submit a pull request with these changes, or should I fork it and maintain a separate version? Happy to share the updated flow JSON either way.Details on changes below. Let me know if anyone wants the full export (sanitised for sensitive info).Cheers,BjornShort Summary of ChangesUpdated token endpoint to /oauth/token/new.Added nodes to generate nonce/sign, fetch dynamic public key, and encrypt password using Node.js crypto module (RSA_PKCS1_PADDING).Revised headers to prefer "deflate" encoding and match latest working User-Agent/Accept values to avoid compression errors.Modified login request to use the base64-encoded encrypted password instead of plain text.Ensured compatibility with existing flow structure; tested on Python-free Node-RED (uses built-in crypto). No other major alterations—stats pulling resumes as before.
September 2, 2025Sep 2 1 hour ago, CraftyChops said:Not sure for everyone, but mine just started working again.Thank you Gary for carrying on with this even though you don't have a system anymore.I guess this integration will need someone to take over support and development. I wish I could but I'm just not up to speed on how the whole thing fits together, nor on Node-Red.Affirmative, mine is also running through without any errors now.
September 2, 2025Sep 2 Can confirm, both the new and the old method are working again.They are probably going to remove the old method, thus the new method should be worked on in the meantime.
September 18, 2025Sep 18 Author On 2025/09/02 at 3:25 PM, Bjorn-CPT said:Hi everyone,Just a quick update: I've managed to update the Node-RED flow to handle the new encrypted password requirement for the Sunsynk API (using RSA encryption with a dynamic public key, based on the PHP example shared earlier). It's working perfectly now, pulling stats without issues.@Gary Waterworth (GitHub: gdwaterworth ==> https://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk), thanks for the original repo! Since it's marked as no longer maintained, would you prefer I submit a pull request with these changes, or should I fork it and maintain a separate version? Happy to share the updated flow JSON either way.Details on changes below. Let me know if anyone wants the full export (sanitised for sensitive info).Cheers,BjornShort Summary of ChangesUpdated token endpoint to /oauth/token/new.Added nodes to generate nonce/sign, fetch dynamic public key, and encrypt password using Node.js crypto module (RSA_PKCS1_PADDING).Revised headers to prefer "deflate" encoding and match latest working User-Agent/Accept values to avoid compression errors.Modified login request to use the base64-encoded encrypted password instead of plain text.Ensured compatibility with existing flow structure; tested on Python-free Node-RED (uses built-in crypto). No other major alterations—stats pulling resumes as before.I really dont mind if you fork it :) I just dont have time atm with my other activies to really work on it
October 18, 2025Oct 18 Argh! I'm getting errors again. Seemed to start around 01:00 or 02:00 last night. Just loads of these type of errors every time it checks the API2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error)"1. 380458"2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error){ 2310202384: object }2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error)"2. 380458 2310202384 0"2025/10/18, 13:56:26node: Calc Last Update Time & General Status Checkfunction : (error)"Stats Last Update - Error With Data "2025/10/18, 13:56:26node: Calc Last Update Time & General Status Checkfunction : (error)"TypeError: Cannot read properties of undefined (reading 'toString')"
October 18, 2025Oct 18 @Bjorn-CPT Thanks for taking this on. This is such a useful addition to HA for us Sunsynk users. Not sure if you've forked it yet. Will we need to get new versions and updates from a different source now?
October 21, 2025Oct 21 On 2025/10/18 at 2:00 PM, CraftyChops said:Argh! I'm getting errors again. Seemed to start around 01:00 or 02:00 last night.Just loads of these type of errors every time it checks the API2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error)"1. 380458"2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error){ 2310202384: object }2025/10/18, 13:56:26node: Export Data Export To Entityfunction : (error)"2. 380458 2310202384 0"2025/10/18, 13:56:26node: Calc Last Update Time & General Status Checkfunction : (error)"Stats Last Update - Error With Data "2025/10/18, 13:56:26node: Calc Last Update Time & General Status Checkfunction : (error)"TypeError: Cannot read properties of undefined (reading 'toString')"Hmm, it's suddenly working again since 04:40 (SAST) this morning. AWS related?
November 13, 2025Nov 13 Hi guys my Sunsynk has suddenly stopped working in node red? not sure if it was a home assistant update or what? Any help would be greatly appreciated.
November 14, 2025Nov 14 23 hours ago, Jacques Jambo said:Hi guys my Sunsynk has suddenly stopped working in node red? not sure if it was a home assistant update or what? Any help would be greatly appreciated.I am in the same boat. I was on a much older version though. But I am not even able to get version 2.4 working. Not actually a coder, so I am sure I just don't know where to change things.PS - Is the inverter serial a must in the secrets file, or can I get it from the info collected (once I can get pas the login issue)
November 14, 2025Nov 14 On 2025/10/18 at 2:14 PM, CraftyChops said:@Bjorn-CPT Thanks for taking this on. This is such a useful addition to HA for us Sunsynk users. Not sure if you've forked it yet. Will we need to get new versions and updates from a different source now?Hi Bjorn, would you mind sharing the JSON please?
November 14, 2025Nov 14 Hi, Mine has stopped working too (Version 2.4). Looking at the NodeRED I'm getting a "Status 404 Not Found" on the Bearer Debug. Does this mean that the Sunsynk API is down or has changed its web address endpoints?
November 14, 2025Nov 14 Apparently, sunsynk changed how they do authentication (https://www.facebook.com/groups/571819024654208/permalink/1413766933792742/), altho i can't find details of the change anywhere. It's broken for me as well.
November 15, 2025Nov 15 Trying out Sunsynk connect pro in the meantime since it does not look good for a fix soon.
November 16, 2025Nov 16 Here's a fork of Gary's repo with the new authentication flow included. It's working for me, but let me know if anyone sees any issues.GitHubGitHub - cpether/Home-Assistant---E-Linter-Logger---SunsynkContribute to cpether/Home-Assistant---E-Linter-Logger---Sunsynk development by creating an account on GitHub.
November 16, 2025Nov 16 1 hour ago, cp2023 said:Here's a fork of Gary's repo with the new authentication flow included. It's working for me, but let me know if anyone sees any issues.GitHubGitHub - cpether/Home-Assistant---E-Linter-Logger---SunsynkContribute to cpether/Home-Assistant---E-Linter-Logger---Sunsynk development by creating an account on GitHub.Awesome thanks, working for me appreciate it!Some reason I am not able to update settings though.When trying to change soc:16 Nov 16:22:37 - [error] [function:Export Data Export To Entity] Logger In Warning Mode, continuing16 Nov 16:22:54 - [warn] [http request:Set Invertor Settings] JSON parse error16 Nov 16:22:54 - [error] [function:Set Status] <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1></body></html>16 Nov 16:22:54 - [error] [function:Set Status] TypeError: Cannot read properties of undefined (reading 'hasOwnProperty') Edited November 16, 2025Nov 16 by Ronnie1102
November 16, 2025Nov 16 2 hours ago, Ronnie1102 said:Awesome thanks, working for me appreciate it!Some reason I am not able to update settings though.When trying to change soc:16 Nov 16:22:37 - [error] [function:Export Data Export To Entity] Logger In Warning Mode, continuing16 Nov 16:22:54 - [warn] [http request:Set Invertor Settings] JSON parse error16 Nov 16:22:54 - [error] [function:Set Status] <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1></body></html>16 Nov 16:22:54 - [error] [function:Set Status] TypeError: Cannot read properties of undefined (reading 'hasOwnProperty')Changed method to POST and it works again { "id": "5482ee7bf9a560ca", "type": "http request", "z": "0529a9f43b7f7bd9", "name": "Set Invertor Settings", "method": "use", change this to post "ret": "obj", "paytoqs": "ignore", "url": "", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "x": 1320, "y": 1160, "wires": [ [ "3d5275293bad84d5", "539a19bf670fc51c" ] ] }, Edited November 16, 2025Nov 16 by Ronnie1102
November 16, 2025Nov 16 i was getting warnings when using that field that node-RED had deprecated it, that why i changed it to "use". Just hadn't updated the request correctly to use POST. I've committed a fix now.
November 16, 2025Nov 16 Just now, cp2023 said:i was getting warnings when using that field that node-RED had deprecated it, that why i changed it to "use". Just hadn't updated the request correctly to use POST. I've committed a fix now.Thanks, will use the updated flow.Appreciate the changes though, still much better than sunsynk connect pro ai they released.
November 16, 2025Nov 16 8 hours ago, cp2023 said:Here's a fork of Gary's repo with the new authentication flow included. It's working for me, but let me know if anyone sees any issues.GitHubGitHub - cpether/Home-Assistant---E-Linter-Logger---SunsynkContribute to cpether/Home-Assistant---E-Linter-Logger---Sunsynk development by creating an account on GitHub.Thanks so much for the fork — I finally managed to get everything working again today.For anyone else trying to migrate to this fork, here are a few important notes based on the pain I went through:1. Delete your old Node-RED flow firstI was still running v2.2, and the structure is very different from v2.4.Remove the old flow completely and then import the new v2.4 flow.2. Remove all Sunsynk config entries from configuration.yamlI wiped all my previous Sunsynk sections to avoid conflicts.3. Import the new Sunsynk Gather config carefullyThis part caused the most headaches because my configuration.yaml is highly structured.Do NOT paste the whole file at once.Import it in smaller sections and place each part where it belongs.I had errors with the sunsynk_config_sensor. Configuaration.yaml expects attribute values that are numbers to be in quotes, otherwise validation expects a string value. So attribute values like region: "2", unit_cost:"2.37" etc. Some sensors aren’t needed (e.g., light-related ones), and the order in the file isn't intuitive.4. Update your secrets.yamlThere are new and renamed entries that the flow depends on.Notably:sunsynk_user: xxx # was sunsynk_username sunsynk_sn_data: xxx sunsynk_sn_flow: xxx sunsynk_plantid_ignore_list: "xxxx" Getting the sunsync_sn_data and sunsynk_sn_flow is very tricky esp for someone like me who is not comfortable with Node-Red. It took me time to get to. See the pictures for guidance5. Expect a few deprecation warningsI’m still seeing some, but everything is functioning correctly.Thanks @cp2023 Edited November 16, 2025Nov 16 by gkj_muk
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.