May 20, 20215 yr 1 hour ago, JuanH said: I'm having the exact same issue as @jacauc. I wonder if the current batch of converters from https://www.robotics.org.za/ is faulty? The majority of the error messages are caused by the attempt to reconnect after timeout. By disabling "Reconnect on timeout", I no longer get the "Error: Client Not Ready To Read At State" messages, and only get the below every few seconds. It seems if I can find the cause of the timeout, the issue will be resolved entirely: These are my current settings:
May 20, 20215 yr @Bloubul7hoping you can provide some clarity on the below: This is a photo of my SS8's Panel for reference From what my installer explained to me, the house icon next to the grid icon in the bottom right (showing 32watts) is my non-essential usage. From your flows, I understand this to be "Grid Load". And the UPS icon is my essential usage, from your flows understood to be "Grid Inverter Load". In your Node Red flows, however, you sum "Grid CT" and "Grid Load" to give "Grid Total Load". Isn't that taking "Grid Load" into account twice, as that load is already included in Grid CT? I noticed this earlier today, when I spotted "Grid Total Load" was giving a value in excess of 11000 W. Not sure if I am misunderstanding something, or if my system is configured incorrectly.
May 21, 20215 yr Thought I'd share my current flows for anyone interested. Removed all Solar Readings (nodes) as I do not have PV (yet) Split the data output into a separate flow to simplify changes Set msg values for each of the nodes so they can be reused later Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better. Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/ Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now. inverter monitoring.json publish externally.json Edited May 21, 20215 yr by jacauc
May 21, 20215 yr 2 hours ago, jacauc said: Thought I'd share my current flows for anyone interested. Removed all Solar Readings (nodes) as I do not have PV (yet) Split the data output into a separate flow to simplify changes Set msg values for each of the nodes so they can be reused later Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better. Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/ Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now. inverter monitoring.json 4.4 kB · 1 download publish externally.json 34.44 kB · 1 download Doh! Noticed my file names vs flow names are swapped.
May 21, 20215 yr 4 hours ago, jacauc said: Thought I'd share my current flows for anyone interested. Removed all Solar Readings (nodes) as I do not have PV (yet) Split the data output into a separate flow to simplify changes Set msg values for each of the nodes so they can be reused later Cycle through each reading one by one to avoid parallel requests to modbus - seems to work a slight bit better. Format MQTT topics using the home assistant MQTT discovery protocol, to allow HA to pick up the entities automatically https://www.home-assistant.io/docs/mqtt/discovery/ Feel free to comment - I'm not exactly a node-red or MQTT expert, but this seems to work for now. inverter monitoring.json 4.4 kB · 2 downloads publish externally.json 34.44 kB · 1 download Thanks for sharing! What is the pallete name for "cycle"? Getting an error importing the flow.
May 21, 20215 yr 2 minutes ago, JuanH said: Thanks for sharing! What is the pallete name for "cycle"? Getting an error importing the flow. https://flows.nodered.org/node/node-red-contrib-cycle Forgot to mention 🙂
May 21, 20215 yr 1 minute ago, jacauc said: https://flows.nodered.org/node/node-red-contrib-cycle Forgot to mention 🙂 Thanks! I'm new to Node Red, but your example seems like a good one to unpack and learn from.
May 21, 20215 yr Be aware that it will change some of the names of the tables in your influxdb, so dashboards may be affected. Let me know if you need help transferring data from the old tables to the lowercase tables.
May 21, 20215 yr [{"id":"be3ebae7.6ed828","type":"function","z":"28c7d530.54db9a","name":"Assemble Config","func":"//var fulltopic\nmsg.topic = \"homeassistant/sensor/SunSynk\" + \"/\" + \"/\" + msg.shorttopic + \"/\" + \"config\";\nmsg.topic = msg.topic.replace(\"//\", \"/\");\nmsg.payload = {\n \"unit_of_measurement\": msg.unit,\n \"state_topic\": \"homeassistant/sensor/SunSynk\" + \"/\" + msg.shorttopic + \"/\" + \"value\",\n \"name\": \"SunSynk_\" + msg.shorttopic,\n \"unique_id\": msg.shorttopic,\n \"device\": {\n \"identifiers\": [\n \"SunSynk\"\n ],\n \"name\": \"SunSynk\",\n \"model\": \"SynSynk\",\n \"manufacturer\": \"SunSynk\"\n } \n}\n if (msg.deviceclass != \"\") {\n msg.payload.device_class = msg.deviceclass\n }\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":280,"wires":[["cf57d2c1.c918f","d329b5a1.56bb08"]]}] Updated code of the Assemble Config Node to allow all entities to be grouped under the same device in HA. Also fixed the frequency values which did not show up in HA. Files uploaded. Due to continuous tweaks, I think I'll put it on my github page going forward. Inverter Monitor.json Publish to MQTT and DB.json Edited May 21, 20215 yr by jacauc
May 21, 20215 yr On 2021/05/20 at 6:33 PM, JuanH said: @Bloubul7hoping you can provide some clarity on the below: This is a photo of my SS8's Panel for reference From what my installer explained to me, the house icon next to the grid icon in the bottom right (showing 32watts) is my non-essential usage. From your flows, I understand this to be "Grid Load". And the UPS icon is my essential usage, from your flows understood to be "Grid Inverter Load". In your Node Red flows, however, you sum "Grid CT" and "Grid Load" to give "Grid Total Load". Isn't that taking "Grid Load" into account twice, as that load is already included in Grid CT? I noticed this earlier today, when I spotted "Grid Total Load" was giving a value in excess of 11000 W. Not sure if I am misunderstanding something, or if my system is configured incorrectly. Coming back to this, there is definitely a discrepency with my setup and @Bloubul7's flows. I'm not saying his flows are set up wrong. It's more than likely that it's my Inverter that is configured incorrectly. Based on my setup, this is how my inverter readings compare to the flows. Can anyone else confirm if it is correct on their side: With the above, Grid_Total_Load_Calc is calculating my non-essential load (3026 W) twice. BTW, thank you @Bloubul7 for all the hard work and sharing it with us!
May 22, 20215 yr Yes JuanH, I agree 100%, buy that @Bloubul7 a Bells 🙂 , I definitely couldn't have done it without all his hard work
May 23, 20215 yr On 2021/05/21 at 7:17 PM, JuanH said: Coming back to this, there is definitely a discrepency with my setup and @Bloubul7's flows. I'm not saying his flows are set up wrong. It's more than likely that it's my Inverter that is configured incorrectly. Based on my setup, this is how my inverter readings compare to the flows. Can anyone else confirm if it is correct on their side: With the above, Grid_Total_Load_Calc is calculating my non-essential load (3026 W) twice. BTW, thank you @Bloubul7 for all the hard work and sharing it with us! Having the issue this side. Doesn’t seem like the LD reading on the inverter is available as a register, will have to calculate. This is only an issue if you use non-essential loads.
May 24, 20215 yr Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github?
May 24, 20215 yr 1 minute ago, Sc00bs said: Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github? No problems here... it's already publicly available on this forum anyways
May 24, 20215 yr jacauc Interested to see what your Grafana Dashboard looks like, can you upload that as well?
May 24, 20215 yr On 2021/05/21 at 4:06 PM, jacauc said: Be aware that it will change some of the names of the tables in your influxdb, so dashboards may be affected. Let me know if you need help transferring data from the old tables to the lowercase tables. What is the best way to convert my data from the old tables?
May 24, 20215 yr 2 hours ago, Sc00bs said: Somebody was asking if we have a repository for the files people are generating, sounds like a good idea. Anyone have a problem with me uploading the files to Github? I've used @jacauc's examples, and added solar nodes to it, as well as changed/removed the calculated nodes for those who have both essential and non-essential loads on their inverters. For anyone who is interested: https://github.com/juanhaywood/sunsynk-modbus-nodered-flows
May 24, 20215 yr 7 hours ago, Sc00bs said: jacauc Just saw you have a Github page already! https://github.com/jacauc/SunSynk-NodeRed Published here - will need to work on Readme and others to give proper credit to @Bloubul7 6 hours ago, Sc00bs said: jacauc Interested to see what your Grafana Dashboard looks like, can you upload that as well? My current dashboard attached at the bottom of this post. Still a work in progress 6 hours ago, Sc00bs said: What is the best way to convert my data from the old tables? Open the "influx" shell and then do --list all tables SHOW MEASUREMENTS --copy values from old table to new table SELECT * INTO newtablename FROM oldtablename --delete old measurements DROP MEASUREMENT oldtablename grafana.json
May 25, 20215 yr 21 hours ago, JuanH said: I've used @jacauc's examples, and added solar nodes to it, as well as changed/removed the calculated nodes for those who have both essential and non-essential loads on their inverters. For anyone who is interested: https://github.com/juanhaywood/sunsynk-modbus-nodered-flows I have updated the flows to include the PV2 Panels and generate a total power figure if you want to check it out and perhaps upload it to your github as well as my Solar Dashboard (always under construction). Perhaps we could start a project with everybody involved, would be cool to enable Bloubuls original flows with the reading/writing of the load shedding options flows (4).json Solar Dashboard-1621923466176.json
May 25, 20215 yr 34 minutes ago, Sc00bs said: I have updated the flows to include the PV2 Panels and generate a total power figure if you want to check it out and perhaps upload it to your github as well as my Solar Dashboard (always under construction). Perhaps we could start a project with everybody involved, would be cool to enable Bloubuls original flows with the reading/writing of the load shedding options flows (4).json 48.84 kB · 0 downloads Solar Dashboard-1621923466176.json 61.55 kB · 1 download Thank you! I've uploaded it to the Github page.
May 25, 20215 yr On 2021/05/20 at 2:01 PM, JuanH said: I'm having the exact same issue as @jacauc. I wonder if the current batch of converters from https://www.robotics.org.za/ is faulty? I've replaced this converter with an alternative RS485 device, and no longer having a time-out issue.
May 25, 20215 yr Just now, JuanH said: I've replaced this converter with an alternative RS485 device, and no longer having a time-out issue. Good to know. What device did you use?
May 25, 20215 yr 4 minutes ago, jacauc said: Good to know. What device did you use? https://www.robotics.org.za/W14882 I also took the opportunity to switch from using my Pi 4 (which is overkill as a RS485 - MQTT intermediary, unless you are running your whol HA system on it as well) to using a Pi Zero W. Much smaller footprint, and looks much neater.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.