Pieter007 Posted September 5, 2020 Posted September 5, 2020 hi can someone design for use friendly dashboards like icc for me -i am using sunsynk and pylontech- will pay for the services. regards P Sc00bs 1 Quote
Achmat Posted September 5, 2020 Posted September 5, 2020 50 minutes ago, Pieter007 said: hi can someone design for use friendly dashboards like icc for me -i am using sunsynk and pylontech- will pay for the services. regards P Following as i also have the sunsynk with 3 x 3.5kWh pylontech batteries. Quote
ManiLow Posted September 10, 2020 Posted September 10, 2020 As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inverter and 10kWh revov batteries. have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana: I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages. My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route. Marius De Kock, Achmat, Rclegg and 1 other 2 2 Quote
Achmat Posted September 10, 2020 Posted September 10, 2020 55 minutes ago, ManiLow said: As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inverter and 10kWh revov batteries. have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana: I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages. My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route. That is pretty cool. I saw the Modbus info from sunsynk in another post but I have no idea what to do with it. My can port is occupied by the battery bms cable for my pylontech. Will be interested in getting something similar directly from the inverter. Quote
Rclegg Posted September 10, 2020 Posted September 10, 2020 58 minutes ago, ManiLow said: As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inverter and 10kWh revov batteries. have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana: I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages. My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route. Love that Grafana dashboard. Would you mind sharing what panel components you use for the yellow / blue / red blocks at the top of the dashboard? I'd like to add something like that to my dashboard too. The consumption graph is a great idea too.. adding that to mine now lol Thanks Quote
ManiLow Posted September 10, 2020 Posted September 10, 2020 (edited) I'll make some of this available via a write up once I have a bit of time. Those blocks were basically the stats block and I added some thresholds Edited September 10, 2020 by ManiLow Rclegg 1 Quote
naeemZA Posted September 21, 2020 Posted September 21, 2020 @ManiLowHi, Looks real cool. Are you planning on open-sourcing or sharing what you've done with your dashboards. The guys are busy installing an 8kw SunSynk as we speak. I think I need to get a stronger pi to run something like this and my Unifi Controller. Quote
Bloubul7 Posted September 26, 2020 Posted September 26, 2020 On 2020/09/10 at 7:26 PM, Achmat said: That is pretty cool. I saw the Modbus info from sunsynk in another post but I have no idea what to do with it. My can port is occupied by the battery bms cable for my pylontech. Will be interested in getting something similar directly from the inverter. Installed my Sunsynk inverter today and the first (and only) thing I miss is the realtime information and integration with my Home Assistant. Looking at the inverter it would appear like it is has modbus communication available on the RS485 port. I have ordered a USB to RS485 receiver to see if I can decode the the communication. Once decoded I want to create a stand alone ESP8266 which will receive and translate the Modbus and communicate it in realtime via MQTT. andreruton 1 Quote
Achmat Posted September 26, 2020 Posted September 26, 2020 54 minutes ago, Bloubul7 said: Installed my Sunsynk inverter today and the first (and only) thing I miss is the realtime information and integration with my Home Assistant. Looking at the inverter it would appear like it is has modbus communication available on the RS485 port. I have ordered a USB to RS485 receiver to see if I can decode the the communication. Once decoded I want to create a stand alone ESP8266 which will receive and translate the Modbus and communicate it in realtime via MQTT. I have a copy of the Modbus information from sunsynk of you're interested. Quote
JustinSchoeman Posted September 26, 2020 Posted September 26, 2020 56 minutes ago, Bloubul7 said: Once decoded I want to create a stand alone ESP8266 which will receive and translate the Modbus and communicate it in realtime via MQTT. Not much to decoding it. Sunsynk sent me the protocol document on request and it is dead simple. Here is the code I use for reading the inverter: https://github.com/justinschoeman/SmarterLoad/blob/master/tx/sunsynk.h Bloubul7 1 Quote
Bloubul7 Posted September 27, 2020 Posted September 27, 2020 12 hours ago, JustinSchoeman said: Not much to decoding it. Sunsynk sent me the protocol document on request and it is dead simple. Here is the code I use for reading the inverter: https://github.com/justinschoeman/SmarterLoad/blob/master/tx/sunsynk.h Thanks Justin, appreciate it. Would you mind sharing the protocol document? Quote
JustinSchoeman Posted September 27, 2020 Posted September 27, 2020 There were no copyright notices/restrictions in the email they sent me, so I assume it is OK to post it here: sunsynk_modbus.docx Bloubul7 1 Quote
Bloubul7 Posted September 28, 2020 Posted September 28, 2020 23 hours ago, JustinSchoeman said: There were no copyright notices/restrictions in the email they sent me, so I assume it is OK to post it here: sunsynk_modbus.docx 185.4 kB · 6 downloads Do you maybe have the RJ45 pinout? Quote
JustinSchoeman Posted September 28, 2020 Posted September 28, 2020 It is in the manual (just note that the table is incorrect - the trace labeling in the diagram below is correct): Bloubul7 1 Quote
Bloubul7 Posted September 28, 2020 Posted September 28, 2020 Awesome thanks, couldn't find it in the PDF manual. My inverter monitoring is atleast now up and running. Still need to add the rest of the strings that would be useful, format the values, clean up the interface and create some nice graphs Quote
Bloubul7 Posted September 28, 2020 Posted September 28, 2020 All of the critical information captured and scaled. Now to start with the user interface and some nice Grafana graphs. Information is updated ever 20 seconds. Currently using Modbus over TCP to my Home Assistant server. After this is running perfectly, I will start playing around with a NodeMCU to see if I can make a stand alone solution with a web interface which would be able to change settings as well. Solardad 1 Quote
Cyon Posted September 30, 2020 Posted September 30, 2020 On 2020/09/10 at 6:27 PM, ManiLow said: As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inverter and 10kWh revov batteries. have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana: I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages. My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route. Wow, this is what I'm looking for, for the King Inverter. Is this open source and can I get a copy? Quote
Bloubul7 Posted September 30, 2020 Posted September 30, 2020 (edited) 2 hours ago, Barryv said: Wow, this is what I'm looking for, for the King Inverter. Is this open source and can I get a copy? Are you running ICC? The above graphs are produced from Grafana. In order to set up similar graphs you need to following: 1) Axpert Logger (either ICC or Solpi). The logger must be able to publish MQTT 2) InfluxDB with MQTT addon (the logger publishes the value via MQTT. Influx is a database and store the information) 3) Grafana. Grafana links to the InfluxDB and is used to produced the graphs based on queries All of the above can easily be implemented on a Raspberry Pi Edited September 30, 2020 by Bloubul7 Quote
Bloubul7 Posted September 30, 2020 Posted September 30, 2020 Busy with development of a wireless configuration programme. GUI for the first page is laid out (will fix the spacing once done). Now to start with the programming. GMeiburg 1 Quote
Solardad Posted October 5, 2020 Posted October 5, 2020 On 2020/09/28 at 9:36 AM, Bloubul7 said: All of the critical information captured and scaled. Now to start with the user interface and some nice Grafana graphs. Information is updated ever 20 seconds. Currently using Modbus over TCP to my Home Assistant server. After this is running perfectly, I will start playing around with a NodeMCU to see if I can make a stand alone solution with a web interface which would be able to change settings as well. This is great! I have the cousin to this inverter, Sol-Ark 12k that is sold in the states. I'd love to do something similar. How are you polling the data, via WiFi dongle or connected via RS485 to USB or ???? I am familiar with Node-Red, Influxdb and Grafana on my battery side, capturing Batrium BMS data, but I would love to start capturing the inverter side. Sol-Ark info is tough to come by but I am hoping that since these inverters appear to be the same outside of the name that this should be possible. Thanks! Quote
Bloubul7 Posted October 5, 2020 Posted October 5, 2020 11 hours ago, Solardad said: This is great! I have the cousin to this inverter, Sol-Ark 12k that is sold in the states. I'd love to do something similar. How are you polling the data, via WiFi dongle or connected via RS485 to USB or ???? I am familiar with Node-Red, Influxdb and Grafana on my battery side, capturing Batrium BMS data, but I would love to start capturing the inverter side. Sol-Ark info is tough to come by but I am hoping that since these inverters appear to be the same outside of the name that this should be possible. Thanks! Hi and welcome to the forum, On the inverter side I have made use of a Raspberry Pi Zero with RS485 expansion HAT. The inverter connects to the Pi through the RS485 port using the pinouts posted earlier The Pi Zero has been configured as a Modbus Gateway and essentially converts to the Modbus RTU to Modbus TCP. See link for library used - https://medium.com/@boonsanti/raspberry-pi-3-model-b-modbus-rs-485-to-modbus-tcp-ip-gateway-9ed14ce2c08e I then have another Raspberry Pi which I use as my main Home automation server (Pi 4, 8gb ram with 256gb NVME drive). On the server Pi I utilize Node Red to communicate with the Mod Bus relay and retrieve the specific register addresses which I want to monitor. From there Node Red then formats the values and MQTT then values to my Home Assistant for display as well as log the values in an Influx DB for Grafana integration Solardad 1 Quote
Solardad Posted October 5, 2020 Posted October 5, 2020 3 hours ago, Bloubul7 said: Hi and welcome to the forum, On the inverter side I have made use of a Raspberry Pi Zero with RS485 expansion HAT. The inverter connects to the Pi through the RS485 port using the pinouts posted earlier The Pi Zero has been configured as a Modbus Gateway and essentially converts to the Modbus RTU to Modbus TCP. See link for library used - https://medium.com/@boonsanti/raspberry-pi-3-model-b-modbus-rs-485-to-modbus-tcp-ip-gateway-9ed14ce2c08e I then have another Raspberry Pi which I use as my main Home automation server (Pi 4, 8gb ram with 256gb NVME drive). On the server Pi I utilize Node Red to communicate with the Mod Bus relay and retrieve the specific register addresses which I want to monitor. From there Node Red then formats the values and MQTT then values to my Home Assistant for display as well as log the values in an Influx DB for Grafana integration @Bloubul7 Thanks for the warm welcome and the details provided. I think this gives me enough to get started. Thanks again! Quote
Solardad Posted October 6, 2020 Posted October 6, 2020 On 2020/09/10 at 12:27 PM, ManiLow said: As a side project, I developed a semi-realtime dashboard using some open source components and some custom software that I wrote. My current setup is the following: I have a 8kW sunsynk inverter and 10kWh revov batteries. have a program running on a raspberry pi 2 that polls the wifi (solarman) dongle on my 8kw inverter. It writes the inverter data to json files every 30 seconds. I then have another program that uploads the json payloads to a google cloud server (on their free tier) running grafana and influxdb. I have most of the google cloud stuff on a docker image, so I can move it quickly to another server if I see the server isn't handling the loads. I then created the following custom dashboard in grafana: I'm still trying to pin down what information is useful, so it's still a bit of a work in progress. I have to see what other battery info there is on the inverter, but for now I'm just interested in the soc & voltages. My next steps are to connect my pi to the can port (rs485 is occupied) and try and get the same info, but I'm not sure how that's gonna work. The rs485 port is unfortunately connected to the batteries, so I can't go that route. @ManiLow very cool you are polling the data from the WiFi dongle. Can you provide some info on how you are doing that? Planning to use rs485 port but while I wait for my interface I thought about trying to setup a test node red to try and read in the data if it is already in a readable format. Thanks! Quote
Bloubul7 Posted October 6, 2020 Posted October 6, 2020 4 hours ago, Solardad said: @ManiLow very cool you are polling the data from the WiFi dongle. Can you provide some info on how you are doing that? Planning to use rs485 port but while I wait for my interface I thought about trying to setup a test node red to try and read in the data if it is already in a readable format. Thanks! You can check Github, there are a couple of webscrapers available for Solarman https://github.com/tonsnoei/SolarmanWifiApi https://github.com/XtheOne/Inverter-Data-Logger Sc00bs 1 Quote
Bloubul7 Posted October 6, 2020 Posted October 6, 2020 Web interface sorted. I can now remotely alter my inverter settings. Next I want to integrate the settings into my automation flows. This would essentially allow me to run two seperate sets of settings, Loadshedding vs No loadshedding. The load shedding settings can be triggered by a webhook and will ensure that the battery charging is prioritized when loadshedding is active. Alex Feldmann, Halcyon, Solardad and 2 others 3 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.