Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My Sunsynk 8Kw & data collection setup

Featured Replies

Hi All,

I've had my system running for months now and it's been fine.

Today we installed another battery and had issues with the Deye 5.5KW recognising both new and old batteries.

After much troubleshooting we had Deye upgrade the firmware of the unit, that fixed the battery issues, then the integration issues started!

At first the ESP would connect and read, but all the data had NaN values.

Dug around on the inverter itself and the Modbus was changed from 01 to 00, must have happened when the new firmware was installed. Changed that in the code and it started reading again.

Now the problem is this:

image.thumb.png.f1395de5e527adaeaff092d57393f2a2.png

It's not reading the time zone values, only displaying 21474 and also not displaying the SOC% only NaN.

What do I do to fix this?

Example of the Write settings:

image.png.114893af0c05a0fe5a6f1925bc82aeb9.png

image.thumb.png.ede9e09081aef1e3fa6bfe6b7df0ef38.png

image.thumb.png.8b7c5412fb46f4396c4a2553c4b9da35.png

image.thumb.png.72555a6b0de72029f9e0329d4a4d6de1.png

 

 

 

 

 

 

 

  • Replies 657
  • Views 178.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • If you want to try this card in home assistant follow these steps. 1. Create a new directory under www/community/ and name it sunsynk-card. If you don't have HACS installed you can create directo

  • Hi all. Here is my version to get Sunsynk 8.8 Modbus metrics in Home Assistant: Required Hardware: ESP32 Development Board @R149.95 https://www.diyelectronics.co.za/store/espressif-iot/1495-

  • Thought I would also contribute with something small. Not as impressive as what some of the others here but a contribution nonetheless. The GUI for Sunsynk System Mode, or lack thereof, has reall

Posted Images

On 2024/08/13 at 7:56 PM, Ar135 said:

Hi All,

I've had my system running for months now and it's been fine.

Today we installed another battery and had issues with the Deye 5.5KW recognising both new and old batteries.

After much troubleshooting we had Deye upgrade the firmware of the unit, that fixed the battery issues, then the integration issues started!

At first the ESP would connect and read, but all the data had NaN values.

Dug around on the inverter itself and the Modbus was changed from 01 to 00, must have happened when the new firmware was installed. Changed that in the code and it started reading again.

Now the problem is this:

image.thumb.png.f1395de5e527adaeaff092d57393f2a2.png

It's not reading the time zone values, only displaying 21474 and also not displaying the SOC% only NaN.

What do I do to fix this?

Example of the Write settings:

image.png.114893af0c05a0fe5a6f1925bc82aeb9.png

image.thumb.png.ede9e09081aef1e3fa6bfe6b7df0ef38.png

image.thumb.png.8b7c5412fb46f4396c4a2553c4b9da35.png

image.thumb.png.72555a6b0de72029f9e0329d4a4d6de1.png

 

 

 

 

 

 

 

Problem resolved, after the reset the Modbus SN was changed to 00, changed it to 01, restarted the inverter and all readings are back to normal.

  • 2 weeks later...
On 2024/07/06 at 12:11 PM, BobTheDinosaur said:

I changed to a 3.3V RS485. I think i found it on this thread, but it's this one. 

https://www.communica.co.za/products/wvs-rs485-3-3v-breakout-module?variant=44563441254700

To me it's looking like a code issued. Something to do with the modbus comms. Which is why I'm hoping Slipx has some ideas.

Hi Bob, would you mind to share the connections to the ESP32 and the Inverter side for that board. I have also purchased one to get around the problems with the Max 485 board, ta.

  • Author
On 2024/08/19 at 12:31 AM, nunoacfig said:

im planing in upgrading to the SUN-12K-SG01LP1 , does anyone know if it can handle the eastron and esphome in the same port?

You can split the port on the inverter. 

Check out this thread

 

  • Author
On 2024/08/30 at 2:20 PM, CackySA said:

Hi Bob, would you mind to share the connections to the ESP32 and the Inverter side for that board. I have also purchased one to get around the problems with the Max 485 board, ta.

I would strongly recommend getting one of the ESP32 & RS485 Shields from smarthomeintegrations, no soldering involved and is way easier to set up. You can get it to work using one of the boards but there are so many things that can cause issues it is just no worth all the stress it is not expensive. 

I did a video on my channel on how to set it up. 

 

  • 4 weeks later...

Greetings from Estonia :)

I have my Deye 12k 3p LV solar inverter hooked up to Home Assistant via ESP. Can anyone tell me why I can't change time in "time of use" table in HA? I can only see the times that are given from inverter (times also change in HA when I change them from inverter). But can't change them from HA. Where should I start troubleshooting.

IMG_7175.jpg

IMG_7176.jpg

 

Edited by Erki

  • 2 weeks later...
On 2023/10/08 at 12:42 AM, slipx said:

I've created a version based on my 8K and kellerza 3P definitions. I have not tested this so please be careful with writing to registers.

https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-3P-12K-Sunsynk.yaml

 

Hey Slipx. Could you share the source doc or manual for the sunsynk 3ph registers from sunsynk or whoever wrote the 1ph one that I've been able to find. There are some registers in your esphome config for sunsynk 3ph that I don't understand and I'm hoping there's a description in the original manual. 

6 hours ago, BobTheDinosaur said:

Hey Slipx. Could you share the source doc or manual for the sunsynk 3ph registers from sunsynk or whoever wrote the 1ph one that I've been able to find. There are some registers in your esphome config for sunsynk 3ph that I don't understand and I'm hoping there's a description in the original manual. 

I got these from Sunsynk support. You might need to enlist the help of Google Translate or ChatGPT for some translations.

MODBUS RTU三相储能通信规约V104 (1)-three-phase (1).pdf Modbus RTU 单相储能通信规约 V118-single phase (1).pdf

  • 2 weeks later...

Going to be installing the (smartdeye)dongle soon (waiting for the dongle and a NUC to run HA off) but was wondering if anyone had some photos of what they did on their 5kw inverter setup since it doesn't have power inside the inverter. 

 

-- edit --

I see I posted in the wrong topic :(

Edited by axisK

@axisK

Just power it from a standard 220V AC 12DC supply, like those you get with a Wifi router. Just insert an inline fuse and use a male plug to connect to dongle. Else just inline fuse and a switch after you've cut off the female barrel connector. Measure the voltage before connecting to dongle, so you get the polarity right.

The PSU should preferably plugged in on the Essential side.

Hi All, many thanks for all the knowledge I found here. It helped me a lot with my Deye setup.

As a small thanks from my side please check this 3d design of case for SmartDeyeDongle V4 from SmartHomeIntegrations.co.za. I made STL files available on Printables. I hope you guys will find it useful. Cheers :).

https://www.printables.com/model/1048061-mak-housing-for-smart-home-integrations-deye-dongl

Smart Deye Dongle V4 Case Photo01.jpg

Smart Deye Dongle V4 Case Photo02.jpg

Smart Deye Dongle V4 Case Photo03.jpg

Smart Deye Dongle V4 Case Photo04.jpg

13 hours ago, mak77 said:

Hi All, many thanks for all the knowledge I found here. It helped me a lot with my Deye setup.

As a small thanks from my side please check this 3d design of case for SmartDeyeDongle V4 from SmartHomeIntegrations.co.za. I made STL files available on Printables. I hope you guys will find it useful. Cheers :).

https://www.printables.com/model/1048061-mak-housing-for-smart-home-integrations-deye-dongl

Smart Deye Dongle V4 Case Photo01.jpg

Smart Deye Dongle V4 Case Photo02.jpg

Smart Deye Dongle V4 Case Photo03.jpg

Smart Deye Dongle V4 Case Photo04.jpg

Nice clean install. Great job 👍

  • 4 weeks later...
  • Author
34 minutes ago, Theodore76200 said:

hello, i am new here, where i can find the esp32 code to drive the Deye 6kw on home assistant.
Kind regards

You can use the 8kw code, the modbus addresses are pretty much the same on all single phase inverters. 

4 hours ago, Sc00bs said:

Vous pouvez utiliser le code 8kw, les adresses modbus sont à peu près les mêmes sur tous les onduleurs monophasés. 

ok thanks but as I'm a beginner I don't know where I can find it? do you have a link?
Thanks

21 hours ago, Theodore76200 said:

In your opinion, what file is this for a Deye 6kw??


https://slipx06-sunsynkhomeassi-cdx3xho69bx.ws-eu116.gitpod.io/

ESPHome-1P-Sunsynk-Deye.yaml  => 6Kw ???

Here is the link to the single phase ESPHome config. It should work for the Deye 6kW as well but you will need to test.

https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-1P-Sunsynk-Deye.yaml

 

Good evening

Thanks for @slipxand @kellerza for the time and effort in the plugin / integration / dashboard.

I am using a direct RS485 to USB converter from https://www.robotics.org.za/W17286?search=usb to rs485

Works great on my Single Phase 8kW SunSynk! I just renamed @kellerza's sensors to match that of the sunsynk-power-flow-card using "Find and Replace".

However, I am actually trying to get a second 8kW in parallel on Singel Phase to connect.
But I think I am missing something.

Wiring done like this:
With RS-485 Master = Waveshare RS485 to USB
Device 1 = Master Inverter, Modbus address: 1
Device 2 = Slave Inverter, Modbus address: 2
(Device 3 = Future Slave 2 Inverter, Modbus address will be 3 when we install it)
 image.jpeg.994d87e4d3fc6581318a0206b64f72b7.jpeg

 

Then inside the SunSynk addon:

When it is like this, with Modbus_ID 1 and serial of Master > the Master data shows up. (In the SunSynk addon Log and on the Flow Card)
With Modbus_ID 2 and serial of Slave > slave data shows. (In the SunSynk addon Log and on the Flow Card)

image.png.15e5057ad84568c3a653c50e4bc0b57e.png

 

How do I get both to be read and displayed together ?

I am trying to understand how to interpret this: "Add one item per inverter. HA_PREFIX should be unique for each inverter."

 

I have tried like this but get errors. I have also changed to "3phase" option but got different errors.

 image.png.86c38b303bb839a476cc63c512316509.png

 

image.thumb.png.6a5da34c55e3c271bf5ddd63e255ee1b.png

 

I see many people use direct changes to config.yaml, but I think somewhere there must be a hidden line of code blocking the modbus from working? Also the .yaml changes I have seen was for the ESP Home device which I do not have.

So in short I would greatly appreciate:

1) How to setup 2 x SunSynk 8kW in parallel on Single Phase using the @kellerza's SunSynk addon and display it using @slipx's (I have managed to get this MQTT setup working after every time I decided to wipe and start over, and the sunsynk-power-flow-card is simply great!)

or

2) How to get the .yaml method to work. (Perhaps I need to wipe and start over, but whose code to use I don't know)
 

of lesser importance:

3) Later I would like to dig into why the "Essential Output" reading is not correct - it looks like it matches the Grid CT reading instead of the "UPS" load like on the SunSynk display. But this can wait for now.

 

Many thanks in advance! 

Edited by RenierBos

On 21/11/2024 at 15:29, slipx said:

Voici le lien vers la configuration monophasée ESPHome. Cela devrait également fonctionner pour le Deye 6kW, mais vous devrez tester.

https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-1P-Sunsynk-Deye.yaml

 

 

spacer.png

thanks I will look at this as soon as I get to this level because for the moment I am stuck.
When you had your ESP recognized you were given an encryption key, but I did not receive anything.
after compiling the ESP I have nothing in API do you know why??

  • Author
On 2024/11/20 at 12:35 PM, Theodore76200 said:

I have a problem, my esp32 is not recognized despite the installation of the CP2102 driver and after changing the cable?
Does anyone have an idea?

Where about are you located @Theodore76200 ? 

If you are in Joburg you are welcome to come through to me and I can have a look at it for you if you like. 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.