That’s for your contributions. Brought the board and case and power lead etc. Fairly painless install with good support when I had issues. Neat solution and Works a treat. Had to replace my Sunsynk dongle that failed after only 5 months. After integrating into home assist offers so many powerful options.
Hi, Thanks for all of your work on this. I know how long it takes to put this sort of video together! Im going to attempt this, but i have (or will have ) 2 x 8 kw inverters in parallel (master & slave) will it be possible to get this to work and monitor both inverters? Edit, Reading down the tread, isee this has been answered and ive found what i need in the power forum, thanks.
Hi @markvk42, it will definitely work although I have not been able to test it out as I only have 1 x 16kw. There are two ways you could do it. Either using 1 x ESP32, in which case the inverters will need daisy chain the RS485 ports between the Inverters along with ESP32 so that they are all on the same bus. Easiest way to do this is probably to use a Wall Box and just link them up that way matrixwarehouse.co.za/product/4-way-rj45-wall-box/ One of the users on the Powerforum posted his YAML code for running in this config and Slipx06 was kind enough to post it to his Github. github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-1P-Sunsynk-Deye-Master-Slave.yaml You will need to check to make sure that you use the correct modbus addresses so that the ESP32 speaks to your inverters addresses. The other alternative is to use two ESP32's and speak to each inverter individually. In this case you will need to change the entity addresses on the Slave ESP32 so you don't have duplicate entities in Home Assistant being sent from both ESP32's. Good luck, please let me know how it goes.
Hi @veritasystems3387, You don't connect the ESP32 directly to the inverter, u need an RS485 adapter. The RS485 has no flow control. RS485 is pin 1 (B-) & 2 (A+) on the RJ45 connector. You can also use pin 7 (A+) & 8 (B-)
Awesome guide, very detailed. I have a 5kw sunsynk ( intending to install a 2nd) will this work in my case? Does the wifi dongle continue to function for updates etc?
Hi @andreharty2824 , Unfortunately I have never tried it out with that inverter. What errors are you getting? Do you have the Modbus register for the inverter? It will probably be similar to the DEYE/Sunsynk register but there will probably be some changes to that specific inverter. Are you using a RS475 Board or do you have the shield? Setting up the shield is a lot easier as there is no soldering which always seems to be problematic. Good luck, let me know how it goes.
You can just go to the settings/device and it will allow you the entities there which can be changed and added to your dashboard. Otherwise you can use Slipx06's dash, I did a video on installation, and that has a really nice looking dash for changing settings.
Hi @jolambinon9775, I use the 8kw code from the Slipx06 github page. You just have to take out the # tags from the queries for the 3rd mppt controller data, they are in the code just # tagged out as the 8kw obviously only has 2 x mppt's so the 3rd one isn't enabled as default.
thanks for the beautiful video, PLEASE I NEED HELP. I ordered the esp32 and the shield board for my Deye 16kw inverter, i tried to save and install the edited code to my esp32 but I kept getting this error code: Error: (The program size (1874333 bytes) is greater than maximum allowed (1835008 bytes) *** [checkprogsize] Explicit exit, status 1 Flash: [==========] 102.1% (used 1874333 bytes from 1835008 bytes) ========================= [FAILED] Took 28.56 seconds =========================) CAN YOU HELP ME PLEASE ?
Hi @elsadoo, sorry for the late reply. I have read some issues online when you have too many components installed and it seems to vary based on the version of ESPHome you are running. I would start by trying to reduce the size of the YAML code items you are installing. Comment out the web server ands see if that helps, you have use #'s to do this.
Hi @MrStefandup I personally haven't done it but yes you can (I only have one inverter), one of the users in the discussion thread worked out how to set it up and the code is now on the Slix06 Github page. The code you need to use is slightly different and you need to install a cable to both inverters from the ESP32. Chgeck out the discussion thead on powerforum.co.za/topic/25195-a-much-better-way-of-connecting-home-assistant-to-your-deyesunsynk-inverter/
Hi @1ARSEN8 Have you installed it into ESPhome before perhaps, if so you will probably need to use the old one? Otherwise you can try resetting it using IDE and then onboarding it again.
Hi @alfredoayala1911, you can also purchase from Electrodragon in China, pretty sure they will ship to Spain. Just make sure that you get the correct ESP32C and check the pinout is correct otherwise it will destroy your ESP32. www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
Using Home Assistant allows you to integrate with all your other smart devices and do automations using your inverter data. Solar Assistant is pretty much a stand alone system to replace the SolarmanPV/Sunsynk cloud, not sure if they have any integrations as yet.
@@SolarIntegrations Thank. you, I am in the level of doing some research on HAS and will connect my Deye to HAS and the rest of the House energy usage. Also I wanted to remotely control the Deye charging and also automate it if possible using OpenWeather API.
@@unwired I have done a video on a pool automation using Solcast to forecast my production and then turn my pool pump on when I have sufficient excess energy.
help me, I got this error - sensor.modbus_controller: [source /config/esphome/esp32-logger.yaml:1630] - Expected integer, but cannot parse ${settings_skipped_updates} as an integer.
Hi @phu89pt1, when about are you getting the error, when you are trying to upload the code to the ESP? I would suggest having a look at the support thread on the Powerforum.co.za for the integration as there is lots of discussion there.
Thanks for the info - I've bought a board and cables and after being puzzled as to how to connect the server to the shield dongle I discovered the video by Heinz that shows how to connect via the wifi hotspot that is on that v4 board! I hope this link will work : th-cam.com/video/sfhMm31nhoE/w-d-xo.html There is now no need to run a ethernet/rs485 cable from the Home assistant server to the dongle or to the inverter. Just connect the dongle to the inverter's 485 port and plug it into the 12v outlet and connect via wifi. Very, very simple!!!
I thought that it was pretty obvious that the ESP32 connected to the server wirelessly once you have it onboarded to ESPHome but didn't mention it in the video, thank you for letting me know
That’s for your contributions. Brought the board and case and power lead etc. Fairly painless install with good support when I had issues. Neat solution and Works a treat. Had to replace my Sunsynk dongle that failed after only 5 months. After integrating into home assist offers so many powerful options.
Awesome, glad to hear it went smoothly. Is definitely a whole load easier than using one of the MAX485 boards
Hi, Thanks for all of your work on this. I know how long it takes to put this sort of video together! Im going to attempt this, but i have (or will have ) 2 x 8 kw inverters in parallel (master & slave) will it be possible to get this to work and monitor both inverters? Edit, Reading down the tread, isee this has been answered and ive found what i need in the power forum, thanks.
Hi @markvk42, it will definitely work although I have not been able to test it out as I only have 1 x 16kw. There are two ways you could do it. Either using 1 x ESP32, in which case the inverters will need daisy chain the RS485 ports between the Inverters along with ESP32 so that they are all on the same bus. Easiest way to do this is probably to use a Wall Box and just link them up that way matrixwarehouse.co.za/product/4-way-rj45-wall-box/
One of the users on the Powerforum posted his YAML code for running in this config and Slipx06 was kind enough to post it to his Github. github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-1P-Sunsynk-Deye-Master-Slave.yaml You will need to check to make sure that you use the correct modbus addresses so that the ESP32 speaks to your inverters addresses.
The other alternative is to use two ESP32's and speak to each inverter individually. In this case you will need to change the entity addresses on the Slave ESP32 so you don't have duplicate entities in Home Assistant being sent from both ESP32's.
Good luck, please let me know how it goes.
Do you know what the Tx, Rx and Flow Control pins are the Sunksynk 8kW inverter?
Hi @veritasystems3387,
You don't connect the ESP32 directly to the inverter, u need an RS485 adapter.
The RS485 has no flow control.
RS485 is pin 1 (B-) & 2 (A+) on the RJ45 connector.
You can also use pin 7 (A+) & 8 (B-)
Awesome guide, very detailed. I have a 5kw sunsynk ( intending to install a 2nd) will this work in my case? Does the wifi dongle continue to function for updates etc?
Glad you enjoyed the video :-), Yes, the existing dongle will keep on sending it's data to the cloud
hi thanks for this infomation, i have a powmr spk5 im trying this but getting modbus errors
Hi @andreharty2824 ,
Unfortunately I have never tried it out with that inverter.
What errors are you getting?
Do you have the Modbus register for the inverter?
It will probably be similar to the DEYE/Sunsynk register but there will probably be some changes to that specific inverter.
Are you using a RS475 Board or do you have the shield? Setting up the shield is a lot easier as there is no soldering which always seems to be problematic.
Good luck, let me know how it goes.
Can you use this ESPHome device and continue to use the Sunsync logger? In other words, use both?
Yes, 100%
How do you create the dashboards that allows you to change values on the inverter?
You can just go to the settings/device and it will allow you the entities there which can be changed and added to your dashboard. Otherwise you can use Slipx06's dash, I did a video on installation, and that has a really nice looking dash for changing settings.
Hi would you be willing to share the esphome yaml file for a 16 kw single phase inverter as per your video?
Hi @jolambinon9775, I use the 8kw code from the Slipx06 github page. You just have to take out the # tags from the queries for the 3rd mppt controller data, they are in the code just # tagged out as the 8kw obviously only has 2 x mppt's so the 3rd one isn't enabled as default.
Thank you, will give it a try
thanks for the beautiful video, PLEASE I NEED HELP. I ordered the esp32 and the shield board for my Deye 16kw inverter, i tried to save and install the edited code to my esp32 but I kept getting this error code: Error: (The program size (1874333 bytes) is greater than maximum allowed (1835008 bytes)
*** [checkprogsize] Explicit exit, status 1
Flash: [==========] 102.1% (used 1874333 bytes from 1835008 bytes)
========================= [FAILED] Took 28.56 seconds =========================) CAN YOU HELP ME PLEASE ?
Hi @elsadoo, sorry for the late reply. I have read some issues online when you have too many components installed and it seems to vary based on the version of ESPHome you are running. I would start by trying to reduce the size of the YAML code items you are installing. Comment out the web server ands see if that helps, you have use #'s to do this.
It looks like it is pretty close so that should work, please let me know
Can this still be achieved if I have 2 Sunsynk inverters?
Hi @MrStefandup I personally haven't done it but yes you can (I only have one inverter), one of the users in the discussion thread worked out how to set it up and the code is now on the Slix06 Github page. The code you need to use is slightly different and you need to install a cable to both inverters from the ESP32. Chgeck out the discussion thead on powerforum.co.za/topic/25195-a-much-better-way-of-connecting-home-assistant-to-your-deyesunsynk-inverter/
My board does not have an API KEY after installation, what could be the problem?
Hi @1ARSEN8
Have you installed it into ESPhome before perhaps, if so you will probably need to use the old one?
Otherwise you can try resetting it using IDE and then onboarding it again.
@@SolarIntegrations Thanks it worked! "try resetting it with the IDE and then turning it back on"
cannot be purchased for Spain
Hi @alfredoayala1911, you can also purchase from Electrodragon in China, pretty sure they will ship to Spain. Just make sure that you get the correct ESP32C and check the pinout is correct otherwise it will destroy your ESP32. www.electrodragon.com/product/esp32-can-rs-485-wire-interface-shield/
This is better than Solar Assistant to Home Assistant?
Using Home Assistant allows you to integrate with all your other smart devices and do automations using your inverter data. Solar Assistant is pretty much a stand alone system to replace the SolarmanPV/Sunsynk cloud, not sure if they have any integrations as yet.
@@SolarIntegrations Thank. you, I am in the level of doing some research on HAS and will connect my Deye to HAS and the rest of the House energy usage.
Also I wanted to remotely control the Deye charging and also automate it if possible using OpenWeather API.
@@unwired I have done a video on a pool automation using Solcast to forecast my production and then turn my pool pump on when I have sufficient excess energy.
@@SolarIntegrationsIt is me again, I am torn between ESPHome (I have more control) but I am also liking the HAS Addon. Which do you think is better?
@@unwired I prefer ESPHome with the ESP32/Shield from Smarthomeintegrations, works great and have had no problems.
help me, I got this error
- sensor.modbus_controller: [source /config/esphome/esp32-logger.yaml:1630]
- Expected integer, but cannot parse ${settings_skipped_updates} as an integer.
Hi @phu89pt1, when about are you getting the error, when you are trying to upload the code to the ESP?
I would suggest having a look at the support thread on the Powerforum.co.za for the integration as there is lots of discussion there.
Hi. Thanks for the video
Thanks for watching @Mus-Doc ! I hope you find it useful, it is a much better way to connect to your inverter vs the older rs485 boards
Thanks for the info - I've bought a board and cables and after being puzzled as to how to connect the server to the shield dongle I discovered the video by Heinz that shows how to connect via the wifi hotspot that is on that v4 board! I hope this link will work : th-cam.com/video/sfhMm31nhoE/w-d-xo.html
There is now no need to run a ethernet/rs485 cable from the Home assistant server to the dongle or to the inverter. Just connect the dongle to the inverter's 485 port and plug it into the 12v outlet and connect via wifi. Very, very simple!!!
Agree 100%, the ESP32 shields are way easier to set up than the separate RS485 boards.
I thought that it was pretty obvious that the ESP32 connected to the server wirelessly once you have it onboarded to ESPHome but didn't mention it in the video, thank you for letting me know
xin chào bạn có telegram hoặc viber , facebook không