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

question. the ota password, where is it set configured, I know the value is set in the secret file, but the other side, the esp home side ?

ota:
  password: !secret ota_password_sunsynk

see you using solcast, how do you deal with 2 pv arrays ?

G

  • Replies 657
  • Views 178k
  • 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

38 minutes ago, slipx said:

Ah OK, if I am seeing Errors like this

[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=154 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=160 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=164 count=1

and 

[23:46:05][D][modbus_controller:032]: Modbus command to device=1 register=0xA0 countdown=0 no response received - removed from send queue
[23:46:06][D][modbus_controller:032]: Modbus command to device=1 register=0xA4 countdown=0 no response received - removed from send queue
[23:46:08][D][modbus_controller:032]: Modbus command to device=1 register=0xA6 countdown=0 no response received - removed from send queue

Is this a wiring issue or sensor issue please?

Thanks Ivan

21 minutes ago, georgelza said:

question. the ota password, where is it set configured, I know the value is set in the secret file, but the other side, the esp home side ?

ota:
  password: !secret ota_password_sunsynk

see you using solcast, how do you deal with 2 pv arrays ?

G

The ota pw is baked into the firmware on the esp. 
You can only update the fw if the ota matches

1 hour ago, Ivan Endicott said:

 

Is this password exposed to me at any point... did i miss writing it down ?

is it needed by me... if I'm doing this from HA / ESPHome... 

G

31 minutes ago, Ivan Endicott said:

Ah OK, if I am seeing Errors like this

[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=154 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=160 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=164 count=1

and 

[23:46:05][D][modbus_controller:032]: Modbus command to device=1 register=0xA0 countdown=0 no response received - removed from send queue
[23:46:06][D][modbus_controller:032]: Modbus command to device=1 register=0xA4 countdown=0 no response received - removed from send queue
[23:46:08][D][modbus_controller:032]: Modbus command to device=1 register=0xA6 countdown=0 no response received - removed from send queue

Is this a wiring issue or sensor issue please?

Thanks Ivan

been struggling on this as well. Having exactly the same errors. I started off trying to get this working on tasmota. On Friday I thought i had made a breakthrough when i started getting responses on Tasmota firmware.  When i queried this on Tasmota forums, it turned out that the responses were seemingly garbage. I then uploaded esphome with Slipx yaml file. On this i am getting CRC errors. I removed the R7 resistor as suggested. But that has had no positive changes seen so far.

Edited by Magetsi

1 hour ago, georgelza said:

Is this password exposed to me at any point... did i miss writing it down ?

is it needed by me... if I'm doing this from HA / ESPHome... 

G

Generally yes find your secrets.yaml, and you will find the password.

On 2023/08/12 at 9:45 PM, Ivan Endicott said:

Hi Folks,

Been building the ESP32 and RS485 project up to connect to an inverter (I am UK based).

Anyway bought an ESP32 DEV board and this TTL > RS485 board

I've wired them up as described and followed the instructions. I can now see the ESP board in Home Assistant fine but when I click on it there is only 1 entity which is "ESPHome Web 137a18 Firmware".

I have tried the following:

  • Removed the R7 resistor
  • Tried a second TTL > RS485 board
  • Tried a second network cable
  • Reversed the network cable wires that are in the TTL > RS485 board
  • Remove the plugin fully (Including removing the old directory left) in Home Assistant
  • Flashed the board a few times.
  • Re-seated the RJ45 into the inverter 
  • Reheck and re-soldered the wires again 

When I check the logs I only get a few lines around the setup see the attachment INFO attached ESPHome 2023.7.1.txt (I have hashed out the MAC), there is no data coming from the Inverter other than the output.

I am not sure what else I can do.

Any help I would be greatful.

Regards Ivan



 

esp.jpg

rs485 board 1.jpg

rs485 board 2.jpg

rs485.jpg

INFO ESPHome 2023.7.1.txt 1.69 kB · 3 downloads

2 things from your pics seem off re the Ethernet Cable:

First and foremost - you need to plug it into the jack labelled RS485 - it's currently plugged into the CAN. See if you start getting data once you've changed this.

Secondly, your first image shows a yellow network cable and the other end shows a black network cable.... If the above suggestion does not work - perhaps re look at how you've wired the network cable.

Hi @georgelzasorry for late reply. I didn't get notification. I see you found the code though. And maybe try trouble shooting the pi3 issue by putting HA on an old pc or or something. I kept getting failures to write to the esp32 when it did not have full bars of wifi signal. 

8 hours ago, XianZA said:

Hi @georgelzasorry for late reply. I didn't get notification. I see you found the code though. And maybe try trouble shooting the pi3 issue by putting HA on an old pc or or something. I kept getting failures to write to the esp32 when it did not have full bars of wifi signal. 

ye... been leaning that way also. we need a stronger platform for the HA and then going to be running pfSense also so leaning to a good intel box with VBox or Proxmax on it.

noticed that HA has pre build image for VBox so...

G

Just to add to what you guys are mentioning above - I tried to run HA on a RPi3 and it was a nightmare - every time it had to a little bit of heavy lifting, it would fall over so rather re-purpose an old PC/laptop etc.

There's a great installation guide here for Proxmox. 

21 minutes ago, Muttley said:

There's a great installation guide here for Proxmox. 

If you are running a fairly powerful old pc/laptop with more than 2GB of ram and want to run more services, then proxmox is a good option as you can run multiple VMs and Dockers.

 

I realise some people run proxmox because they do not have UEFI but you do not UEFI for the PC, it can be solved with booting grub. This works well for old hardware where you do not have the processing power to run a Virtual Machine.

I documented it over here. 

https://github.com/tomatensaus/DeyeSolarDesktop/blob/main/InstallHomeAssistant.md

I hope it helps someone

On 2023/07/16 at 1:01 PM, Yuri said:

Thanks 

It is working well 

I got the new USB-C esp-32dev and it is working.(https://www.robotics.org.za/ESP32-DEV-CH340-C)

I tested the Ethernet cable before installing it and it worked well on the pin 1 & 2 after installation it was not working any more so I used pin 7 & 8 

Modbus Poll works well to do fault finding on RS485/Modbus RTU or even Modbus TCP

Hi

Please expand on your comment on Modbus Poll works well for fault finding.

Modbus poll is a software read and write modbus registers  

You can use it to lookup modbus RTU(RS485) or modbus TCP(Ethernet)

All the register types are available...

For Modubus RTU/RS485 you will need a USB converter for the PC.

Modbus TCP uses the PC Ethernet port  

Modbus poll.png

Modbus poll 2.png

Modbus poll 3.png

Edited by Yuri

On 2023/08/14 at 7:05 AM, georgelza said:

ye... been leaning that way also. we need a stronger platform for the HA and then going to be running pfSense also so leaning to a good intel box with VBox or Proxmax on it.

noticed that HA has pre build image for VBox so...

G

I am thinking about getting a proxmox up and running again, currently I have Opnsense, homeassistant, openmediavault, on different hardware, but I want to consolidate it on something fanless, lots of ram and SSD.

I also need to spin up a unify controller for my access points.

My current Opnsense box is a Qotom with Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz (2 cores, 4 threads). I don't believe there is enough processing power there for all the above. What do you think?

 

Any good suggestions?

19 hours ago, gimme_power said:

I am thinking about getting a proxmox up and running again, currently I have Opnsense, homeassistant, openmediavault, on different hardware, but I want to consolidate it on something fanless, lots of ram and SSD.

I also need to spin up a unify controller for my access points.

My current Opnsense box is a Qotom with Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz (2 cores, 4 threads). I don't believe there is enough processing power there for all the above. What do you think?

 

Any good suggestions?

not from me, will be lots of docs and youtube videos waiting for me to go over also.

G

On 2023/08/13 at 10:58 AM, XianZA said:

Hi thanks for the advice @XAB@XAB it turned out to be exactly this. All the guides say top left port and it even says RS458. I came accros that 2 in 1 port and thought to myself there is no ways as mine is has a dedicated RS458 and its on the top left. Anyway when reading @fStofs post I thought just maybe and the plugged out battery cable and it just worked. sorry I couldn't reply been working. Made myself a 2 in one cable for the time being and have ordered one of those rj45 splitters. Just need to get the rest of the dashboards graphs working as some of the sensors have esphome in them.

Screenshot_20230813_104505_Home Assistant.jpg

Glad I could help @XianZA. I have now connected both cables on the BMS 485/CAN of my SUNSYNK 5.5KW(newer model) with the below RJ45 Duplicator (Important to get one that does not split the pairs but rather "mirrors" it). I connected Orange to A+ - Orange/WHT to B- and Green/WHT to ground on my USB to RS485. Now I can update settings via HASSIO finally.

Important to note that the RX / TX works on pins 1(Orange/WHT) and 2(Orange) and your battery on pins 4(Blue) and 5 ( Blue/WHT). I tested this first when getting the RJ45 splitter/duplicator.

Prior to this I could receive data via the RS485 port next to the CAN port(left of it) but had to use Blue/WHT(A+) & Blue (B-) from the cable to receive data via the USB to RS485. But could not update as the RS485 port only allowed to receive data.

Image of RJ45 Duplicator into BMS 485/CAN

IMG_0548.thumb.jpg.9690b5f616e62b2e3d65514e67880eb4.jpg

Image of USB to RS485 
IMG_0551.thumb.jpg.3119f76c81709a5e038b446f66e7898f.jpg

On 2023/08/13 at 7:04 PM, Ivan Endicott said:

Ah OK, if I am seeing Errors like this

[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=154 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=160 count=1
[23:46:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=164 count=1

and 

[23:46:05][D][modbus_controller:032]: Modbus command to device=1 register=0xA0 countdown=0 no response received - removed from send queue
[23:46:06][D][modbus_controller:032]: Modbus command to device=1 register=0xA4 countdown=0 no response received - removed from send queue
[23:46:08][D][modbus_controller:032]: Modbus command to device=1 register=0xA6 countdown=0 no response received - removed from send queue

Is this a wiring issue or sensor issue please?

Thanks Ivan

I am struggling with these same error logs as well, I even changed the esp32 thinking it was a hardware error, the error logs persist. 

On 2023/08/15 at 9:12 PM, gimme_power said:

My current Opnsense box is a Qotom with Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz (2 cores, 4 threads). I don't believe there is enough processing power there for all the above. What do you think?

This should be fine, most CPUs seem slow because they do not have enough ram and have a slow disk. HomeAssistant runs on any 64bit processor with as little as 1GB ram. 2GB is overkill

18 hours ago, XAB said:

Glad I could help @XianZA. I have now connected both cables on the BMS 485/CAN of my SUNSYNK 5.5KW(newer model) with the below RJ45 Duplicator (Important to get one that does not split the pairs but rather "mirrors" it). I connected Orange to A+ - Orange/WHT to B- and Green/WHT to ground on my USB to RS485. Now I can update settings via HASSIO finally.

Important to note that the RX / TX works on pins 1(Orange/WHT) and 2(Orange) and your battery on pins 4(Blue) and 5 ( Blue/WHT). I tested this first when getting the RJ45 splitter/duplicator.

Prior to this I could receive data via the RS485 port next to the CAN port(left of it) but had to use Blue/WHT(A+) & Blue (B-) from the cable to receive data via the USB to RS485. But could not update as the RS485 port only allowed to receive data.

Image of RJ45 Duplicator into BMS 485/CAN

IMG_0548.thumb.jpg.9690b5f616e62b2e3d65514e67880eb4.jpg

Image of USB to RS485 
IMG_0551.thumb.jpg.3119f76c81709a5e038b446f66e7898f.jpg

Thank you. This turned out to be my trouble too. After using port splitter the comms started. However the stats seems off

 

image.thumb.png.a4ebec046c6cb518a8f06003736b8670.png

hi all, not sure what is going on or if missed something,  after making some progress above, i have noted that my numbers are not making sense as shown below, i decided poll voltage related value to see if i could pickup anythin that can help.  As you can see these values dont make sense, even grid says its off even though i know its connected.

 

image.png.f48b0750f9aae0cdbaf8f108d70b58d4.png

The related info from logging, also not sure why the two errors pop up on very run.

image.png.d0d94517d50592b4d93a07bca0a021bb.png

 

 

On 2023/08/15 at 9:12 PM, gimme_power said:

I am thinking about getting a proxmox up and running again, currently I have Opnsense, homeassistant, openmediavault, on different hardware, but I want to consolidate it on something fanless, lots of ram and SSD.

I also need to spin up a unify controller for my access points.

My current Opnsense box is a Qotom with Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz (2 cores, 4 threads). I don't believe there is enough processing power there for all the above. What do you think?

 

Any good suggestions?

This would be my go to option - my mate purchased from this buyer with no issues (just saying)

I'm running the equivalent Dell Optiplex 3080 Micro Form Factor with 64GB of RAM, 512 NVME & a 1 TB SSD.

It's running Proxmox with HA, Various Linux OS's, PiHole, TrueNAS, Portainer etc plus Tailscale for remote access and all the time ad blocking and it's just awesome. My UniFi controller lives in a cheap Google Cloud server.

Some may say that my setup is overkill but I like that I have headroom and it just runs - no issues plus plenty of learning opportunities from it.

Hi all,

Has anyone tried to figure out with the esp32 integration, how to set the Force Generator switch on the 5/8KW Deye/Sunsynk devices?

I see address registers on the modbus documentations, and have tried to set these values, but it doesn't seem to update / read correctly from what I can tell...

Thanks a lot!

33 minutes ago, BeesBlaas said:

Hi all,

Has anyone tried to figure out with the esp32 integration, how to set the Force Generator switch on the 5/8KW Deye/Sunsynk devices?

I see address registers on the modbus documentations, and have tried to set these values, but it doesn't seem to update / read correctly from what I can tell...

Thanks a lot!

What registers did you try & what did you set them to?

Tried register 234, according to the documentation, from what I understand enabled 1, disabled 0.. also tried to see if I can find any other register with the awful chinese to english translations that we must take with a pinch of salt on the docs lol

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.